openFrameworks di Blank0n Pattimura

Untuk beberapa hari ini adalah saatnya menyusun kembali jadwal yang makin bertumpuk πŸ™‚ dan salah satunya adalah coding. Dan sekarang saatnya berkutat dengan C/C++ dan utamanya adalah frameworks Β yang bernama openframworks. Sebuah framework yang memungkinkan desainer, ahli matematika dan fisika, ataupun para seniman bergabung mengekspresikan idenya dalam computer vision. Iya banyak dari mereka yang berangkat dari latar belakang desain dan juga musik dan menggunkan openframeworks untuk alat mereka mengaktualisasikan idenya. Nah untuk saat ini laptop dah terinstall pattimura, so menuju ke openframework dan unduh openframework for linux dan panduan yang ada adalah untuk Ubuntu dan Debian (maksudnya yang mirip dengan blankon) dan panduan install sesuaikan saja dengan yang ada disitu. Untuk IDE menggunakan CodeBlocks sehingga dengan mengikuti panduan yang ada maka kita akan dipandu untuk menginstall codeblocks dan segala dependensinya.

Setelah semua terinstall maka saatnya mencoba beberapa contoh yang sudah disediakan. Ok untuk contoh-contoh kebanyakan bisa dijalankan, nah karena penasaran dengan sourcecode yang yang banyak di web-web para pengguna openframework maka mulailah mencoba satu-satu, diantaranya adalah MagicTree, tetapi sayang sekali waktu compile gagal dengan beberapa peringatan πŸ™ padahal di tempat teman yang menggunakan windows aplikasi itu sudah jalan. Β berikut build lognya

-------------- Build: Debug in magicTree ---------------

