POV-Ray : Newsgroups : povray.unix : Problems compiling 3.7 on FreeBSD : Re: Problems compiling 3.7 on FreeBSD Server Time
4 May 2024 06:11:28 EDT (-0400)
  Re: Problems compiling 3.7 on FreeBSD  
From: jhu
Date: 1 Sep 2011 10:45:00
Message: <web.4e5f999d5237611c590073930@news.povray.org>
Le_Forgeron <lef### [at] freefr> wrote:
> Le 01/09/2011 06:47, jhu a écrit :
> > g++  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs -s -O3
> > -ffast-math -march=native -I/usr/local/include -Dlseek64=lseek -D_THREAD_SAFE
> > -pthread  -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
>
>
> All that -L and not a little -l in sight ?
>
> Notice that the log starts with complains against boost (missing...) but
> ends with the jpeg, png and Tiff libraries also missing.
>
> Can you check the full command ?
>
> --
> Software is like dirt - it costs time and money to change it and move it
> around.
>
> Just because you can't see it, it doesn't weigh anything,
> and you can't drill a hole in it and stick a rivet into it doesn't mean
> it's free.

g++  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs -s -O3
-ffast-math -march=native -I/usr/local/include -Dlseek64=lseek -D_THREAD_SAFE
-pthread  -pthread -L/usr/local/lib -lpng -ltiff -ljpeg -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

Succcess! I got it to compile. Yes, it was missing a few little -l , mainly
-lpng, -ltiff, and -ljpeg . I also had to add /usr/local/lib/libboost_thread.a
manually (compiling a static binary) at the end. I had to type the above
manually (well, copy and paste). Fortunately that was the last step.

I'm still not sure what makes the Debian and FreeBSD build environments so
different. In Debian it's just a matter of ./configure COMPILED_BY=" " && make

In FreeBSD (8.2-RELEASE, amd64) it's:

CFLAGS="-I/usr/local/include -Dlseek64=lseek" CXXFLAGS=$CFLAGS ./configure

Then add #include <sys/wait.h> in vfe/unix/vfeplatform.cpp

and then telling the linker to add the libraries during linking.

I wonder if this afflicts the other BSDs?


Post a reply to this message

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