PDA

View Full Version : [ubuntu] Installation of LDGLite



LoneStar++
October 17th, 2010, 08:58 AM
I am trying to install LDGLite by following the instructions found here

http://www.ldraw.org/GetStarted-Linux.html

I followed these steps


user$ cd /tmp
user$ wget http://ldglite.sourceforge.net/ldglitesrc0_9_5.zip
user$ unzip -uoa ldglitesrc0_9_5.zip
user$ cd ldglite
user$ make -f makefile.linux && echo OK
But then I get the following error



gcc -g -DUNIX -DUSE_OPENGL -DUSE_L3_PARSER -DUSE_BMP8 -DNEED_MIN_MAX -DUSE_PNG -DTILE_RENDER_OPTION -DOSMESA_OPTION -c -o ldliteVR_main.o ldliteVR_main.c
gcc -g -DUNIX -DUSE_OPENGL -DUSE_L3_PARSER -DUSE_BMP8 -DNEED_MIN_MAX -DUSE_PNG -DTILE_RENDER_OPTION -DOSMESA_OPTION -c -o platform.o platform.c
platform.c: In function ‘platform_comment’:
platform.c:335: warning: incompatible implicit declaration of built-in function ‘printf’
gcc -g -DUNIX -DUSE_OPENGL -DUSE_L3_PARSER -DUSE_BMP8 -DNEED_MIN_MAX -DUSE_PNG -DTILE_RENDER_OPTION -DOSMESA_OPTION -c -o dirscan.o dirscan.c
dirscan.c: In function ‘CheckFile’:
dirscan.c:354: warning: passing argument 2 of ‘strcpy’ makes pointer from integer without a cast
/usr/include/string.h:127: note: expected ‘const char * __restrict__’ but argument is of type ‘int’
gcc -g -DUNIX -DUSE_OPENGL -DUSE_L3_PARSER -DUSE_BMP8 -DNEED_MIN_MAX -DUSE_PNG -DTILE_RENDER_OPTION -DOSMESA_OPTION -c -o gleps.o gleps.c
gleps.c: In function ‘spewSortedFeedback’:
gleps.c:457: error: label at end of compound statement
gleps.c: In function ‘spewWireFrameEPS’:
gleps.c:506: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘struct FILE *’
make: *** [gleps.o] Error 1
I tried googling but I didn't find much useful.

Any help is much appreciated.
Thanks for your help in advance

EDIT: I started using another program, but I'm still interested in finding out whats wrong.