Thread: [Plib-users] Building PLIB on x86_64 (FC6)
Brought to you by:
sjbaker
From: <li...@ce...> - 2007-03-09 15:50:22
|
I downloaded PLIB 1.8.4, extracted the files, 'cd' to the directory =20 and did this: ./configure sudo make install All seems to build except ssgAux... I have included the output of the =20 make at the end of this email.... I am really interested at this time =20 only in the fnt lib. Do I really need ssgAux to use the fnt lib? If =20 so, can someone tell me what the fix is to build ssgAux? Thanks, Ed ssgAux build output.... Making install in ssgAux make[2]: Entering directory =20 `/home/epeddycoart/development/libraries/plib-1.8.4/src/ssgAux' if g++ -DPACKAGE_NAME=3D\"\" -DPACKAGE_TARNAME=3D\"\" =20 -DPACKAGE_VERSION=3D\"\" -DPACKAGE_STRING=3D\"\" -DPACKAGE_BUGREPORT=3D\"\" = =20 -DPACKAGE=3D\"plib\" -DVERSION=3D\"1.8.4\" -DHAVE_LIBPTHREAD=3D1 =20 -DHAVE_LIBGL=3D1 -DHAVE_LIBDL=3D1 -DSTDC_HEADERS=3D1 -DHAVE_SYS_TYPES_H=3D1 = =20 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 =20 -DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 =20 -DHAVE_STDINT_H=3D1 -DHAVE_UNISTD_H=3D1 -I. -I. -I../../src/sg =20 -I../../src/ssg -I../../src/util -g -O2 -Wall -MT ssgAux.o -MD -MP =20 -MF ".deps/ssgAux.Tpo" -c -o ssgAux.o ssgAux.cxx; \ then mv -f ".deps/ssgAux.Tpo" ".deps/ssgAux.Po"; else rm -f =20 ".deps/ssgAux.Tpo"; exit 1; fi if g++ -DPACKAGE_NAME=3D\"\" -DPACKAGE_TARNAME=3D\"\" =20 -DPACKAGE_VERSION=3D\"\" -DPACKAGE_STRING=3D\"\" -DPACKAGE_BUGREPORT=3D\"\" = =20 -DPACKAGE=3D\"plib\" -DVERSION=3D\"1.8.4\" -DHAVE_LIBPTHREAD=3D1 =20 -DHAVE_LIBGL=3D1 -DHAVE_LIBDL=3D1 -DSTDC_HEADERS=3D1 -DHAVE_SYS_TYPES_H=3D1 = =20 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 =20 -DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 =20 -DHAVE_STDINT_H=3D1 -DHAVE_UNISTD_H=3D1 -I. -I. -I../../src/sg =20 -I../../src/ssg -I../../src/util -g -O2 -Wall -MT ssgaShapes.o -MD =20 -MP -MF ".deps/ssgaShapes.Tpo" -c -o ssgaShapes.o ssgaShapes.cxx; \ then mv -f ".deps/ssgaShapes.Tpo" ".deps/ssgaShapes.Po"; else =20 rm -f ".deps/ssgaShapes.Tpo"; exit 1; fi ssgaShapes.cxx: In member function =91virtual int ssgaShape::load(FILE*)=92: ssgaShapes.cxx:793: warning: dereferencing type-punned pointer will =20 break strict-aliasing rules if g++ -DPACKAGE_NAME=3D\"\" -DPACKAGE_TARNAME=3D\"\" =20 -DPACKAGE_VERSION=3D\"\" -DPACKAGE_STRING=3D\"\" -DPACKAGE_BUGREPORT=3D\"\" = =20 -DPACKAGE=3D\"plib\" -DVERSION=3D\"1.8.4\" -DHAVE_LIBPTHREAD=3D1 =20 -DHAVE_LIBGL=3D1 -DHAVE_LIBDL=3D1 -DSTDC_HEADERS=3D1 -DHAVE_SYS_TYPES_H=3D1 = =20 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 =20 -DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 =20 -DHAVE_STDINT_H=3D1 -DHAVE_UNISTD_H=3D1 -I. -I. -I../../src/sg =20 -I../../src/ssg -I../../src/util -g -O2 -Wall -MT ssgaPatch.o -MD =20 -MP -MF ".deps/ssgaPatch.Tpo" -c -o ssgaPatch.o ssgaPatch.cxx; \ then mv -f ".deps/ssgaPatch.Tpo" ".deps/ssgaPatch.Po"; else =20 rm -f ".deps/ssgaPatch.Tpo"; exit 1; fi if g++ -DPACKAGE_NAME=3D\"\" -DPACKAGE_TARNAME=3D\"\" =20 -DPACKAGE_VERSION=3D\"\" -DPACKAGE_STRING=3D\"\" -DPACKAGE_BUGREPORT=3D\"\" = =20 -DPACKAGE=3D\"plib\" -DVERSION=3D\"1.8.4\" -DHAVE_LIBPTHREAD=3D1 =20 -DHAVE_LIBGL=3D1 -DHAVE_LIBDL=3D1 -DSTDC_HEADERS=3D1 -DHAVE_SYS_TYPES_H=3D1 = =20 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 =20 -DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 =20 -DHAVE_STDINT_H=3D1 -DHAVE_UNISTD_H=3D1 -I. -I. -I../../src/sg =20 -I../../src/ssg -I../../src/util -g -O2 -Wall -MT =20 ssgaParticleSystem.o -MD -MP -MF ".deps/ssgaParticleSystem.Tpo" -c -o =20 ssgaParticleSystem.o ssgaParticleSystem.cxx; \ then mv -f ".deps/ssgaParticleSystem.Tpo" =20 ".deps/ssgaParticleSystem.Po"; else rm -f =20 ".deps/ssgaParticleSystem.Tpo"; exit 1; fi if g++ -DPACKAGE_NAME=3D\"\" -DPACKAGE_TARNAME=3D\"\" =20 -DPACKAGE_VERSION=3D\"\" -DPACKAGE_STRING=3D\"\" -DPACKAGE_BUGREPORT=3D\"\" = =20 -DPACKAGE=3D\"plib\" -DVERSION=3D\"1.8.4\" -DHAVE_LIBPTHREAD=3D1 =20 -DHAVE_LIBGL=3D1 -DHAVE_LIBDL=3D1 -DSTDC_HEADERS=3D1 -DHAVE_SYS_TYPES_H=3D1 = =20 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 =20 -DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 =20 -DHAVE_STDINT_H=3D1 -DHAVE_UNISTD_H=3D1 -I. -I. -I../../src/sg =20 -I../../src/ssg -I../../src/util -g -O2 -Wall -MT ssgaWaveSystem.o =20 -MD -MP -MF ".deps/ssgaWaveSystem.Tpo" -c -o ssgaWaveSystem.o =20 ssgaWaveSystem.cxx; \ then mv -f ".deps/ssgaWaveSystem.Tpo" =20 ".deps/ssgaWaveSystem.Po"; else rm -f ".deps/ssgaWaveSystem.Tpo"; exit =20 1; fi if g++ -DPACKAGE_NAME=3D\"\" -DPACKAGE_TARNAME=3D\"\" =20 -DPACKAGE_VERSION=3D\"\" -DPACKAGE_STRING=3D\"\" -DPACKAGE_BUGREPORT=3D\"\" = =20 -DPACKAGE=3D\"plib\" -DVERSION=3D\"1.8.4\" -DHAVE_LIBPTHREAD=3D1 =20 -DHAVE_LIBGL=3D1 -DHAVE_LIBDL=3D1 -DSTDC_HEADERS=3D1 -DHAVE_SYS_TYPES_H=3D1 = =20 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 =20 -DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 =20 -DHAVE_STDINT_H=3D1 -DHAVE_UNISTD_H=3D1 -I. -I. -I../../src/sg =20 -I../../src/ssg -I../../src/util -g -O2 -Wall -MT ssgaLensFlare.o =20 -MD -MP -MF ".deps/ssgaLensFlare.Tpo" -c -o ssgaLensFlare.o =20 ssgaLensFlare.cxx; \ then mv -f ".deps/ssgaLensFlare.Tpo" =20 ".deps/ssgaLensFlare.Po"; else rm -f ".deps/ssgaLensFlare.Tpo"; exit =20 1; fi if g++ -DPACKAGE_NAME=3D\"\" -DPACKAGE_TARNAME=3D\"\" =20 -DPACKAGE_VERSION=3D\"\" -DPACKAGE_STRING=3D\"\" -DPACKAGE_BUGREPORT=3D\"\" = =20 -DPACKAGE=3D\"plib\" -DVERSION=3D\"1.8.4\" -DHAVE_LIBPTHREAD=3D1 =20 -DHAVE_LIBGL=3D1 -DHAVE_LIBDL=3D1 -DSTDC_HEADERS=3D1 -DHAVE_SYS_TYPES_H=3D1 = =20 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 =20 -DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 =20 -DHAVE_STDINT_H=3D1 -DHAVE_UNISTD_H=3D1 -I. -I. -I../../src/sg =20 -I../../src/ssg -I../../src/util -g -O2 -Wall -MT =20 ssgaLensFlareTexture.o -MD -MP -MF ".deps/ssgaLensFlareTexture.Tpo" -c =20 -o ssgaLensFlareTexture.o ssgaLensFlareTexture.cxx; \ then mv -f ".deps/ssgaLensFlareTexture.Tpo" =20 ".deps/ssgaLensFlareTexture.Po"; else rm -f =20 ".deps/ssgaLensFlareTexture.Tpo"; exit 1; fi if g++ -DPACKAGE_NAME=3D\"\" -DPACKAGE_TARNAME=3D\"\" =20 -DPACKAGE_VERSION=3D\"\" -DPACKAGE_STRING=3D\"\" -DPACKAGE_BUGREPORT=3D\"\" = =20 -DPACKAGE=3D\"plib\" -DVERSION=3D\"1.8.4\" -DHAVE_LIBPTHREAD=3D1 =20 -DHAVE_LIBGL=3D1 -DHAVE_LIBDL=3D1 -DSTDC_HEADERS=3D1 -DHAVE_SYS_TYPES_H=3D1 = =20 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 =20 -DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 =20 -DHAVE_STDINT_H=3D1 -DHAVE_UNISTD_H=3D1 -I. -I. -I../../src/sg =20 -I../../src/ssg -I../../src/util -g -O2 -Wall -MT ssgaFire.o -MD =20 -MP -MF ".deps/ssgaFire.Tpo" -c -o ssgaFire.o ssgaFire.cxx; \ then mv -f ".deps/ssgaFire.Tpo" ".deps/ssgaFire.Po"; else rm =20 -f ".deps/ssgaFire.Tpo"; exit 1; fi if g++ -DPACKAGE_NAME=3D\"\" -DPACKAGE_TARNAME=3D\"\" =20 -DPACKAGE_VERSION=3D\"\" -DPACKAGE_STRING=3D\"\" -DPACKAGE_BUGREPORT=3D\"\" = =20 -DPACKAGE=3D\"plib\" -DVERSION=3D\"1.8.4\" -DHAVE_LIBPTHREAD=3D1 =20 -DHAVE_LIBGL=3D1 -DHAVE_LIBDL=3D1 -DSTDC_HEADERS=3D1 -DHAVE_SYS_TYPES_H=3D1 = =20 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 =20 -DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 =20 -DHAVE_STDINT_H=3D1 -DHAVE_UNISTD_H=3D1 -I. -I. -I../../src/sg =20 -I../../src/ssg -I../../src/util -g -O2 -Wall -MT ssgaScreenDump.o =20 -MD -MP -MF ".deps/ssgaScreenDump.Tpo" -c -o ssgaScreenDump.o =20 ssgaScreenDump.cxx; \ then mv -f ".deps/ssgaScreenDump.Tpo" =20 ".deps/ssgaScreenDump.Po"; else rm -f ".deps/ssgaScreenDump.Tpo"; exit =20 1; fi if g++ -DPACKAGE_NAME=3D\"\" -DPACKAGE_TARNAME=3D\"\" =20 -DPACKAGE_VERSION=3D\"\" -DPACKAGE_STRING=3D\"\" -DPACKAGE_BUGREPORT=3D\"\" = =20 -DPACKAGE=3D\"plib\" -DVERSION=3D\"1.8.4\" -DHAVE_LIBPTHREAD=3D1 =20 -DHAVE_LIBGL=3D1 -DHAVE_LIBDL=3D1 -DSTDC_HEADERS=3D1 -DHAVE_SYS_TYPES_H=3D1 = =20 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 =20 -DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 =20 -DHAVE_STDINT_H=3D1 -DHAVE_UNISTD_H=3D1 -I. -I. -I../../src/sg =20 -I../../src/ssg -I../../src/util -g -O2 -Wall -MT ssgaSphere.o -MD =20 -MP -MF ".deps/ssgaSphere.Tpo" -c -o ssgaSphere.o ssgaSphere.cxx; \ then mv -f ".deps/ssgaSphere.Tpo" ".deps/ssgaSphere.Po"; else =20 rm -f ".deps/ssgaSphere.Tpo"; exit 1; fi if g++ -DPACKAGE_NAME=3D\"\" -DPACKAGE_TARNAME=3D\"\" =20 -DPACKAGE_VERSION=3D\"\" -DPACKAGE_STRING=3D\"\" -DPACKAGE_BUGREPORT=3D\"\" = =20 -DPACKAGE=3D\"plib\" -DVERSION=3D\"1.8.4\" -DHAVE_LIBPTHREAD=3D1 =20 -DHAVE_LIBGL=3D1 -DHAVE_LIBDL=3D1 -DSTDC_HEADERS=3D1 -DHAVE_SYS_TYPES_H=3D1 = =20 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 =20 -DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 =20 -DHAVE_STDINT_H=3D1 -DHAVE_UNISTD_H=3D1 -I. -I. -I../../src/sg =20 -I../../src/ssg -I../../src/util -g -O2 -Wall -MT =20 ssgaCelestialBody.o -MD -MP -MF ".deps/ssgaCelestialBody.Tpo" -c -o =20 ssgaCelestialBody.o ssgaCelestialBody.cxx; \ then mv -f ".deps/ssgaCelestialBody.Tpo" =20 ".deps/ssgaCelestialBody.Po"; else rm -f =20 ".deps/ssgaCelestialBody.Tpo"; exit 1; fi ssgaSky.h:107: error: extra qualification =91ssgaCelestialBodyList::=92 on = =20 member =91ssgaCelestialBodyList=92 ssgaSky.h:195: error: extra qualification =91ssgaCloudLayerList::=92 on =20 member =91ssgaCloudLayerList=92 make[2]: *** [ssgaCelestialBody.o] Error 1 make[2]: Leaving directory =20 `/home/epeddycoart/development/libraries/plib-1.8.4/src/ssgAux' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory =20 `/home/epeddycoart/development/libraries/plib-1.8.4/src' make: *** [install-recursive] Error 1 |
From:
<coz...@gm...> - 2007-03-09 16:51:48
|
Hello Ed, > All seems to build except ssgAux... I have included the output of the > make at the end of this email.... I am really interested at this time > only in the fnt lib. Do I really need ssgAux to use the fnt lib? If > so, can someone tell me what the fix is to build ssgAux? You do not need ssgAux for the fnt lib. However, the extra qualification problem might be something like this: class foo { int foo::do_stuff(); }; instead of class foo { int do_stuff(); }; Just remove the <class name>:: part before the declarations on lines 107 and 195 of ssgaSky.h, and it should fix the problem. At least that's how I have solved 'extra qualifications' problems before. -Coz |
From: Tinoshi K. <ti...@li...> - 2007-03-09 19:00:27
|
Hi, I've been using PLIB in many C++ projects, but now I have to develop an application that is C# based for the GUI (WindowsXP), and needs some OpenGL capable UserControl. I'm simply using a homemade C# wrapper for opengl32.ddl and glu32.dll, and it is ok for something, but right now the application is growing complex and, before rewriting my own scenegraph and stuff, I'd like to ask you something. Do you think that there is an 'easy' way to use PLIB with .NET managed application (without writing a wrapper for all the PLIB, that is crazy :-) )... I was thinking about It Just Works, but I do not know if this is the right approach, or if It Just Doesn't Make Sense ... What I need is to create a managed .dll, that is nothing but a UserControl, and that in the OnPaint method uses PLIB... The guy that is developing the GUI part will not even know that I'm using C++ or PLIB instead of C#, he will just use the control as he would do for any other Windows Form Control. Any idea? Second question, that is probably a little bit more out of topic, so please forgive me but... Is there any way (Windows API, OpenGL) to set up custom graphic card settings? I mean, to tell the graphic card to use x2 Antialias or something like that??? Do drivers export some common interface for things like these??? I just don't want to tell the user: open your graphic card settings and check the antialiasing button to enable it... Do you think I can do that (again, I'm talking about Windows and nothing more :-) ) in an easy way? Thanks!!! Giorgio Tino |