|
|
Le 22/06/2013 14:11, Jonathan nous fit lire :
> I have the same problem as did Ricky, compiling 3.7RC7. This is on a Kubuntu
> 13.04 64bit machine; I had previously installed 3.7RC6 on Kubuntu 12.10 and the
> same hardware without significant difficulty. Now, it seems that the pthread
> library is not found, and consequently boost cannot be linked.
>
> Unlike Ricky, I *do* seem to have the pthread library installed, though.
>
> Here's what happens (steps 1-8 omitted, they're the download and support library
> installations)
> 9. Build and install
> ! source page says: Note: Some users on 64-bit platforms have reported that
> adding --with-boost-thread=boost_thread-mt to ./configure is needed to get a
> successful compilation.
>
> jonathan@Odin:/usr/local/downloads/povray-3.7.0.RC7$ ./configure
> COMPILED_BY="Jonathan Richards<jon### [at] orlopdecknet>"
> --with-boost-thread=boost_thread-mt
>
Did you try without the --with-boost-thread=boost_thread-mt ?
Did you install the libboost-thread1.49-dev package ?
> [extract of configure output to console:]
> ...
> Libraries
> ---------
> checking whether to link with cygwin DLL... no
> checking whether to enable static linking... no
> checking for the pthreads library -lpthreads... no
> checking whether pthreads work without any flags... no
> checking whether pthreads work with -Kthread... no
> checking whether pthreads work with -kthread... no
> checking for the pthreads library -llthread... no
> checking whether pthreads work with -pthread... yes
Looks, -pthread is ok. (whereas -lpthreads is not :-), be happy of the
gnu compiler )
> checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
> checking if more special flags are required for pthreads... no
> checking for boostlib >= 1.37... yes
> checking whether the Boost::Thread library is available... yes
> checking for exit in -lboost_thread-mt... yes
> checking whether the boost thread library is usable... no
> configure: error: in `/usr/local/downloads/povray-3.7.0.RC7':
> configure: error: cannot link with the boost thread library
> See `config.log' for more details
>
> [from config.log]
> configure:6955: checking for the pthreads library -lpthreads
> configure:6988: gcc -o conftest conftest.c -lpthreads >&5
> /usr/bin/ld: cannot find -lpthreads
> collect2: error: ld returned 1 exit status
> configure:6988: $? = 1
...
> | return 0;
> | }
> configure:6997: result: no
>
Well, that portion of config.log is irrelevant, it checked -lpthreads
and we know the result.
> # check for pthreads
pthread was checked as ok, the issue is with the boost-thread library.
> Any help or insight would be gratefully received; a full config.log is available
> on request; I can't post attachments, apparently.
Yep, attachment are not allowed in this group.
IIRC, you might need LIBS="-lboost_system" on the configure line to have
the boost_thread-mt usable.
Do not ask why.
Post a reply to this message
|
|