POV-Ray : Newsgroups : povray.general : compiling under Cygwin errors : Re: compiling under Cygwin errors Server Time
29 Jul 2024 12:15:53 EDT (-0400)
  Re: compiling under Cygwin errors  
From: Le Forgeron
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

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