POV-Ray : Newsgroups : povray.unix : How to build boost to compile POVRay beta 32 Server Time
15 May 2024 15:36:26 EDT (-0400)
  How to build boost to compile POVRay beta 32 (Message 9 to 18 of 18)  
<<< Previous 8 Messages Goto Initial 10 Messages
From: clipka
Subject: Re: How to build boost to compile POVRay beta 32
Date: 14 May 2009 16:25:00
Message: <web.4a0c7d7f781511119ea775c90@news.povray.org>
"djconnel" <djc### [at] yahoocom> wrote:
> Wow -- thanks for the advice!!!  Removing "lib" from the boost library name
> worked.  It seems checking for this would make a nice modification of the
> configure script.

.... or at least mentioning it in the install docs, indeed. Though it never
occurred to me that other users might have the same trouble figuring this out -
after all, if it isn't explicitly mentioned *anywhere*, it just *must* be
trivial knowledge among *all* Linux users except me :P


Post a reply to this message

From: Wise
Subject: Re: How to build boost to compile POVRay beta 32
Date: 14 May 2009 22:15:00
Message: <web.4a0ccf817815111171414fda0@news.povray.org>
"clipka" <nomail@nomail> wrote:
> I found that on my Linux system (Debian "Etch"), I need to drop the leading
> "lib" from the boost library name, e.g.
>
>     --with-boost-thread=boost_thread-gcc41-mt
>
> when the files are actually named
>
>     libboost_thread-gcc41-mt.so
>     libboost_thread-gcc41-mt.a
>
> Hope this helps in your case as well.

I can go ahead one more step follow up above suggestion. but still error on
link. I use below commands for configure, errors are same:
../configure COMPILED_BY="me" --prefix=/home/spd/wchen18/povray/libs/bin
--with-boost=/home/spd/wchen18/povray/libs/bin
--with-boost-thread=boost_thread-gcc43-mt
--with-boost-libdir=/home/spd/wchen18/povray/libs/bin/lib
OR
../configure COMPILED_BY="me" --prefix=/home/spd/wchen18/povray/libs/bin
--with-boost=/home/spd/wchen18/povray/libs/bin
--with-boost-thread=boost_thread-gcc43-mt
OR
../configure COMPILED_BY="me" --prefix=/home/spd/wchen18/povray
--with-boost=/home/spd/wchen18/povray/libs/bin
--with-boost-thread=boost_thread-gcc43-mt
--with-boost-libdir=/home/spd/wchen18/povray/libs/bin/lib

The error message like below:
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
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking whether to build the boost thread library from sources... no
checking for boostlib >= 1.35... yes
checking whether the Boost::Thread library is available... yes
checking for exit in -lboost_thread-gcc43-mt... yes
checking whether the boost thread library is usable... no
configure: error: in `/home/spd/wchen18/povray/povray-3.7.0.beta.32':
configure: error: cannot link with the boost thread library

Any suggestion?
Thanks,
wise


Post a reply to this message

From: clipka
Subject: Re: How to build boost to compile POVRay beta 32
Date: 15 May 2009 11:45:01
Message: <web.4a0d8d4a78151111f708085d0@news.povray.org>
"Wise" <wis### [at] intelcom> wrote:
> I can go ahead one more step follow up above suggestion. but still error on
> link. I use below commands for configure, errors are same:
> ../configure COMPILED_BY="me" --prefix=/home/spd/wchen18/povray/libs/bin
> --with-boost=/home/spd/wchen18/povray/libs/bin
> --with-boost-thread=boost_thread-gcc43-mt
> --with-boost-libdir=/home/spd/wchen18/povray/libs/bin/lib

Hm... are you sure you need the gcc43 version of the boost lib?

I heard that gcc-compiled libraries may be incompatible depending on the gcc
version with which they were created. Kind of some incompatibility in the C
language runtime between certain versions of gcc. So "latest version" may not
always the best choice with this.

As you can see from my post, I'm using the gcc41 version of the boost thread
lib. But I'm actually using the Intel icpc compiler to compile POV-Ray, btw. (I
actually have no idea what version of the boost thread lib - regarding gcc
version - would be the right one for your purposes; but it might be worth
checking.)


Post a reply to this message

From: Wise
Subject: Re: How to build boost to compile POVRay beta 32
Date: 18 May 2009 02:35:00
Message: <web.4a11016c7815111171414fda0@news.povray.org>
"clipka" <nomail@nomail> wrote:
> "Wise" <wis### [at] intelcom> wrote:
> > I can go ahead one more step follow up above suggestion. but still error on
> > link. I use below commands for configure, errors are same:
> > ../configure COMPILED_BY="me" --prefix=/home/spd/wchen18/povray/libs/bin
> > --with-boost=/home/spd/wchen18/povray/libs/bin
> > --with-boost-thread=boost_thread-gcc43-mt
> > --with-boost-libdir=/home/spd/wchen18/povray/libs/bin/lib
>
> Hm... are you sure you need the gcc43 version of the boost lib?
>
> I heard that gcc-compiled libraries may be incompatible depending on the gcc
> version with which they were created. Kind of some incompatibility in the C
> language runtime between certain versions of gcc. So "latest version" may not
> always the best choice with this.
>
> As you can see from my post, I'm using the gcc41 version of the boost thread
> lib. But I'm actually using the Intel icpc compiler to compile POV-Ray, btw. (I
> actually have no idea what version of the boost thread lib - regarding gcc
> version - would be the right one for your purposes; but it might be worth
> checking.)

Thanks Clipka,
I am using lab machine to build boost lib now in which gcc43 has installed
already.
I am trying to another way and will update status in time.

Thanks,
Wise


Post a reply to this message

From: Wise
Subject: Re: How to build boost to compile POVRay beta 32
Date: 19 May 2009 02:30:00
Message: <web.4a1251b57815111171414fda0@news.povray.org>
This time I use local lab machine to build boost and povray using root account.

boost 1.37 vesrion is installed into /usr/local path;
in Povray 3.7 directory, I used below command

../configure COMPILED_BY="me" --with-boost-thread
OR
../configure COMPILED_BY="me" --with-boost-thread=boost_thread-gcc34-mt

unfortunatelly, all failed and shown:

checking whether to build the boost thread library from sources... no
checking for boostlib >= 1.35... yes
checking whether the Boost::Thread library is available... yes
checking for exit in -lboost_thread-gcc34-mt... yes
checking whether the boost thread library is usable... no
configure: error: in `/home/wchen18/povray/povray-3.7.0.beta.32':
configure: error: cannot link with the boost thread library
See `config.log' for more details.

Thanks,
Wise


Post a reply to this message

From: Nicolas Calimet
Subject: Re: How to build boost to compile POVRay beta 32
Date: 19 May 2009 05:59:29
Message: <4a128301$1@news.povray.org>
> See `config.log' for more details.

	Details?

	- NC


Post a reply to this message

From: Wise
Subject: Re: How to build boost to compile POVRay beta 32
Date: 20 May 2009 20:45:01
Message: <web.4a14a353781511116467f4c0@news.povray.org>
Nicolas Calimet <pov### [at] freefr> wrote:
> > See `config.log' for more details.
>
>  Details?
>
>  - NC

Thanks for your support.
the config.log file is too big and newsgroup has no way to attached file.
Anyway, I have some progress lastday after I got root account.
After  I install boost into /usr/local/lib, POVRay configure can identify boost
library and pass configure.
I typed make check install,
POVRay failed build at below:

g++  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs -s -O3
-ffast-math -pthread  -L/usr/local/lib -o povray disp_sdl.o disp_text.o
.../vfe/libvfe.a ../source/backend/libbackend.a ../source/frontend/libfrontend.a
.../source/base/libbase.a ../source/libpovray.a  -ltiff -ljpeg -lpng12 -lz -lrt
-lm -lboost_thread  -pthread
.../vfe/libvfe.a(unixconsole.o)(.text+0x40d0): In function `main':
: undefined reference to `vtable for boost::detail::thread_data_base'
.../vfe/libvfe.a(unixconsole.o)(.text+0x40e0): In function `main':
: undefined reference to `vtable for boost::detail::thread_data_base'
.../vfe/libvfe.a(unixconsole.o)(.text+0x4b32): In function `main':
: undefined reference to `boost::thread::start_thread()'
.../vfe/libvfe.a(unixconsole.o)(.gnu.linkonce.r._ZTIN5boost6detail11thread_dataIPFvvEEE+0x10):
undefined reference to `typeinfo for boost::detail::thread_data_base'
.../vfe/libvfe.a(unixconsole.o)(.gnu.linkonce.t._ZN5boost6detail11thread_dataIPFvvEED1Ev+0x32):
In function `boost::detail::thread_data<void (*)()>::~thread_data()':
: undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
.../vfe/libvfe.a(unixconsole.o)(.gnu.linkonce.t._ZN5boost6detail11thread_dataIPFvvEED0Ev+0x32):
In function `boost::detail::thread_data<void (*)()>::~thread_data()':
: undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
........
........
: undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
.../source/backend/libbackend.a(task.o)(.gnu.linkonce.t._ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf1IvN3p
ov4TaskERKNS_9function0IvEEEENS2_5list2INS2_5valueIPS7_EENSE_IS9_EEEEEEED0Ev+0x112):
In function `boost::detail::thread_data<boost::_bi::bind_t<void,
boost::_mfi::mf1<void, pov::Task, boost::function0<void> const&>,
boost::_bi::list2<boost::_bi::value<pov::Task*>,
boost::_bi::value<boost::function0<void> > > > >::~thread_data()':
: undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
collect2: ld returned 1 exit status
make[2]: *** [povray] Error 1
make[2]: Leaving directory `/home/wchen18/povray/povray-3.7.0.beta.32/unix'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/wchen18/povray/povray-3.7.0.beta.32'
make: *** [all] Error 2

