Skip to content

Instantly share code, notes, and snippets.

#include "ofMain.h"
#include "ofApp.h"
//========================================================================
int main( ){
ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context
// this kicks off the running of my app
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/libImagelib.a, file was built for archive which is not the architecture being linked (x86_64): ../../../addons/ofxprosilica/libs/PvAPI/lib/osx/libImagelib.a
ld: warning: ignoring file ../../../addons/ofxprosilica/libs/PvAPI/lib/osx/libPvAPI.a, file was built for archive which is not the architecture being linked (x86_64): ../../../addons/ofxprosilica/libs/PvAPI/lib/osx/libPvAPI.a
Undefined symbols for architecture x86_64:
"_PvCameraIpSettingsGet", referenced from:
ofxProsilica::Camera::listIpSettings() in Camera.o
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
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
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
{
//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
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 / 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