Using makefile: Makefile
compiling object for:  src/main.cpp
compiling object for:  src/testApp.cpp
src/testApp.cpp: In member function β€˜void testApp::drawVector(ofPoint, ofPoint, float)’:
src/testApp.cpp:137:33: warning: comparison between signed and unsigned integer expressions
src/testApp.cpp:101:8: warning: unused variable β€˜arrowsize’
src/testApp.cpp:107:8: warning: unused variable β€˜len’
src/testApp.cpp: In member function β€˜virtual void testApp::draw()’:
src/testApp.cpp:155:21: warning: suggest parentheses around assignment used as truth value
compiling addon object for ../../../addons/ofxOpenCv/src/ofxCvImage.cpp
compiling addon object for ../../../addons/ofxOpenCv/src/ofxCvFloatImage.cpp
compiling addon object for ../../../addons/ofxOpenCv/src/ofxCvGrayscaleImage.cpp
compiling addon object for ../../../addons/ofxOpenCv/src/ofxCvShortImage.cpp
compiling addon object for ../../../addons/ofxOpenCv/src/ofxCvColorImage.cpp
compiling addon object for ../../../addons/ofxOpenCv/src/ofxCvHaarFinder.cpp
../../../addons/ofxOpenCv/src/ofxCvHaarFinder.cpp: In member function β€˜void ofxCvHaarFinder::draw(float, float)’:
../../../addons/ofxOpenCv/src/ofxCvHaarFinder.cpp:141:29: warning: comparison between signed and unsigned integer expressions
compiling addon object for ../../../addons/ofxOpenCv/src/ofxCvContourFinder.cpp
compiling addon object for ../../../addons/ofxCvOpticalFlowPyrLK/src/ofxCvOpticalFlowPyrLK.cpp
../../../addons/ofxCvOpticalFlowPyrLK/src/ofxCvOpticalFlowPyrLK.cpp: In member function β€˜void ofxCvOpticalFlowPyrLK::draw(float, float)’:
../../../addons/ofxCvOpticalFlowPyrLK/src/ofxCvOpticalFlowPyrLK.cpp:75:33: warning: comparison between signed and unsigned integer expressions
../../../addons/ofxCvOpticalFlowPyrLK/src/ofxCvOpticalFlowPyrLK.cpp:88:29: warning: comparison between signed and unsigned integer expressions
../../../addons/ofxCvOpticalFlowPyrLK/src/ofxCvOpticalFlowPyrLK.cpp: In member function β€˜void ofxCvOpticalFlowPyrLK::normalizePoints()’:
../../../addons/ofxCvOpticalFlowPyrLK/src/ofxCvOpticalFlowPyrLK.cpp:113:33: warning: comparison between signed and unsigned integer expressions
../../../addons/ofxCvOpticalFlowPyrLK/src/ofxCvOpticalFlowPyrLK.cpp: In member function β€˜void ofxCvOpticalFlowPyrLK::scalePoints(float, float)’:
../../../addons/ofxCvOpticalFlowPyrLK/src/ofxCvOpticalFlowPyrLK.cpp:124:33: warning: comparison between signed and unsigned integer expressions
../../../addons/ofxCvOpticalFlowPyrLK/src/ofxCvOpticalFlowPyrLK.cpp: In member function β€˜void ofxCvOpticalFlowPyrLK::filterPoints(float, float)’:
../../../addons/ofxCvOpticalFlowPyrLK/src/ofxCvOpticalFlowPyrLK.cpp:145:33: warning: comparison between signed and unsigned integer expressions
../../../addons/ofxCvOpticalFlowPyrLK/src/ofxCvOpticalFlowPyrLK.cpp: In member function β€˜ofPoint ofxCvOpticalFlowPyrLK::getAverageFlow()’:
../../../addons/ofxCvOpticalFlowPyrLK/src/ofxCvOpticalFlowPyrLK.cpp:157:33: warning: comparison between signed and unsigned integer expressions
find: `../../../addons/ofxCvOpticalFlowPyrLK/libs/*/lib/linux': No such file or directory
linking bin/magicTree_debug . ./src
../../../addons/ofxOpenCv/libs/opencv/lib/linux//libopencv_video.a(lkpyramid.o): In function `cv::calcOpticalFlowPyrLK(cv::Mat const&, cv::Mat const&, std::vector, std::allocator > > const&, std::vector, std::allocator > >&, std::vector >&, std::vector >&, cv::Size_, int, cv::TermCriteria, double, int)':
lkpyramid.cpp:(.text._ZN2cv20calcOpticalFlowPyrLKERKNS_3MatES2_RKSt6vectorINS_6Point_IfEESaIS5_EERS7_RS3_IhSaIhEERS3_IfSaIfEENS_5Size_IiEEiNS_12TermCriteriaEdi+0x448): undefined reference to `cv::buildPyramid(cv::Mat const&, std::vector >&, int)'
lkpyramid.cpp:(.text._ZN2cv20calcOpticalFlowPyrLKERKNS_3MatES2_RKSt6vectorINS_6Point_IfEESaIS5_EERS7_RS3_IhSaIhEERS3_IfSaIfEENS_5Size_IiEEiNS_12TermCriteriaEdi+0x474): undefined reference to `cv::buildPyramid(cv::Mat const&, std::vector >&, int)'
../../../addons/ofxOpenCv/libs/opencv/lib/linux//libopencv_video.a(lkpyramid.o): In function `T.1258':
lkpyramid.cpp:(.text.T.1258+0x66b): undefined reference to `cvPyrDown'
lkpyramid.cpp:(.text.T.1258+0x93a): undefined reference to `cvPyrDown'
collect2: ld returned 1 exit status
make: *** [bin/magicTree_debug] Error 1
Process terminated with status 2 (0 minutes, 47 seconds)
4 errors, 11 warnings

dan untuk compile yang lain juga masih ada trouble nih

About Author:

kadang NgeBlog, kadang baca buku, Pengguna linux biasa yang kadang ngajar tentang IT, kadang matematika dan kadang juga tentang web

Leave A Comment