POV-Ray : Newsgroups : povray.unix : How to build boost to compile POVRay beta 32 Server Time
23 Dec 2024 11:29:00 EST (-0500)
  How to build boost to compile POVRay beta 32 (Message 1 to 10 of 18)  
Goto Latest 10 Messages Next 8 Messages >>>
From: Wise
Subject: How to build boost to compile POVRay beta 32
Date: 11 May 2009 04:45:00
Message: <web.4a07e523ea64e5871414fda0@news.povray.org>
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

go to povray beta 32 path

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

there are below error messages and stop:


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... configure: error: We could not detect the boost
libraries (version 1.35 or higher). If you have a staged boost library (still
not installed) please specify $BOOST_ROOT in your environment and do not give a
PATH to --with-boost option.  If you are sure you have boost installed, then
check your version number looking in <boost/version.hpp>. See
http://randspringer.de/boost for more documentation.

Any one can help me what's wrong?

My email address is wis### [at] intelcom

Thank you very much!
Wise


Post a reply to this message

From: Le Forgeron
Subject: Re: How to build boost to compile POVRay beta 32
Date: 11 May 2009 14:33:46
Message: <4a086f8a$2@news.povray.org>
Le 11/05/2009 10:43, Wise nous fit lire :
> 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
> 
> go to povray beta 32 path
> 
> ../configure COMPILED_BY="me" --prefix=/home/wchen18/povray
> --with-boost-thread=boost_thread-mt
> 

> Any one can help me what's wrong?

Boost must be installed, and the include file found by povray-configure.
(if /installation/path is not /usr, you must provide it with something like
--with-boost=/installation/path ... good luck, there is far too many options to change
the
place of boost in povray-configure and I do not understand how they are intended to
work)

cd <boost>
.....
sudo make install

cd <povray>
....

The --with-boost-thread, unless you have a specific compiler issue, is superfluous.
(in
the end, I did not need it)
Also, I did it with boost-1.38, not sure it works with 1.37 (you will know, if it
failed
to link/ or compile about yield()...)
(and it's definitely not working with 1.35 now!)

Beware also, later, of conflict with old version of boost. (uninstall beforehand if
possible)

So far, povray-configure does not find your boost libraries.
(next, it will find the wrong version...)
> 
> Thank you very much!
> Wise
> 
>


Post a reply to this message

From: Wise
Subject: Re: How to build boost to compile POVRay beta 32
Date: 11 May 2009 23:00:00
Message: <web.4a08e4e5781511116467f4c0@news.povray.org>
Thank you very much,
I can go ahead one step now. :)
But still have some issues.

I followed your suggestion and re-install boost 1.38 version. and then turn to
povray folder and type below command:
../configure COMPILED_BY="me"
--prefix=/home/spd/wchen18/povray/povray-3.7.0.beta.32
--with-boost=/home/spd/wchen18/povray/libs/bin

and I got the below information and stop config,

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... no
checking for exit in -lboost_thread-boost_thread... no
configure: error: Could not link against boost_thread-boost_thread !


Any suggestion on 'boost_thread-boost-thread'?

Thanks again!
Wise


Post a reply to this message

From: Dan Connelly
Subject: Re: How to build boost to compile POVRay beta 32
Date: 13 May 2009 19:11:49
Message: <4A0B53B5.2050007@yahoo.com>
Any resolution on this?  I have the same issue.  It appears to me to be a configure
bug.  Obviously there's no library file called lib_thread-lib_thread (a multithreaded
file name? :)).

Actually, I run:
./configure --with-boost-thread=boost_thread-gcc42-mt COMPILED_BY="yadda@yadda.com"
--prefix=/usr/local

And I get:
configure: error: Could not link against boost_thread-boost_thread-gcc42-mt !


Dan


Wise wrote:
> Thank you very much,
> I can go ahead one step now. :)
> But still have some issues.
> 
> I followed your suggestion and re-install boost 1.38 version. and then turn to
> povray folder and type below command:
> ../configure COMPILED_BY="me"
> --prefix=/home/spd/wchen18/povray/povray-3.7.0.beta.32
> --with-boost=/home/spd/wchen18/povray/libs/bin
> 
> and I got the below information and stop config,
> 
> 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... no
> checking for exit in -lboost_thread-boost_thread... no
> configure: error: Could not link against boost_thread-boost_thread !
> 
> 
> Any suggestion on 'boost_thread-boost-thread'?
> 
> Thanks again!
> Wise
> 
>


