Ask Your Question
0

Opencv builds on lab computer, but not laptop.

asked 2014-03-31 13:20:40 -0600

bool gravatar image

I have been struggling to install opencv 2.4.8 on my own laptop, but managed to install it on a computer in my schools computer lab using the same procedure.

http://docs.opencv.org/2.4/doc/tutorials/introduction/clojure_dev_intro/clojure_dev_intro.html

When I first ran make -j8 on my laptop, terminal returned an error saying that it could not find a library called eigen which I then downloaded and included on that particular files source path. Now I am having an issue where the make command finds the file, but can not read an identifier type ' numext'.

My professor thinks that this error may appear on my computer, but not on the lab computer because of a difference in cmake or xcode versions. So far only the cmake versions differ.

                      LAB                           LAPTOP

OS macosx 10.8.5 macosx 10.8.5 Java Version 1.6 1.8 Cmake Version 2.8-10 2.8-12 xcode version 5.0.2 (5A3005) 5.0.2(5A3005)

Any ideas on how I should go about trouble shooting this problem so that I can use opencv on my laptop?

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-04-09 08:06:58 -0600

atrebbi gravatar image

I think the problem may be xcode 5.1 , i can't compile opencv since last upgrade but the bug is in cmake ( i think ), maybe here : /Applications/CMake 2.8-12.app/Contents/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake

I tried to apply this patch: http://public.kitware.com/pipermail/cmake-developers/2013-December/009243.html

but I go on having problems...

this is the file that i have modified: https://dl.dropboxusercontent.com/u/20752176/CMakeDetermineCompilerId.cmake

please let me know if you manage to fix and how ( maybe i'm missing something )

edit flag offensive delete link more

Comments

Ok fixed ( works for me). follow these steps: 1) start getting this file : https://raw.githubusercontent.com/Kitware/CMake/master/Modules/CMakeDetermineCompilerId.cmake and substitute the wrong old one ( this contains the patch ). then there are 2 important things: 2) in build_framework.py , change IPHONEOS_DEPLOYMENT_TARGET=7.1 ( was 6.0 ) 3) compile as root ( there are some authorizations issues tryng to create temporary files ) it should build now

atrebbi gravatar imageatrebbi ( 2014-04-13 04:57:02 -0600 )edit

You should apply some other patches: (1) change build_framework.py and add this at line #43 : "-DCMAKE_C_FLAGS=\"-Wno-implicit-function-declaration\" " + (2) then apply this ptach to modules/world/CMakeLists.txt:84 : http://stackoverflow.com/questions/16983696/how-to-build-opencv-2-4-9-for-ios

let me know ( i will provide the patch to 2.4 branch when i'm sure about this )

Ale

atrebbi gravatar imageatrebbi ( 2014-04-14 04:49:09 -0600 )edit

Question Tools

Stats

Asked: 2014-03-31 13:20:40 -0600

Seen: 469 times

Last updated: Apr 09 '14