POV-Ray : Newsgroups : povray.general : compiling under Cygwin errors Server Time
29 Dec 2024 13:12:02 EST (-0500)
  compiling under Cygwin errors (Message 1 to 10 of 10)  
From: kursad
Subject: compiling under Cygwin errors
Date: 3 Jul 2011 00:35:01
Message: <web.4e0ff0f1b1bdcbae1c1e3d720@news.povray.org>
Hi

I am trying to compile Povray3.7 under Cygwin using the Linux codebase. The
reason I am trying to compile under Cygwin is that I need to use the commandline
version over ssh sessions(ie coding on laptop, rendering on desktop).

Anyways I cannot seem to get it compiled, I also tried disabling most of the
configure options and did not seem to make any diffence. Here is the error
section

My cpp skills are pretty bleak so I cannot figure this out on my own


thanks

ar cru libbackend.a fnpovfpu.o fncode.o fnintern.o blob.o mesh.o prism.o torus.o
bezier.o fractal.o sphsweep.o spheres.o fpmetric.o truetype.o cones.o polygon.o
super.o hfield.o lathe.o csg.o isosurf.o ovus.o boxes.o sor.o poly.o triangle.o
quadrics.o discs.o planes.o mathutil.o hcmplx.o polysolv.o matrices.o chi2.o
quatern.o splines.o renderbackend.o benchmark.o messagefactory.o pattern.o
warps.o rendertask.o radiositytask.o tracetask.o trace.o ray.o tracepixel.o
media.o interior.o atmosph.o scene.o threaddata.o objects.o view.o camera.o
photonestimationtask.o point.o photonstrategytask.o photons.o
photonshootingstrategy.o rad_data.o photonshootingtask.o radiosity.o
photonsortingtask.o msgutil.o jitter.o imageutil.o statistics.o taskqueue.o
fileutil.o task.o randomsequences.o bsptree.o octree.o bbox.o boundingtask.o
bsphere.o bcyl.o parsestr.o express.o function.o tokenize.o parse.o fnsyntax.o
parstxtr.o reswords.o normal.o pigment.o texture.o povray.o spectral.o
colutils.o colour.o
ranlib libbackend.a
make[3]: Leaving directory `/temp/povray-3.7.0.RC3/source/backend'
Making all in base
make[3]: Entering directory `/temp/povray-3.7.0.RC3/source/base'
g++ -DHAVE_CONFIG_H -I. -I../..  -I../.. -I../../source -I../../source
-I../../unix -I../../vfe -I../../vfe/unix -pthread -I/usr/include  -pipe
-Wno-multichar -Wno-write-strings -fno-enforce-eh-specs -s -O3 -ffast-math
-malign-double -march=native -MT fileinputoutput.o -MD -MP -MF
..deps/fileinputoutput.Tpo -c -o fileinputoutput.o fileinputoutput.cpp
g++: unrecognized option '-pthread'
mv -f .deps/fileinputoutput.Tpo .deps/fileinputoutput.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -I../.. -I../../source -I../../source
-I../../unix -I../../vfe -I../../vfe/unix -pthread -I/usr/include  -pipe
-Wno-multichar -Wno-write-strings -fno-enforce-eh-specs -s -O3 -ffast-math
-malign-double -march=native -MT hdr.o -MD -MP -MF .deps/hdr.Tpo -c -o hdr.o
`test -f 'image/hdr.cpp' || echo './'`image/hdr.cpp
g++: unrecognized option '-pthread'
mv -f .deps/hdr.Tpo .deps/hdr.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -I../.. -I../../source -I../../source
-I../../unix -I../../vfe -I../../vfe/unix -pthread -I/usr/include  -pipe
-Wno-multichar -Wno-write-strings -fno-enforce-eh-specs -s -O3 -ffast-math
-malign-double -march=native -MT image.o -MD -MP -MF .deps/image.Tpo -c -o
image.o `test -f 'image/image.cpp' || echo './'`image/image.cpp
g++: unrecognized option '-pthread'
image/image.cpp: In constructor




