SGI: Development

Little help with header files needed

Sorry for my ignorance, i had some spare time and wanted to play a bit with glut, but i have some troubles getting things right. I got neko_glut3.7 and seems it installed ok. I also have mipspro c++ 7.4 installed fine. I copyed the source for the hello program to some dir of my choice and symbolic linked the needed GL dir, but seems is not enough. Im not an supacompile guru, so i'm wondering how to set the header paths and environment. I know that specifiying headers in quotes means that the header is residing in the same dir as the source, but when the header is inside < and > symbols it means that the compiler/linker will look for it in system wide predefined libraries ? paths. Eg: #include "mysource.h" and #include <GL/GLwMDrawA.h> ....
Image
-----------------
Image Image Image
cybercow wrote: Sorry for my ignorance, i had some spare time and wanted to play a bit with glut, but i have some troubles getting things right. I got neko_glut3.7 and seems it installed ok. I also have mipspro c++ 7.4 installed fine. I copyed the source for the hello program to some dir of my choice and symbolic linked the needed GL dir, but seems is not enough. Im not an supacompile guru, so i'm wondering how to set the header paths and environment. I know that specifiying headers in quotes means that the header is residing in the same dir as the source, but when the header is inside < and > symbols it means that the compiler/linker will look for it in system wide predefined libraries ? paths. Eg: #include "mysource.h" and #include <GL/GLwMDrawA.h> ....


Add

Code: Select all

-I /usr/nekoware/include

to the CFLAGS in the makefile.

From memory glut installs to /usr/nekoware/GL/glut/ .. Otherwise do a find /usr/nekoware -name "glut.h" and adjust the -I path.

You will need to add a -L/usr/nekoware/lib to the linker flags as well.

R.
死の神はりんごだけ食べる

開いた括弧は必ず閉じる -- あるプログラマー

:Tezro: :Tezro: :Onyx2R: :Onyx2RE: :Onyx2: :O3x04R: :O3x0: :O200: :Octane: :Octane2: :O2: :O2: :Indigo2IMP: :PI: :PI: :1600SW: :1600SW: :Indy: :Indy: :Indy: :Indy: :Indy:
:hpserv: J5600, 2 x Mac, 3 x SUN, Alpha DS20E, Alpha 800 5/550, 3 x RS/6000, Amiga 4000 VideoToaster, Amiga4000 -030, 733MHz Sam440 AmigaOS 4.1 update 1.

Sold: :Indy: :Indy: :Indy: :Indigo: Tandem Himalaya S-Series Nonstop S72000 ServerNet.

Twitter @PymbleSoftware
Current Apps (iOS) -> https://itunes.apple.com/au/artist/pymb ... d553990081
(Android) https://play.google.com/store/apps/deve ... +Ltd&hl=en
(Onyx2) Cortex ---> http://www.facebook.com/pages/Cortex-th ... 11?sk=info
(0300s) Minnie ---> http://www.facebook.com/pages/Minnie-th ... 02?sk=info
Github ---> https://github.com/pymblesoftware