Note that there are some explanatory texts on larger screens.

plurals
  1. POcompiling stasm for mac
    primarykey
    data
    text
    <p>I'm try to to build the stasm library on my mac and hopefully port it to the iphone. stasm download: <a href="http://www.milbo.users.sonic.net/stasm/download.html" rel="nofollow">http://www.milbo.users.sonic.net/stasm/download.html</a></p> <p>I am using the makefile for linux provided. after some changes to header include paths for libjpeg and opencv, I am stuck with this error</p> <pre><code>g++ -c ../stasm/violajones.cpp -O3 -Wall -pedantic -I/home/john/OpenCV-2.1.0/include/opencv -I../gsl -I../gsl/gsl -I../image -I../jpeg -I../mat -I../rowley -I../stasm -I../tasm In file included from ../stasm/violajones.cpp:24: /opt/local/include/opencv/cv.h:63:33: error: opencv2/core/core_c.h: No such file or directory /opt/local/include/opencv/cv.h:64:33: error: opencv2/core/core.hpp: No such file or directory /opt/local/include/opencv/cv.h:65:39: error: opencv2/imgproc/imgproc_c.h: No such file or directory /opt/local/include/opencv/cv.h:66:39: error: opencv2/imgproc/imgproc.hpp: No such file or directory /opt/local/include/opencv/cv.h:67:38: error: opencv2/video/tracking.hpp: No such file or directory /opt/local/include/opencv/cv.h:68:45: error: opencv2/features2d/features2d.hpp: No such file or directory /opt/local/include/opencv/cv.h:69:35: error: opencv2/flann/flann.hpp: No such file or directory /opt/local/include/opencv/cv.h:70:39: error: opencv2/calib3d/calib3d.hpp: No such file or directory /opt/local/include/opencv/cv.h:71:43: error: opencv2/objdetect/objdetect.hpp: No such file or directory /opt/local/include/opencv/cv.h:72:37: error: opencv2/legacy/compat.hpp: No such file or directory /opt/local/include/opencv/cv.h:79:37: error: opencv2/core/internal.hpp: No such file or directory In file included from ../stasm/violajones.cpp:25: /opt/local/include/opencv/highgui.h:47:39: error: opencv2/highgui/highgui_c.h: No such file or directory /opt/local/include/opencv/highgui.h:48:39: error: opencv2/highgui/highgui.hpp: No such file or directory </code></pre> <p>the original makefile is uploaded here <a href="https://github.com/tsaizhenling/stuff/blob/master/makefile" rel="nofollow">https://github.com/tsaizhenling/stuff/blob/master/makefile</a></p> <p>i have tried changing the directory as trojanfoe suggested but still same error :(</p> <p>I have opencv and opencv2 residing in /opt/local/include/</p> <p><strong>Update:</strong></p> <p>tried J-16 SDiZ's suggestion and this brought me forward. I had to remove the pedantic flag but i'm still stuck with the following error</p> <blockquote> <p>g++ -c ../stasm/tab.cpp -O3 -Wall -I/opt/local/include/opencv -I/opt/local/include -I../gsl -I../gsl/gsl -I../image -I../jpeg -I../mat -I../rowley -I../stasm -I../tasm make: <em>*</em> No rule to make target <code>-lm', needed by</code>stasm'. Stop.</p> </blockquote> <p>makefile is updated</p> <p><strong>Update:</strong></p> <p>Finally got everything fixed with help from J-16 SDiZ.</p> <p>had to update the linker flags because opencv changed the library names</p> <p>makefile is updated in case anyone needs it</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload