Re: [Plib-users] [Plib-devel] PLIB-1.8.5 make errors
Brought to you by:
sjbaker
From: John F. F. <joh...@cy...> - 2009-01-01 19:04:55
|
Whoops, typo on my part. I had said "UL_GYGWIN" instead of "UL_CYGWIN" when I was testing the fix. The library will indeed build with the change that I gave in my earlier missive. - John -----Original Message----- From: John F. Fay Sent: Thursday, January 01, 2009 10:06 AM To: 'PLIB Users' Cc: 'PLIB Developers' Subject: Re: [Plib-devel] [Plib-users] PLIB-1.8.5 make errors DB, Unfortunately I am not an expert on either SSG or cygwin. I downloaded cygwin a couple of months ago and tried building PLIB in it so that I can reproduce your error. After some adventures with "dos2unix" (I'm trying to build the SVN version of PLIB, which I downloaded using a Windows TortoiseSVN version), I'm running "configure." The root of your problem is a "#define" on line 243 of the offending file. Windows, in the infinite wisdom of Microsoft, decided that "stat" needed to be "_stat" and the rest of the world is living with the consequences. An immediate fix to your problem is tochange the "#if" on line 242 of "ssgLoadTexture.cxx" to the following: #if defined(UL_WIN32) && !defined(UL_CYGWIN) Unfortunately that doesn't actually solve the problem. Through a chain of inclusions, we get back to "util/ul.h" which defines "UL_CYGWIN" if the symbol "__CYGWIN__" is defined. Apparently the latter symbol is not defined, and somebody with more knowledge than I needs to put something in the Makefile to define it. - John -----Original Message----- From: DB Sent: Sunday, December 28, 2008 3:01 AM To: pli...@li... Subject: [Plib-users] PLIB-1.8.5 make errors Hi, I've downloaded the current stable plib-1.8.5 and performed the following operations in cygwin: ./configure --prefix=/fg-1.9.0 and make. but something went wrong. I received the following error: " make[2]: Entering directory `/home/IBM User/tar/plib-1.8.5/src/ssg' if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"plib\" -DVERSION=\ "1.8.5\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INT TYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DWIN32=1 -I. -I. -I../../src/sg -I../../src/util -g -O2 -Wall -MT ssgLoadTexture.o -MD -MP -MF ".dep s/ssgLoadTexture.Tpo" -c -o ssgLoadTexture.o ssgLoadTexture.cxx; \ then mv -f ".deps/ssgLoadTexture.Tpo" ".deps/ssgLoadTexture.Po"; else rm -f ".deps/ssgLoadTexture.Tpo"; exit 1; fi ssgLoadTexture.cxx: In function `int fileMTimeCmp(const char*, const char*)': ssgLoadTexture.cxx:245: error: aggregate `_stat buffer_in' has incomplete type and cannot be defined ssgLoadTexture.cxx:245: error: aggregate `_stat buffer_out' has incomplete type and cannot be defined ssgLoadTexture.cxx:247: error: invalid use of undefined type `struct _stat' ssgLoadTexture.cxx:245: error: forward declaration of `struct _stat' ssgLoadTexture.cxx:247: error: invalid use of undefined type `struct _stat' ssgLoadTexture.cxx:245: error: forward declaration of `struct _stat' make[2]: *** [ssgLoadTexture.o] Error 1 make[2]: Leaving directory `/home/IBM User/tar/plib-1.8.5/src/ssg' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/IBM User/tar/plib-1.8.5/src' make: *** [all-recursive] Error 1 " I'll appreciate your help. Regards, DB ------------------------------------------------------------------------ ------ _______________________________________________ plib-devel mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-devel |