Any suggestion?
Thanks,
Wise


Post a reply to this message

From: Jon Boede
Subject: Re: How to build boost to compile POVRay beta 32
Date: 6 Dec 2010 13:30:00
Message: <web.4cfd2ab97815111181884760@news.povray.org>
"Wise" <wis### [at] intelcom> wrote:
> Nicolas Calimet <pov### [at] freefr> wrote:
> > > See `config.log' for more details.
> >
> >  Details?
> >
> >  - NC
>
> Thanks for your support.
> the config.log file is too big and newsgroup has no way to attached file.
> Anyway, I have some progress lastday after I got root account.
> After  I install boost into /usr/local/lib, POVRay configure can identify boost
> library and pass configure.
> I typed make check install,
> POVRay failed build at below:
>
> g++  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs -s -O3
> -ffast-math -pthread  -L/usr/local/lib -o povray disp_sdl.o disp_text.o
> .../vfe/libvfe.a ../source/backend/libbackend.a ../source/frontend/libfrontend.a
> .../source/base/libbase.a ../source/libpovray.a  -ltiff -ljpeg -lpng12 -lz -lrt
> -lm -lboost_thread  -pthread
> .../vfe/libvfe.a(unixconsole.o)(.text+0x40d0): In function `main':
> : undefined reference to `vtable for boost::detail::thread_data_base'
> .../vfe/libvfe.a(unixconsole.o)(.text+0x40e0): In function `main':
> : undefined reference to `vtable for boost::detail::thread_data_base'
> .../vfe/libvfe.a(unixconsole.o)(.text+0x4b32): In function `main':
> : undefined reference to `boost::thread::start_thread()'
>
.../vfe/libvfe.a(unixconsole.o)(.gnu.linkonce.r._ZTIN5boost6detail11thread_dataIPFvvEEE+0x10):
> undefined reference to `typeinfo for boost::detail::thread_data_base'
>
.../vfe/libvfe.a(unixconsole.o)(.gnu.linkonce.t._ZN5boost6detail11thread_dataIPFvvEED1Ev+0x32):
> In function `boost::detail::thread_data<void (*)()>::~thread_data()':
> : undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
>
.../vfe/libvfe.a(unixconsole.o)(.gnu.linkonce.t._ZN5boost6detail11thread_dataIPFvvEED0Ev+0x32):
> In function `boost::detail::thread_data<void (*)()>::~thread_data()':
> : undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
> ........
> ........
> : undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
>
.../source/backend/libbackend.a(task.o)(.gnu.linkonce.t._ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf1IvN
3p
> ov4TaskERKNS_9function0IvEEEENS2_5list2INS2_5valueIPS7_EENSE_IS9_EEEEEEED0Ev+0x112):
> In function `boost::detail::thread_data<boost::_bi::bind_t<void,
> boost::_mfi::mf1<void, pov::Task, boost::function0<void> const&>,
> boost::_bi::list2<boost::_bi::value<pov::Task*>,
> boost::_bi::value<boost::function0<void> > > > >::~thread_data()':
> : undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
> collect2: ld returned 1 exit status
> make[2]: *** [povray] Error 1
> make[2]: Leaving directory `/home/wchen18/povray/povray-3.7.0.beta.32/unix'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/wchen18/povray/povray-3.7.0.beta.32'
> make: *** [all] Error 2
>
> Any suggestion?
> Thanks,
> Wise

Wise... did you ever fix this?  I am having the "configure: error: Could not
link against boost_thread !" problem in Beta 40?


Post a reply to this message

From: Jeffouille
Subject: Re: How to build boost to compile POVRay beta 32
Date: 27 Sep 2012 03:05:02
Message: <web.5063f9ce781511115ca4e8c20@news.povray.org>
Hi wise,
I have exactly the same problem trying to install povray under Ubuntu 12-04,
amd64.
Did you manage to fixe it?


Post a reply to this message

From: Ryan Budney
Subject: Re: How to build boost to compile POVRay beta 32
Date: 27 Feb 2013 14:00:01
Message: <web.512e5781781511111343b2e50@news.povray.org>
"Wise" <wis### [at] intelcom> wrote:
> Hi guys,
>
> I am trying to build beta 32 version on linux IA64 environment.
> I used boost_1_37_0.tar.bz2, below are command list
> tar --bzip2 -xf <boost>.tar.bz2
> cd <boost>
> ../configure --prefix=/installation/path --with-libraries=thread
> make

> ../configure COMPILED_BY="me" --prefix=/home/wchen18/povray
--with-boost-thread=boost_thread-mt

> Any one can help me what's wrong?
>
> My email address is wis### [at] intelcom
>
> Thank you very much!
> Wise

I simply removed the "--with-boost-thread=boost_thread-mt" from the .configure
command and it compiled perfectly on my IA64 Ubuntu Linux environment.


Post a reply to this message

<<< Previous 8 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.