POV-Ray : Newsgroups : povray.beta-test : Trouble building RC3 on new machine : Re: Trouble building RC3 on new machine Server Time
1 Jun 2024 18:10:12 EDT (-0400)
  Re: Trouble building RC3 on new machine  
From: jhu
Date: 3 Sep 2011 17:10:00
Message: <web.4e6296a3827915b4590073930@news.povray.org>
> g++  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs -s -O3
> -ffast-math -march=native -pthread  -L/usr/lib  -L/usr/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
> -lSDL -L/usr/lib -lSDL  -lSM -lICE -lX11  -ltiff -ljpeg -lpng -lz -lrt -lm
> -pthread
> .../vfe/libvfe.a(vfesession.o): In function `vfe::vfeSession::Shutdown(bool)':
> vfesession.cpp:(.text+0x4b9): undefined reference to `boost::thread::join()'
> vfesession.cpp:(.text+0x4cd): undefined reference to `boost::thread::~thread()'

Oops. Looks like I replied too fast and you're at the linking stage. Usually
boost libraries are in /usr/local/lib so add /usr/local/lib/libboost_thread.a at
the end like this:

g++  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs -s -O3
 -ffast-math -march=native -pthread  -L/usr/lib  -L/usr/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
 /usr/local/lib/libboost_thread.a

Do this in the unix directory and out pops the povray executable.


Post a reply to this message

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