LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Compiling libtorrent-0.12 failing on boost lib that does exist (https://www.linuxquestions.org/questions/slackware-14/compiling-libtorrent-0-12-failing-on-boost-lib-that-does-exist-613096/)

agentc0re 01-12-2008 11:13 AM

Compiling libtorrent-0.12 failing on boost lib that does exist
 
I found out that in order to compile this i had to have some boost lib's. So i used src2pkg to create my boost pkg. Worked and compiled with no errors and then i installed it.
Code:

ls /usr/lib/libboost_date_time-gcc41*
/usr/lib/libboost_date_time-gcc41-1_34_1.a              /usr/lib/libboost_date_time-gcc41-mt-1_34_1.so.1.34.1
/usr/lib/libboost_date_time-gcc41-1_34_1.so              /usr/lib/libboost_date_time-gcc41-mt-d-1_34_1.a
/usr/lib/libboost_date_time-gcc41-1_34_1.so.1.34.1    /usr/lib/libboost_date_time-gcc41-mt-d-1_34_1.so
/usr/lib/libboost_date_time-gcc41-d-1_34_1.a              /usr/lib/libboost_date_time-gcc41-mt-d-1_34_1.so.1.34.1
/usr/lib/libboost_date_time-gcc41-d-1_34_1.so              /usr/lib/libboost_date_time-gcc41-mt-d.a
/usr/lib/libboost_date_time-gcc41-d-1_34_1.so.1.34.1  /usr/lib/libboost_date_time-gcc41-mt-d.so
/usr/lib/libboost_date_time-gcc41-d.a                      /usr/lib/libboost_date_time-gcc41-mt.a
/usr/lib/libboost_date_time-gcc41-d.so                      /usr/lib/libboost_date_time-gcc41-mt.so
/usr/lib/libboost_date_time-gcc41-mt-1_34_1.a              /usr/lib/libboost_date_time-gcc41.a
/usr/lib/libboost_date_time-gcc41-mt-1_34_1.so              /usr/lib/libboost_date_time-gcc41.so

Code:

ls /usr/lib/libboost_filesystem-gcc41*
/usr/lib/libboost_filesystem-gcc41-1_34_1.a              /usr/lib/libboost_filesystem-gcc41-mt-1_34_1.so.1.34.1
/usr/lib/libboost_filesystem-gcc41-1_34_1.so              /usr/lib/libboost_filesystem-gcc41-mt-d-1_34_1.a
/usr/lib/libboost_filesystem-gcc41-1_34_1.so.1.34.1    /usr/lib/libboost_filesystem-gcc41-mt-d-1_34_1.so
/usr/lib/libboost_filesystem-gcc41-d-1_34_1.a              /usr/lib/libboost_filesystem-gcc41-mt-d-1_34_1.so.1.34.1
/usr/lib/libboost_filesystem-gcc41-d-1_34_1.so              /usr/lib/libboost_filesystem-gcc41-mt-d.a
/usr/lib/libboost_filesystem-gcc41-d-1_34_1.so.1.34.1  /usr/lib/libboost_filesystem-gcc41-mt-d.so
/usr/lib/libboost_filesystem-gcc41-d.a                      /usr/lib/libboost_filesystem-gcc41-mt.a
/usr/lib/libboost_filesystem-gcc41-d.so                      /usr/lib/libboost_filesystem-gcc41-mt.so
/usr/lib/libboost_filesystem-gcc41-mt-1_34_1.a              /usr/lib/libboost_filesystem-gcc41.a
/usr/lib/libboost_filesystem-gcc41-mt-1_34_1.so        /usr/lib/libboost_filesystem-gcc41.so

Code:

ls /usr/lib/libboost_thread-gcc41-mt*
/usr/lib/libboost_thread-gcc41-mt-1_34_1.a            /usr/lib/libboost_thread-gcc41-mt-d-1_34_1.so.1.34.1
/usr/lib/libboost_thread-gcc41-mt-1_34_1.so            /usr/lib/libboost_thread-gcc41-mt-d.a
/usr/lib/libboost_thread-gcc41-mt-1_34_1.so.1.34.1  /usr/lib/libboost_thread-gcc41-mt-d.so
/usr/lib/libboost_thread-gcc41-mt-d-1_34_1.a            /usr/lib/libboost_thread-gcc41-mt.a
/usr/lib/libboost_thread-gcc41-mt-d-1_34_1.so            /usr/lib/libboost_thread-gcc41-mt.so

As you can see, those are the needed lib's by libtorrent. I first tried to use src2pkg for libtorrent but since i ran into this issue i am doing it by hand.

What happens is, it wont get past the ./configure. I've tried so many different variations of where and how to specify for the first boost lib it's looking for i'm not sure what else to do. this is what i mean.
Code:

./configure --with-boost-date-time=/usr/lib/libboost_date_time-gcc41.so
./configure --with-boost-date-time=libboost_date_time-gcc41.so
./configure --with-boost-date-time=/usr/lib/libboost_date_time-gcc41
./configure --with-boost-date-time=/usr/lib/boost_date_time-gcc41
./configure

None of those seem to work for me. i've tried
Code:

ln -s /usr/lib/libboost_date_time-gcc41.so /usr/lib/libboost_date_time.so
Still can't get past ./configure

Anyone have any idea's?

Alien_Hominid 01-12-2008 11:15 AM

Run ldconfig and try again without specifying anything.

agentc0re 01-12-2008 01:01 PM

Quote:

Originally Posted by Alien_Hominid (Post 3020164)
Run ldconfig and try again without specifying anything.

ran
Code:

ldconfig
then i ran it again
Code:

ldconfig -v | grep libboost_date*
I did that just to be sure that it was touching the libboost lib's and it is.
I went into the src dir and ran ./configure and i still get the same error with the date_time lib not being found. i even tried it as root to be certain. then i tried adding
Code:

--with-boost-date-time=/usr/lib/boost_date_time-gcc41
--with-boost-date-time=boost_date_time-gcc41

still no go. and im not even sure im doing that right, i can't find any real documentation on how that syntax should be.

Alien Bob 01-12-2008 01:02 PM

Try removing your boost package, install this boost package instead: http://www.slackware.com/~alien/slac...oost/pkg/12.0/ and then try if the libtorrent finds the boost libs.

Eric

agentc0re 01-12-2008 01:36 PM

Quote:

Originally Posted by Alien Bob (Post 3020241)
Try removing your boost package, install this boost package instead: http://www.slackware.com/~alien/slac...oost/pkg/12.0/ and then try if the libtorrent finds the boost libs.

Eric

Well Eric, as you usual you have the magic touch. removed my pkg, installed yours and ran ldconfig. ran ./configure and i got past that point but failed at boost_thread. so i added
Code:

./configure --with-boost-thread=boost_thread-mt
and all is well. I'd really like to try and figure out why my boost pkg didn't work. One thing i've noticed so far is all of my boost lib's had gcc41 after them and then i also had a bunch that had the boost lib version # after them. Your's don't have that. Was there some extra config line you compiled boost with?

Again Eric, thank you as always. You are a big help in this community! :)


All times are GMT -5. The time now is 08:16 AM.