|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hello,
Since everyone started to do private compiles I thought I might give it a
try on Cygwin (unix enviroment under Windows). And I end up with the
following error:
g++ -DPREFIX=\"/usr/local\" -DPOV_LIB_DIR=\"/usr/local/share/povray-3.5\"
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/usr/local/etc\" `if [
"Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi ` -I/usr/X11R6/include
-I/usr/X11R6/include/X11 -c unix.cpp
unix.cpp:101: libgen.h: No such file or directory
make: *** [unix.o] Error 1
And I don't seem to have libgen.h on my system at all, any clue where I
could find a copy of it?
TIA, Thomas
ps. Anyone tried AIX yet?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
OK Solved that one... I found an answer here:
http://www.dgp.toronto.edu/~ravin/courses/csc428f01/tutorials/assignment2/faq.html
So that solves my basename problem. And the next one is:
g++ -DPREFIX=\"/usr/local\" -DPOV_LIB_DIR=\"/usr/local/share/povray-3.5\"
-DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/usr/local/etc\" `if [
"Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi ` -I/usr/X11R6/include
-I/usr/X11R6/include/X11 -c unix.cpp
unix.cpp: In function `int subdir(const char *, char (*)[259], char
(*)[259])':
unix.cpp:970: implicit declaration of function `int dirname(...)'
unix.cpp:970: assignment to `char *' from `int' lacks a cast
make: *** [unix.o] Error 1
any clue? Where is dirname declared?
Thomas
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <web.3d4a752b6a7e3952bbe30ae0@news.povray.org>,
"Thomas" <tho### [at] gmxnet> wrote:
> Since everyone started to do private compiles I thought I might give it a
> try on Cygwin (unix enviroment under Windows). And I end up with the
> following error:
>
> g++ -DPREFIX=\"/usr/local\" -DPOV_LIB_DIR=\"/usr/local/share/povray-3.5\"
> -DCOMPILER_VER=\".Linux.gcc\" -DSYSCONFDIR=\"/usr/local/etc\" `if [
> "Xgcc" = "Xgcc" ]; then echo "-Wno-multichar"; fi ` -I/usr/X11R6/include
> -I/usr/X11R6/include/X11 -c unix.cpp
> unix.cpp:101: libgen.h: No such file or directory
> make: *** [unix.o] Error 1
>
> And I don't seem to have libgen.h on my system at all, any clue where I
> could find a copy of it?
When I compiled under Mac OS X, I just commented the #include out and
implemented my own basename() and dirname() functions. They haven't been
tested, but here they are:
char * basename(char * path)
{
int j = 0;
int idx = 0;//current starting location of copy
while(path[j])
{
if(path[j] == '/')
{
idx = 0;
}
else
{
path[idx] = path[j];
idx++;
}
j++;
}
path[j] = '\0';
return path;
}
char * dirname(char * path)
{
int idx = -1;//index of last '/' in string
for(int j = 0; path[j]; j++)
if(path[j] == '/')
idx = j;
if(idx != -1)
path[idx + 1] = '\0';
return path;
}
--
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Thanks Chris!
That did the trick. I had only one problem after that, one of the files is
compiled with the C compiler instead of the C++ compiler and not all the
path were inserted at the right places. Wich reminds me of a nother small
problem, the ./configure does not pick up the paths to the X-windows stuff
properly. I don't know whether this is a weird cygwin thing or that is
related to the script it self. Just copying the path into the make file did
the trick.
I haven't tried running it with a scene file yet, but compiling and linking
works fine and so does the normal output.
Thomas
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Thomas wrote:
>I haven't tried running it with a scene file yet, but compiling and linking
>works fine and so does the normal output.
Tried that as well, had some problems with the I/O restrictions (just as
everyone else ;), but it runs fine, even with a X Windows display.
R. Thomas
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |