Thread: [Plib-users] (newbie) Problems with installing PLIB on a Macintosh.
Brought to you by:
sjbaker
From: <eke...@ho...> - 2006-05-29 14:59:21
|
Hello. I am a rookie programmer, and new to both UNIX and PLIB. I've seen several free, cross-platform, hardware accelerated game development libraries, and PLIB seems to be the best, as it is written in C++ and doesn't require dozens of other libraries to be installed already. When I tried, following the instructions on the page http://plib.sourceforge.net/download.html, to install the API on my MacMini G4 SuperDrive with MacOS X 10.4 and the bundled XCode Tools, everything seemed fine at first. I ran "./configure", getting this result: ------------------------------------------------------------------ Macintosh:/developer/plib-1.8.4 ottohalmen$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes includedir changed to ${prefix}/include/plib libdir is ${exec_prefix}/lib checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for a BSD-compatible install... /usr/bin/install -c checking for ranlib... ranlib checking build system type... powerpc-apple-darwin8.6.0 checking host system type... powerpc-apple-darwin8.6.0 checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking OpenGL/gl.h usability... yes checking OpenGL/gl.h presence... yes checking for OpenGL/gl.h... yes checking for pthread_exit in -lc_r... no checking for socklen_t... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/js/Makefile config.status: creating src/util/Makefile config.status: creating src/sg/Makefile config.status: creating src/sl/Makefile config.status: creating src/psl/Makefile config.status: creating src/ssg/Makefile config.status: creating src/ssgAux/Makefile config.status: creating src/fnt/Makefile config.status: creating src/pui/Makefile config.status: creating src/puAux/Makefile config.status: creating src/pw/Makefile config.status: creating src/net/Makefile config.status: executing depfiles commands PLIB configuration information: Building FNT library: yes Building JS library: yes Building NET library: yes Building PUI library: yes Building puAux library: yes Building SG library: yes Building PSL library: yes Building SL library: yes Building SSG library: yes Building ssgAux library: yes Building PW library: yes Building UTIL library: yes ------------------------------------------------------------------ But when I tried running "sudo make install" ("sudo" to become the root, as told in "http://plib.sourceforge.net/download.html"), I got the following: ------------------------------------------------------------------ Macintosh:/developer/plib-1.8.4 ottohalmen$ sudo make install Password: Sorry, try again. Password: Making install in src Making install in util if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"plib\" -DVERSION=\"1.8.4\" -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_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -I. -g -O2 -Wall -MT ul.o -MD -MP -MF ".deps/ul.Tpo" -c -o ul.o ul.cxx; \ then mv -f ".deps/ul.Tpo" ".deps/ul.Po"; else rm -f ".deps/ul.Tpo"; exit 1; fi if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"plib\" -DVERSION=\"1.8.4\" -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_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -I. -g -O2 -Wall -MT ulClock.o -MD -MP -MF ".deps/ulClock.Tpo" -c -o ulClock.o ulClock.cxx; \ then mv -f ".deps/ulClock.Tpo" ".deps/ulClock.Po"; else rm -f ".deps/ulClock.Tpo"; exit 1; fi if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"plib\" -DVERSION=\"1.8.4\" -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_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -I. -g -O2 -Wall -MT ulError.o -MD -MP -MF ".deps/ulError.Tpo" -c -o ulError.o ulError.cxx; \ then mv -f ".deps/ulError.Tpo" ".deps/ulError.Po"; else rm -f ".deps/ulError.Tpo"; exit 1; fi if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"plib\" -DVERSION=\"1.8.4\" -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_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -I. -g -O2 -Wall -MT ulLinkedList.o -MD -MP -MF ".deps/ulLinkedList.Tpo" -c -o ulLinkedList.o ulLinkedList.cxx; \ then mv -f ".deps/ulLinkedList.Tpo" ".deps/ulLinkedList.Po"; else rm -f ".deps/ulLinkedList.Tpo"; exit 1; fi if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"plib\" -DVERSION=\"1.8.4\" -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_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -I. -g -O2 -Wall -MT ulList.o -MD -MP -MF ".deps/ulList.Tpo" -c -o ulList.o ulList.cxx; \ then mv -f ".deps/ulList.Tpo" ".deps/ulList.Po"; else rm -f ".deps/ulList.Tpo"; exit 1; fi if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"plib\" -DVERSION=\"1.8.4\" -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_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -I. -g -O2 -Wall -MT ulRTTI.o -MD -MP -MF ".deps/ulRTTI.Tpo" -c -o ulRTTI.o ulRTTI.cxx; \ then mv -f ".deps/ulRTTI.Tpo" ".deps/ulRTTI.Po"; else rm -f ".deps/ulRTTI.Tpo"; exit 1; fi rm -f libplibul.a ar cru libplibul.a ul.o ulClock.o ulError.o ulLinkedList.o ulList.o ulRTTI.o ranlib libplibul.a test -z "/usr/lib" || /developer/plib-1.8.4/install-sh -d "/usr/lib" /usr/bin/install -c -m 644 'libplibul.a' '/usr/lib/libplibul.a' ranlib '/usr/lib/libplibul.a' test -z "/usr/include/plib" || /developer/plib-1.8.4/install-sh -d "/usr/include/plib" /usr/bin/install -c -m 644 'ul.h' '/usr/include/plib/ul.h' /usr/bin/install -c -m 644 'ulRTTI.h' '/usr/include/plib/ulRTTI.h' Making install in js if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"plib\" -DVERSION=\"1.8.4\" -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_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -I. -I../../src/util -g -O2 -Wall -MT js.o -MD -MP -MF ".deps/js.Tpo" -c -o js.o js.cxx; \ then mv -f ".deps/js.Tpo" ".deps/js.Po"; else rm -f ".deps/js.Tpo"; exit 1; fi if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"plib\" -DVERSION=\"1.8.4\" -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_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -I. -I../../src/util -g -O2 -Wall -MT jsLinux.o -MD -MP -MF ".deps/jsLinux.Tpo" -c -o jsLinux.o jsLinux.cxx; \ then mv -f ".deps/jsLinux.Tpo" ".deps/jsLinux.Po"; else rm -f ".deps/jsLinux.Tpo"; exit 1; fi if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"plib\" -DVERSION=\"1.8.4\" -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_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -I. -I../../src/util -g -O2 -Wall -MT jsLinuxOld.o -MD -MP -MF ".deps/jsLinuxOld.Tpo" -c -o jsLinuxOld.o jsLinuxOld.cxx; \ then mv -f ".deps/jsLinuxOld.Tpo" ".deps/jsLinuxOld.Po"; else rm -f ".deps/jsLinuxOld.Tpo"; exit 1; fi if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"plib\" -DVERSION=\"1.8.4\" -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_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -I. -I../../src/util -g -O2 -Wall -MT jsMacOS.o -MD -MP -MF ".deps/jsMacOS.Tpo" -c -o jsMacOS.o jsMacOS.cxx; \ then mv -f ".deps/jsMacOS.Tpo" ".deps/jsMacOS.Po"; else rm -f ".deps/jsMacOS.Tpo"; exit 1; fi if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"plib\" -DVERSION=\"1.8.4\" -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_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -I. -I../../src/util -g -O2 -Wall -MT jsMacOSX.o -MD -MP -MF ".deps/jsMacOSX.Tpo" -c -o jsMacOSX.o jsMacOSX.cxx; \ then mv -f ".deps/jsMacOSX.Tpo" ".deps/jsMacOSX.Po"; else rm -f ".deps/jsMacOSX.Tpo"; exit 1; fi jsMacOSX.cxx:278: error: cannot declare member function 'static void os_specific_s::elementEnumerator(const void*, void*)' to have static linkage make[2]: *** [jsMacOSX.o] Error 1 make[1]: *** [install-recursive] Error 1 make: *** [install-recursive] Error 1 ------------------------------------------------------------------ As I said, I am a newbie, so it might be that I have done something wrong (other than what lines 2-3 say!), but the debug text following my call to "sudo make install" doesn't tell me much. I already wrote to Steve J. Baker (before finding out about this place), but he merely told me to write here. Hopefully, someone more familiar with the system could help me with this (please!). -Otto _________________________________________________________________ Uutisista turhaan tietoon. Mitä ikinä etsitkin, MSN Search löytää hakemasi. http://search.msn.fi |
From: <coz...@gm...> - 2006-05-30 07:25:59
|
Hello, I am a rookie programmer, and new to both UNIX and PLIB. I've seen several > free, cross-platform, hardware accelerated game development libraries, and > PLIB seems to be the best, as it is written in C++ and doesn't require > dozens of other libraries to be installed already. > > When I tried, following the instructions on the page > http://plib.sourceforge.net/download.html, to install the API on my > MacMini > G4 SuperDrive with MacOS X 10.4 and the bundled XCode Tools, everything > seemed fine at first. I ran "./configure", getting this result: [...] Well, I checked the source(I'm not really using a mac) and it seems that both the function implementation and declaration for the function os_specific_s::elementEnumerator are using the static keyword but only the declaration should have it. In other words, in the file src/js/jsMacOSX.cxx at the line 278 the static keyword shouldn't be there. Just erase it. The people with commit access could delete the keyword from there and commit the change. -Coz |