POV-Ray : Newsgroups : povray.unix : Failure to configure properly in master branch : Failure to configure properly in master branch Server Time
20 Apr 2024 05:28:08 EDT (-0400)
  Failure to configure properly in master branch  
From: Jonathan
Date: 3 Jan 2014 20:00:01
Message: <web.52c75b5f72d39ade22b734b40@news.povray.org>
Hi,
My issue is that I'm using Cycas 3.9 [1] on Linux, which interfaces with a
locally-compiled Povray 3.7-stable by putting out an argument set like:

+I/home/jonathan/.cycas3/tmp//cycas.pov +P +D0 +X100 -V +SP32 +EP4 +W1024 +H768
+FC +O/home/jonathan/CYCAS3//tryit.png +Q9 +R1 +AM2 +A0.3 -J

This falls foul of a known bug [2] related to mosaic pretrace.  Rather than
intercept and process the argument set between Cycas and Povray, I thought it
might be easier to grab the current Master branch from github, and recompile
that, as it has Christoph's workaround for FS#313 in radiosity.cpp.

However, having executed prebuild.sh, I get an error with configure that I
didn't see with 3.7.0-stable.
[code]
$ ./configure COMPILED_BY="jonathan[at]blueyonder[dot]co[dot]uk"
--without-libmkl
......
checking whether to use the ZLIB library... yes
checking for library containing zlibVersion... no
configure: error: cannot find a suitable ZLIB library

$ dpkg -l | grep zlib
ii  zlib1g:amd64                             1:1.2.7.dfsg-13ubuntu2
   amd64        compression library - runtime
ii  zlib1g:i386                              1:1.2.7.dfsg-13ubuntu2
   i386         compression library - runtime
ii  zlib1g-dev:amd64                         1:1.2.7.dfsg-13ubuntu2
   amd64        compression library - development
[/code]
So I seem to have zlib development library installed.

And indeed, config.log seems to indicate that it's a problem with a boost
library (maybe - I'm getting out of my depth...)
[code]
configure:7946: g++ -o conftest  -pthread  -pthread -I/usr/include  -L/usr/lib
conftest.cpp -lz -lboost_thread-mt  -pthread  -lboost_system >&5
/usr/bin/ld: cannot find -lboost_system
collect2: error: ld returned 1 exit status
configure:7946: $? = 1
......
configure:7963: result: no
configure:8068: error: cannot find a suitable ZLIB library
[/code]
Comparing this with the relevant section of the successful config.log from
3.7.0-stable, I see there:
[code]
configure:7924: g++ -o conftest  -pthread  -pthread -I/usr/include  -L/usr/lib
conftest.cpp -lz -lrt -lm -lboost_thread-mt  -pthread  >&5
configure:7924: $? = 0
configure:7941: result: -lz
configure:7948: checking zlib.h usability
configure:7948: g++ -c  -pthread  -pthread -I/usr/include conftest.cpp >&5
configure:7948: $? = 0
configure:7948: result: yes
configure:7948: checking zlib.h presence
configure:7948: g++ -E  -pthread -I/usr/include conftest.cpp
configure:7948: $? = 0
configure:7948: result: yes
configure:7948: checking for zlib.h
configure:7948: result: yes
configure:7952: checking for libz version >= 1.2.1
configure:7974: g++ -o conftest  -pthread  -pthread -I/usr/include  -L/usr/lib
conftest.cpp -lz -lrt -lm -lboost_thread-mt  -pthread  >&5
configure:7974: $? = 0
configure:7974: ./conftest
1.2.7
configure:7974: $? = 0
configure:8013: result: 1.2.7, ok
[/code]
So, I conclude that the master branch configure is looking for lboost_system,
without success, whereas 3.7.0-stable didn't look for it when testing for zlib.
I have 14 libboost-* packages installed, including libboost1.49-dev.

Any help would be gratefully accepted, otherwise it's back to a bash hack on
that command line!

Jonathan

[1] http://www.cycas.de/features.php?s=en&sys=lin#top
[2] http://bugs.povray.org/task/313


Post a reply to this message

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