Home My Page Projects MPTK: The Matching Pursuit ToolKit
Summary Activity Forums Tracker Lists Docs News SCM Files

Forum: help

Monitor Forum | Start New Thread Start New Thread
RE: mptk-0.6.1 install problem [ Reply ]
By: Rémi Gribonval on 2012-04-20 08:30
[forum:109598]
You are right, the mptk header and libraries were already installed in /usr/local.
Remi.

RE: mptk-0.6.1 install problem [ Reply ]
By: Bob Sturm on 2012-04-20 08:15
[forum:109597]
Is that because you already have the mptk header and libraries installed in /usr/local? It works for me only when they are already in that location.

RE: mptk-0.6.1 install problem [ Reply ]
By: Rémi Gribonval on 2012-04-20 08:11
[forum:109596]
OK, good to know that the install solves the problem.
On my machine I was able to compile with XCode with the following steps
> mkdir build-0.6.1
> cd build-0.6.1
> cmake -G Xcode ../tags/mptk-0.6.1
> open MPTK.xcodeproj/
(this opens XCode)
-> "Build and Run"
everything is compiled (54 out of 54), with 124 warnings
no warning about matlab

I run Xcode 3.2.6 and cmake 2.8.7

Remi.




I don't know how to fix the XCode, but maybe some answers can be found on CMake.org ?

Remi.

RE: mptk-0.6.1 install problem [ Reply ]
By: Bob Sturm on 2012-04-19 13:52
[forum:109594]
It works when I compile from the command line, _and_ install them. However, XCode complains about the matlab utilities since it cannot find libmptk.

RE: mptk-0.6.1 install problem [ Reply ]
By: Rémi Gribonval on 2012-04-19 07:43
[forum:109592]
Hi Bob,

Did you finish the compilation with 'make install' ?

If you type 'otool -L /Users/bobs/Aalborg/research/mptk-0.6.1/mptk/matlab/getmptkinfo.mexmaci64' you should get a list of the shared libraries used by this mex file, something like
libmptk.dylib (compatibility version 0.0.0, current version 0.0.0)
libmptk4matlab.dylib (compatibility version 0.0.0, current version 0.0.0)
@rpath/libmx.dylib (compatibility version 0.0.0, current version 0.0.0)
@rpath/libmex.dylib (compatibility version 0.0.0, current version 0.0.0)
@rpath/libmat.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 830.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
As far as I understand, the fact that libmptk.dylib (and libmptk4matlab.dylib) appear without a full path means that the dynamic loader will look for them in standard system path. So, the problem may be explained if they are not installed in a standard system path such as '/usr/local/lib'. I hope this is the explanation, in which case a 'make install' should solve the problem ... but this sounds too simple, I am sure you have already tried :-\

>Also, when compiling is done I see at the end
>"ld: warning: directory not found for option '-L/opt/local/lib'"
Just a guess: you probably have no directory called /opt ?
This should be harmless. If you comment out the line "SET(POSSIBLE_LIBRARY_PATH_3 "/opt/local" CACHE INTERNAL "")" in the main CMakeLists.txt file, the warning should be fixed.

All the best,
Remi.

mptk-0.6.1 install problem [ Reply ]
By: Bob Sturm on 2012-04-18 17:48
[forum:109590]
I am having an error with the installation of 0.6.1. Everything compiles fine, and runs fine from the command window. The problem occurs with the MATLAB interface. After installation, I run GettingStarted.m (the one in mptk/matlab/ not install/mptk/matlab/), and it finds the path.xml right (the one in mptk/ not install/), and it sets the MPTK_CONFIG_FILENAME correctly, but I get the following fatal error when it runs getmptkinfo.m:

??? Invalid MEX-file '/Users/bobs/Aalborg/research/mptk-0.6.1/mptk/matlab/getmptkinfo.mexmaci64':
dlopen(/Users/bobs/Aalborg/research/mptk-0.6.1/mptk/matlab/getmptkinfo.mexmaci64, 1): Library not
loaded: libmptk.dylib
Referenced from: /Users/bobs/Aalborg/research/mptk-0.6.1/mptk/matlab/getmptkinfo.mexmaci64
Reason: image not found.

Error in ==> GettingStarted at 100
mptkInfo = getmptkinfo;

Should be a simple problem with linking in the mex?

Also, when compiling is done I see at the end
"ld: warning: directory not found for option '-L/opt/local/lib'"