Post a reply to this message

From: djconnel
Subject: Re: How to build boost to compile POVRay beta 32
Date: 13 May 2009 19:35:01
Message: <web.4a0b58897815111151fb9e60@news.povray.org>
You need to correctly specify the boost library name

For example, I ran:

../configure --with-boost-thread=boost_thread-mt COMPILED_BY="ddd### [at] ddddddd"
--prefix=/usr/local

By the way, I also edited configure along the way to avoid searching for the
doubled-up library name, but this shouldn't make a difference:

% diff -up configure.orig configure
--- configure.orig 2009-04-06 05:44:14.000000000 -0700
+++ configure 2009-05-13 16:24:51.000000000 -0700
@@ -7973,8 +7973,9 @@ fi
                 fi

             else
-               for ax_lib in $ax_boost_user_thread_lib
boost_thread-$ax_boost_user_thread_lib; do
-          as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
+#               for ax_lib in $ax_boost_user_thread_lib
boost_thread-$ax_boost_user_thread_lib; do
+ax_lib=$ax_boost_user_thread_lib
+as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
 { $as_echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
@@ -8050,8 +8051,6 @@ else
   link_thread="no"
 fi

-                  done
-
             fi
    if test "x$link_thread" = "xno"; then
     { { $as_echo "$as_me:$LINENO: error: Could not link against $ax_lib !" >&5


Dan

"Wise" <wis### [at] intelcom> wrote:
> Thank you very much,
> I can go ahead one step now. :)
> But still have some issues.
>
> I followed your suggestion and re-install boost 1.38 version. and then turn to
> povray folder and type below command:
> ../configure COMPILED_BY="me"
> --prefix=/home/spd/wchen18/povray/povray-3.7.0.beta.32
> --with-boost=/home/spd/wchen18/povray/libs/bin
>
> and I got the below information and stop config,
>
> 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... no
> checking for exit in -lboost_thread-boost_thread... no
> configure: error: Could not link against boost_thread-boost_thread !
>
>
> Any suggestion on 'boost_thread-boost-thread'?
>
> Thanks again!
> Wise


Post a reply to this message

From: djconnel
Subject: Re: How to build boost to compile POVRay beta 32
Date: 13 May 2009 20:55:00
Message: <web.4a0b6b227815111151fb9e60@news.povray.org>
Well, I successfully compiled on my Ubuntu 9.04 system.  But I also have a Cent
5 (Redhat) system for which there's no boost package about 1.33.  So i
downloaded the boost source, compiled, and installed in /usr/local.  Then I
made sure ldconfig saw /usr/local/lib.  Then I configure with:
../configure --includedir=/usr/local/include --libdir=/usr/local/lib
--with-boost-thread=libboost_thread-gcc41-mt --with-boost=/usr/local
COMPILED_BY="djc### [at] yahoocom" --prefix=/usr/local

It claims it can't find:
libboost_thread-gcc41-mt

% ls -l /usr/local/lib/libboost_thread-gcc41-mt.so
lrwxrwxrwx 1 root root 90 May 13 15:30
/usr/local/lib/libboost_thread-gcc41-mt.so ->
/usr/local/package/Development/libboost/boost_1_39_0/stage/lib/libboost_thread-gcc41-mt.so

Any hints?


Post a reply to this message

From: clipka
Subject: Re: How to build boost to compile POVRay beta 32
Date: 14 May 2009 03:35:00
Message: <web.4a0bc8ff7815111121523b450@news.povray.org>
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.


Post a reply to this message

From: djconnel
Subject: Re: How to build boost to compile POVRay beta 32
Date: 14 May 2009 13:40:00
Message: <web.4a0c56747815111151fb9e60@news.povray.org>
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.


Post a reply to this message

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

Goto Latest 10 Messages Next 8 Messages >>>

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