pov_base::FileBackedPixelContainer::ReadPixel(long int, long int,





make[3]: *** [image.o] Error 1
make[3]: Leaving directory `/temp/povray-3.7.0.RC3/source/base'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/temp/povray-3.7.0.RC3/source'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/temp/povray-3.7.0.RC3'
make: *** [all] Error 2


Post a reply to this message

From: Le Forgeron
Subject: Re: compiling under Cygwin errors
Date: 3 Jul 2011 01:31:04
Message: <4e0ffe98$1@news.povray.org>
Le 03/07/2011 06:32, kursad nous fit lire :
> Hi
> 
> I am trying to compile Povray3.7 under Cygwin using the Linux codebase. The
> reason I am trying to compile under Cygwin is that I need to use the commandline
> version over ssh sessions(ie coding on laptop, rendering on desktop).
> 
> Anyways I cannot seem to get it compiled, I also tried disabling most of the
> configure options and did not seem to make any diffence. Here is the error
> section
> 
> My cpp skills are pretty bleak so I cannot figure this out on my own
> 
> 
> thanks

> image/image.cpp:2889: error: ‘lseek64’ was not declared in this scope
> image/image.cpp: In member function ‘void
> pov_base::FileBackedPixelContainer::ReadPixel(long int, long int,
> pov_base::FileBackedPixelContainer::pixel_type&)’:
> image/image.cpp:3060: error: ‘lseek64’ was not declared in this scope
> image/image.cpp: In member function ‘void
> pov_base::FileBackedPixelContainer::WriteCurrentBlock()’:
> image/image.cpp:3083: error: ‘lseek64’ was not declared in this scope

Seems you are lacking lseek64 on cygwin.

As long as you're not compiling for a system which would be 64 bits, you
can probably replace the call to lseek64 with its older parent: lseek.

A preprocessor option -Dlseek64=lseek should avoid you to edit the code,
if I'm not too rusted. (in CPPFLAGS of configure: ./configure
CPPFLAGS="-D..." ... )


Post a reply to this message

From: kursad
Subject: Re: compiling under Cygwin errors
Date: 3 Jul 2011 11:40:00
Message: <web.4e108cf282813b21c1e3d720@news.povray.org>
Le_Forgeron,

Thanks for your insight. It seems like I managed to stop that error with your
help. But now I am hitting another one :(


Here is the tail part


g++ -DHAVE_CONFIG_H -DPOVLIBDIR=\"/usr/local/share/povray-3.7\"
-DPOVCONFDIR=\"/usr/local/etc/povray/3.7\"
-DPOVCONFDIR_BACKWARD=\"/usr/local/etc\" -I. -I..  -I../vfe/unix -I../unix
-I../source -I../source/base -I../source/backend -Dlseek64=lseek -pthread
-I/usr/include  -I/usr/include  -pipe -Wno-multichar -Wno-write-strings
-fno-enforce-eh-specs -s -O3 -ffast-math -malign-double -march=native -MT
vfeplatform.o -MD -MP -MF .deps/vfeplatform.Tpo -c -o vfeplatform.o `test -f
'unix/vfeplatform.cpp' || echo './'`unix/vfeplatform.cpp
g++: unrecognized option '-pthread'
mv -f .deps/vfeplatform.Tpo .deps/vfeplatform.Po
g++ -DHAVE_CONFIG_H -DPOVLIBDIR=\"/usr/local/share/povray-3.7\"
-DPOVCONFDIR=\"/usr/local/etc/povray/3.7\"
-DPOVCONFDIR_BACKWARD=\"/usr/local/etc\" -I. -I..  -I../vfe/unix -I../unix
-I../source -I../source/base -I../source/backend -Dlseek64=lseek -pthread
-I/usr/include  -I/usr/include  -pipe -Wno-multichar -Wno-write-strings
-fno-enforce-eh-specs -s -O3 -ffast-math -malign-double -march=native -MT
unixoptions.o -MD -MP -MF .deps/unixoptions.Tpo -c -o unixoptions.o `test -f
'unix/unixoptions.cpp' || echo './'`unix/unixoptions.cpp
g++: unrecognized option '-pthread'
mv -f .deps/unixoptions.Tpo .deps/unixoptions.Po
g++ -DHAVE_CONFIG_H -DPOVLIBDIR=\"/usr/local/share/povray-3.7\"
-DPOVCONFDIR=\"/usr/local/etc/povray/3.7\"
-DPOVCONFDIR_BACKWARD=\"/usr/local/etc\" -I. -I..  -I../vfe/unix -I../unix
-I../source -I../source/base -I../source/backend -Dlseek64=lseek -pthread
-I/usr/include  -I/usr/include  -pipe -Wno-multichar -Wno-write-strings
-fno-enforce-eh-specs -s -O3 -ffast-math -malign-double -march=native -MT
platformbase.o -MD -MP -MF .deps/platformbase.Tpo -c -o platformbase.o `test -f
'unix/platformbase.cpp' || echo './'`unix/platformbase.cpp
g++: unrecognized option '-pthread'



this scope

this scope



this scope
make[2]: *** [platformbase.o] Error 1
make[2]: Leaving directory `/temp/povray-3.7.0.RC3/vfe'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/temp/povray-3.7.0.RC3'
make: *** [all] Error 2


Post a reply to this message

From: Le Forgeron
Subject: Re: compiling under Cygwin errors
Date: 3 Jul 2011 14:11:27
Message: <4e10b0cf@news.povray.org>
Le 03/07/2011 17:38, kursad nous fit lire :
> Le_Forgeron,
> 
> Thanks for your insight. It seems like I managed to stop that error with your
> help. But now I am hitting another one :(
> 
> 
> Here is the tail part
> 
> 
> unix/platformbase.cpp: In member function ‘long long unsigned int
> pov_base::vfeTimer::GetCPUTime() const’:
> unix/platformbase.cpp:197: error: ‘CLOCK_THREAD_CPUTIME_ID’ was not declared in
> this scope
> unix/platformbase.cpp:197: error: ‘CLOCK_PROCESS_CPUTIME_ID’ was not declared in
> this scope
> unix/platformbase.cpp: In member function ‘bool
> pov_base::vfeTimer::HasValidCPUTime() const’:
> unix/platformbase.cpp:234: error: ‘CLOCK_THREAD_CPUTIME_ID’ was not declared in
> this scope
> make[2]: *** [platformbase.o] Error 1
> make[2]: Leaving directory `/temp/povray-3.7.0.RC3/vfe'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/temp/povray-3.7.0.RC3'
> make: *** [all] Error 2
> 

You need to get ride of HAVE_CLOCK_GETTIME in ./config.h (#undef ...
instead of #define ), because the version provided by cygwin is far too
old, IMHO.

It will only impact the time-report, not really a big thing for your case.


Post a reply to this message

From: kursad
Subject: Re: compiling under Cygwin errors
Date: 3 Jul 2011 23:15:01
Message: <web.4e112fcc82813b21c1e3d720@news.povray.org>
Le_Forgeron

Thanks again. I am working out one by one with your help. But that did not stop
further errors ;)

.../source/backend/libbackend.a(task.o):task.cpp:(.text+0x6e4): undefined
reference to `boost::thread::start_thread()'
.../source/backend/libbackend.a(task.o):task.cpp:(.text$_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf1IvN3p
ov4TaskERKNS_9function0IvEEEENS2_5list2INS2_5valueIPS7_EENSE_IS9_EEEEEEED0Ev[boost::detail::thread_data<boost::_bi::bin
d_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()]+0x48):
undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
.../source/backend/libbackend.a(task.o):task.cpp:(.text$_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf1IvN3p
ov4TaskERKNS_9function0IvEEEENS2_5list2INS2_5valueIPS7_EENSE_IS9_EEEEEEED0Ev[boost::detail::thread_data<boost::_bi::bin
d_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()]+0x61):
undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
.../source/backend/libbackend.a(task.o):task.cpp:(.text$_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf1IvN3p
ov4TaskERKNS_9function0IvEEEENS2_5list2INS2_5valueIPS7_EENSE_IS9_EEEEEEED1Ev[boost::detail::thread_data<boost::_bi::bin
d_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()]+0x59):
undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
.../source/backend/libbackend.a(task.o):task.cpp:(.text$_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf1IvN3p
ov4TaskERKNS_9function0IvEEEENS2_5list2INS2_5valueIPS7_EENSE_IS9_EEEEEEED1Ev[boost::detail::thread_data<boost::_bi::bin
d_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()]+0x4f):
undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
.../source/backend/libbackend.a(task.o):task.cpp:(.text$_ZN5boost6thread16make_thread_infoINS_3_bi6bind_tIvNS_4_mfi3mf1
IvN3pov4TaskERKNS_9function0IvEEEENS2_5list2INS2_5valueIPS7_EENSE_IS9_EEEEEEEENS_10shared_ptrINS_6detail16thread_data_b
aseEEET_[boost::shared_ptr<boost::detail::thread_data_base>
boost::thread::make_thread_info<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> > > > >(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> > > >)]+0x67): undefined reference to
`vtable for boost::detail::thread_data_base'
.../source/backend/libbackend.a(task.o):task.cpp:(.text$_ZN5boost6thread16make_thread_infoINS_3_bi6bind_tIvNS_4_mfi3mf1
IvN3pov4TaskERKNS_9function0IvEEEENS2_5list2INS2_5valueIPS7_EENSE_IS9_EEEEEEEENS_10shared_ptrINS_6detail16thread_data_b
aseEEET_[boost::shared_ptr<boost::detail::thread_data_base>
boost::thread::make_thread_info<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> > > > >(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> > > >)]+0x380): undefined reference to
`boost::detail::thread_data_base::~thread_data_base()'
.../source/backend/libbackend.a(task.o):task.cpp:(.rdata$_ZTIN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf1Iv
N3pov4TaskERKNS_9function0IvEEEENS2_5list2INS2_5valueIPS7_EENSE_IS9_EEEEEEEE[typeinfo
for 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> > > > >]+0x8): undefined reference to
`typeinfo for boost::detail::thread_data_base'
collect2: ld returned 1 exit status
make[2]: *** [povray.exe] Error 1
make[2]: Leaving directory `/temp/povray-3.7.0.RC3/unix'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/temp/povray-3.7.0.RC3'
make: *** [all] Error 2


Post a reply to this message

From: Le Forgeron
Subject: Re: compiling under Cygwin errors
Date: 4 Jul 2011 01:53:38
Message: <4e115562$1@news.povray.org>
Le 04/07/2011 05:13, kursad nous fit lire :
> Le_Forgeron
> 
> Thanks again. I am working out one by one with your help. But that did not stop
> further errors ;)
> 
> .../source/backend/libbackend.a(task.o):task.cpp:(.text+0x6e4): undefined
> reference to `boost::thread::start_thread()'

Oh, we are at the linking phase already, nice!

What is the version of boost ?
Maybe you need to provide manually the boost_thread-mt library ?
(there is an option for that in configure, sometime it is needed (not on
ubuntu, but it has to on red hat, IIRC, so why not cygwin))

--with-boost-thread=boost_thread-mt

If your version of boost is less than 1.37, you will have to update or
install a fresher one by hand first. (and check also if "boost thread
dev" or whatever name is also installed)


Post a reply to this message

From: kursad
Subject: Re: compiling under Cygwin errors
Date: 5 Jul 2011 12:25:01
Message: <web.4e133a8582813b21c1e3d720@news.povray.org>
Le Forgeron, thanks for your help. I managed to compile after the last tip. So
far it does work for simple stuff. I will test for real later today.

I have created a post about it(in progress) if anyone needs simple steps to
follow

http://pastie.org/2168011



thanks
Le_Forgeron <jgr### [at] freefr> wrote:
> Le 04/07/2011 05:13, kursad nous fit lire :
> > Le_Forgeron


Post a reply to this message

From: Le Forgeron
Subject: Re: compiling under Cygwin errors
Date: 6 Jul 2011 02:33:37
Message: <4e1401c1$1@news.povray.org>
Le 05/07/2011 18:23, kursad nous fit lire :
> Le Forgeron, thanks for your help. I managed to compile after the last tip. So
> far it does work for simple stuff. I will test for real later today.
> 
> I have created a post about it(in progress) if anyone needs simple steps to
> follow
> 
> http://pastie.org/2168011

Thanks for the feedback.
One last notice: the -V option is being "updated" to "--V" (due to a bug
report: it conflict with another basic option) in the next RC (using
--version is safer for long term)


Post a reply to this message

From: clipka
Subject: Re: compiling under Cygwin errors
Date: 6 Jul 2011 08:00:09
Message: <4e144e49$1@news.povray.org>
Am 05.07.2011 18:23, schrieb kursad:
> Le Forgeron, thanks for your help. I managed to compile after the last tip. So
> far it does work for simple stuff. I will test for real later today.
>
> I have created a post about it(in progress) if anyone needs simple steps to
> follow
>
> http://pastie.org/2168011

Many thanks for the how-to! I think it would make a nice addition to the 
POV-Ray Wiki - would that be ok for you?


Post a reply to this message

From: kursad
Subject: Re: compiling under Cygwin errors
Date: 6 Jul 2011 11:15:01
Message: <web.4e147baa82813b21c1e3d720@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 05.07.2011 18:23, schrieb kursad:
> > Le Forgeron, thanks for your help. I managed to compile after the last tip. So
> > far it does work for simple stuff. I will test for real later today.
> >
> > I have created a post about it(in progress) if anyone needs simple steps to
> > follow
> >
> > http://pastie.org/2168011
>
> Many thanks for the how-to! I think it would make a nice addition to the
> POV-Ray Wiki - would that be ok for you?

Clipka, if you feel like it should be on the wiki then it should be on the wiki.
I am fine with that. I wrote it so that people do not need to sped as much time.

Btw the final edited version is on my web site. If there should be some
additions-corrections please let me know.

http://share.plecxus.com/?p=98

thanks


Post a reply to this message

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