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: Installation From Sources: pb with linking libraries lsndfile and lfftw3 [ Reply ]
By: Habonneau Jérôme on 2013-07-03 06:44
[forum:120989]
Hi,

At the end, I ended up building a 64 bit version of the mptk library. It works fine now.

Thank you,

Jerome

RE: Installation From Sources: pb with linking libraries lsndfile and lfftw3 [ Reply ]
By: Habonneau Jérôme on 2013-07-02 14:22
[forum:120716]
Hello Boris,

I agree with you. My OS is 64 bits whereas mptk is built as a 32 bits version. I really don't know why, maybe because cmake thinks my matlab software is a 32 bit version.

I fixed the problem for lsndfile creating a symbolic link between /usr/lib/i386-linux-gnu/libsndfile.so and libsndfile.so.1.0.25

Concerning libfftw3, i'm looking forward to install fftw as a 32 bits library.

Another solution could be to tell cmake to build the mptk projects as a 64 bits version.

Thank you for your help,

RE: Installation From Sources: pb with linking libraries lsndfile and lfftw3 [ Reply ]
By: Habonneau Jérôme on 2013-07-02 14:16
[forum:120715]
Hello Boris,

I agree with you. I have a 64 bit OS but the mptk project is built with the 32 bits version. (I don't really know why, maybe because cmake recognizes my matlab software as a 32 bit version)

I installed this one /usr/lib/libfftw3.a. I'm trying to install the 32 bit version of this library, if it is possible.

Concerning -lsndfile, i fixed it creating a symbolic link between /usr/lib/i386-linux-gnu/libsndfile.so.1.0.25 and /usr/lib/i386-linux-gnu/libsndfile.so.

Thank you for your help,

Jerome


RE: Installation From Sources: pb with linking libraries lsndfile and lfftw3 [ Reply ]
By: Boris Mailhe on 2013-07-02 14:05
[forum:120709]
Hello Jérôme,

Is /usr/lib/libfftw3.a the one you installed?

For libfftw3, the linker finds that library but refuses to use it. I don't know the reason for this incompatibility. Maybe you are trying to link 32 and 64 bit objects together?

Hope it helps,
Boris

Installation From Sources: pb with linking libraries lsndfile and lfftw3 [ Reply ]
By: Habonneau Jérôme on 2013-07-02 13:46
[forum:120705]
Hello,

I want to install mptk from sources. I have downloaded the sources, extract them and then try to build the project. I have installed the necessary package libsndfile1, and libfftw3.
I am using Linux Mint 13 and gcc v 4.4.

When I launched make, I got:

[ 1%] Built target make_regression_constants
[ 2%] Built target md5sum
[ 3%] Built target base64
[ 3%] Built target dsp_windows
[ 7%] Built target tinyxml
Linking CXX shared library ../../lib/libmptk.so
/usr/bin/ld: cannot find -lsndfile
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../libfftw3.a when searching for -lfftw3
/usr/bin/ld: skipping incompatible /usr/lib/libfftw3.a when searching for -lfftw3
/usr/bin/ld: cannot find -lfftw3
collect2: ld returned 1 exit status
make[2]: *** [lib/libmptk.so] Error 1
make[1]: *** [src/libmptk/CMakeFiles/mptk.dir/all] Error 2
make: *** [all] Error 2

I'm assuming the library linker does not find the correct libraries libsndfile.so and libfftw3.a .
When i launch locate libsndfile.so and libfftw3.a, these libraries are located in my LD_SEARCH_LIBRARY.

Do you have any suggestion?

Thank you in advance,

Best regards,

Jerome