Thread: Re: [Plib-users] compilation
Brought to you by:
sjbaker
From: LAVIGNE,ERIC <la...@uf...> - 2004-09-23 15:32:11
|
David, As a windows user, I can't be very specific, but here are some ideas. 1) The command "$ gcc simple.cxx -lGL -lglut -lGLU -lm" told gcc that you wanted to use opengl libraries and glut libraries. If your program requires pu.h, then I think you will need the plibpu library also. 2) You said that gcc can't find pu.h. Maybe there is a gcc argument that would tell it extra places to look for include files. 3) simple.cxx is one of the included examples, right? There should be a makefile in the same directory. The easy way to compile is "$ make simple". If you want to use the gcc command directly, consider studying the makefile to learn how others have done it. Welcome to plib. Eric Lavigne On Thu Sep 23 01:38:48 EDT 2004, David <boi...@ya...> wrote: > hi to all! I am new of this list. I have installed plib and > compiled it. Now I have this situation: > > $ ls /usr/include/ | grep -i pli > plib > > $ ls /usr/lib/ | grep -i pli > libplibfnt.a > libplibjs.a > libplibnet.a > libplibpsl.a > libplibpu.a > libplibpuaux.a > libplibpw.a > libplibsg.a > libplibsl.a > libplibsm.a > libplibssg.a > libplibssgaux.a > libplibul.a > > I'm trying to compile some ittle examples but I am not able to do > it. I use this command: > > $ gcc simple.cxx -lGL -lglut -lGLU -lm > > but it doesn't find the plib/pu.h . > > Anyone could help me? > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of > 170 > Project Admins to receive an Apple iPod Mini FREE for your > judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users > > |
From: LAVIGNE,ERIC <la...@uf...> - 2004-09-23 23:58:37
|
gcc is the gnu compiler collection. You can call gcc for a variety of languages and it will choose the most appropriate compiler (out of its collection) based on the file extension. In this case, gcc would probably refer the job to g++. Eric Lavigne On Thu Sep 23 18:44:59 EDT 2004, Steve Baker <sjb...@ai...> wrote: > > Oh - and you're compiling C++ - so shouldn't you be using 'g++' > instead of 'gcc' ? > |
From: David <boi...@ya...> - 2004-09-24 08:38:32
|
thank you for the help. The gcc goes well. My problem was about the library in the cmd line. 'bye. ;) "LAVIGNE,ERIC" <la...@uf...> wrote:gcc is the gnu compiler collection. You can call gcc for a variety of languages and it will choose the most appropriate compiler (out of its collection) based on the file extension. In this case, gcc would probably refer the job to g++. Eric Lavigne On Thu Sep 23 18:44:59 EDT 2004, Steve Baker wrote: > > Oh - and you're compiling C++ - so shouldn't you be using 'g++' > instead of 'gcc' ? > ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ plib-users mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-users --------------------------------- Scopri Mister Yahoo! - il fantatorneo sul calcio di Yahoo! Sport' |
From: David <boi...@ya...> - 2004-09-23 15:53:08
|
you're right. I've seen in the Makefile and added the -lplibpu to the command line. Now all works. Thank you very much. LAVIGNE,ERIC wrote: > > David, > > As a windows user, I can't be very specific, but here are some ideas. > > 1) The command "$ gcc simple.cxx -lGL -lglut -lGLU -lm" told gcc that > you wanted to use opengl libraries and glut libraries. If your program > requires pu.h, then I think you will need the plibpu library also. > > 2) You said that gcc can't find pu.h. Maybe there is a gcc argument that > would tell it extra places to look for include files. > > 3) simple.cxx is one of the included examples, right? There should be a > makefile in the same directory. The easy way to compile is "$ make > simple". If you want to use the gcc command directly, consider studying > the makefile to learn how others have done it. > > Welcome to plib. > > Eric Lavigne > > > On Thu Sep 23 01:38:48 EDT 2004, David <boi...@ya...> wrote: > >> hi to all! I am new of this list. I have installed plib and compiled >> it. Now I have this situation: >> >> $ ls /usr/include/ | grep -i pli >> plib >> >> $ ls /usr/lib/ | grep -i pli >> libplibfnt.a >> libplibjs.a >> libplibnet.a >> libplibpsl.a >> libplibpu.a >> libplibpuaux.a >> libplibpw.a >> libplibsg.a >> libplibsl.a >> libplibsm.a >> libplibssg.a >> libplibssgaux.a >> libplibul.a >> >> I'm trying to compile some ittle examples but I am not able to do it. >> I use this command: >> >> $ gcc simple.cxx -lGL -lglut -lGLU -lm >> >> but it doesn't find the plib/pu.h . >> >> Anyone could help me? >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 >> Project Admins to receive an Apple iPod Mini FREE for your judgement on >> who ports your project to Linux PPC the best. Sponsored by IBM. >> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php >> _______________________________________________ >> plib-users mailing list >> pli...@li... >> https://lists.sourceforge.net/lists/listinfo/plib-users >> >> > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users > |