Skip to content

Instantly share code, notes, and snippets.

#include "ofApp.h"
int main() {
ofSetupOpenGL(320, 240, OF_WINDOW);
ofRunApp(new ofApp());
}
Ld bin/example-FaceTracker.app/Contents/MacOS/example-FaceTracker normal x86_64
cd /Applications/of_v0.9.3_osx_release/addons/ofxDLib/example-FaceTracker
export MACOSX_DEPLOYMENT_TARGET=10.7
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -L/Applications/of_v0.9.3_osx_release/addons/ofxDLib/example-FaceTracker/bin -F/Applications/of_v0.9.3_osx_release/addons/ofxDLib/example-FaceTracker/bin -F/Applications/of_v0.9.3_osx_release/addons/ofxDLib/example-FaceTracker/../../../libs/glut/lib/osx -filelist /Users/stephan/Library/Developer/Xcode/DerivedData/example-FaceTracker-ananwermkhbvivbxvdoposcvktlh/Build/Intermediates/example-FaceTracker.build/Release/example-FaceTracker.build/Objects-normal/x86_64/example-FaceTracker.LinkFileList -mmacosx-version-min=10.7 -dead_strip -framework Accelerate -framework AGL -framework AppKit -framework
@antimodular
antimodular / ofxSACIAhelper.h
Created March 23, 2016 19:54
openframeworks and Sample Consensus Initial Alignment (SAC-IA)
//
// ofxSACIAhelper.h
// bifurcation_26
//
// Created by Stephan Schulz on 2016-03-23.
//
//
//Sample Consensus Initial Alignment (SAC-IA) registration routine
float* ofApp::getOrientation(const vector<cv::Point> &pts) //, Mat &img)
{
//http://docs.opencv.org/3.1.0/d1/dee/tutorial_introduction_to_pca.html#gsc.tab=0
//Construct a buffer used by the pca analysis
int sz = static_cast<int>(pts.size());
Mat data_pts = Mat(sz, 2, CV_64FC1);
for (int i = 0; i < data_pts.rows; ++i)
{
data_pts.at<double>(i, 0) = pts[i].x;
data_pts.at<double>(i, 1) = pts[i].y;
@antimodular
antimodular / ofApp.h
Created March 17, 2016 14:47
OF 0.9.x and PCL attempts
#pragma once
//this is ofApp.h
#include "ofMain.h"
//taken from ofxPCL.h file
// file io
#include <pcl/io/pcd_io.h>
// transform
{
//http://docs.opencv.org/3.1.0/d1/dee/tutorial_introduction_to_pca.html#gsc.tab=0
//Construct a buffer used by the pca analysis
int sz = static_cast<int>(pts.size());
Mat data_pts = Mat(sz, 2, CV_64FC1);
for (int i = 0; i < data_pts.rows; ++i)
{
data_pts.at<double>(i, 0) = pts[i].x;
data_pts.at<double>(i, 1) = pts[i].y;
}
Last login: Wed Mar 16 10:13:58 on ttys000
You have new mail.
kinder:~ stephan$ cd /Users/stephan/Desktop/opencv/opencv-3.1.0/staticlib
kinder:staticlib stephan$ make
Scanning dependencies of target zlib
[ 0%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/adler32.c.o
[ 0%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/compress.c.o
[ 0%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/crc32.c.o
[ 0%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/deflate.c.o
[ 0%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/gzclose.c.o
Undefined symbols for architecture x86_64:
"dlib::entropy_decoder_kernel_2::set_stream(std::__1::basic_istream<char, std::__1::char_traits<char> >&)", referenced from:
dlib::compress_stream_kernel_1<dlib::entropy_encoder_model_kernel_5<257ul, dlib::entropy_encoder_kernel_2, 200000ul, 4ul>, dlib::entropy_decoder_model_kernel_5<257ul, dlib::entropy_decoder_kernel_2, 200000ul, 4ul>, dlib::crc32>::decompress(std::__1::basic_istream<char, std::__1::char_traits<char> >&, std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const in ofxDLib.o
"dlib::entropy_decoder_kernel_2::entropy_decoder_kernel_2()", referenced from:
dlib::compress_stream_kernel_1<dlib::entropy_encoder_model_kernel_5<257ul, dlib::entropy_encoder_kernel_2, 200000ul, 4ul>, dlib::entropy_decoder_model_kernel_5<257ul, dlib::entropy_decoder_kernel_2, 200000ul, 4ul>, dlib::crc32>::decompress(std::__1::basic_istream<char, std::__1::char_traits<char> >&, std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const in ofxDL
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks//QuickTime.framework/QuickTime, file was built for i386 which is not the architecture being linked (x86_64): /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks//QuickTime.framework/QuickTime
ld: warning: ignoring file ../../../addons/ofxprosilica/libs/PvAPI/lib/osx/x86/4.2/Imagelib.a, file was built for archive which is not the architecture being linked (x86_64): ../../../addons/ofxprosilica/libs/PvAPI/lib/osx/x86/4.2/Imagelib.a
ld: warning: ignoring file ../../../addons/ofxprosilica/libs/PvAPI/lib/osx/x86/4.2/PvAPI.a, file was built for archive which is not the architecture being linked (x86_64): ../../../addons/ofxprosilica/libs/PvAPI/lib/osx/x86/4.2/PvAPI.a
Undefined symbols for architecture x86_64:
"std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> c