error emulation mode using cuda i have an error emulation mode using cuda on Fedora 10

good afternoon … I’m new to the forum and I’m working with CUDA…my problem is this:
I am using CUDA in emulation mode…and you install the Toolkit and SDK, the driver still does not because i dont’t have the nVidia GPU…and when run make emu=1 from the command line I get the following error:

[antonio@pc-antonio C]$ make emu=1
make[1]: Entering directory /home/antonio/NVIDIA_GPU_Computing_SDK/C/common' make[1]: Leaving directory /home/antonio/NVIDIA_GPU_Computing_SDK/C/common’
make[1]: Entering directory /home/antonio/NVIDIA_GPU_Computing_SDK/C/common' In file included from ./../common/inc/paramgl.h:24, from src/paramgl.cpp:19: ./../common/inc/GL/glut.h:59:19: error: GL/gl.h: No such file or directory ./../common/inc/GL/glut.h:60:20: error: GL/glu.h: No such file or directory In file included from ./../common/inc/paramgl.h:24, from src/paramgl.cpp:19: ./../common/inc/GL/glut.h:433: warning: ‘glutUseLayer’ initialized and declared ‘extern’ ./../common/inc/GL/glut.h:433: error: variable or field ‘glutUseLayer’ declared void ./../common/inc/GL/glut.h:433: error: ‘GLenum’ was not declared in this scope ./../common/inc/GL/glut.h:491: error: ‘GLfloat’ has not been declared ./../common/inc/GL/glut.h:491: error: ‘GLfloat’ has not been declared ./../common/inc/GL/glut.h:491: error: ‘GLfloat’ has not been declared ./../common/inc/GL/glut.h:492: error: ‘GLfloat’ does not name a type ./../common/inc/GL/glut.h:496: warning: ‘glutGet’ initialized and declared ‘extern’ ./../common/inc/GL/glut.h:496: error: ‘GLenum’ was not declared in this scope ./../common/inc/GL/glut.h:497: warning: ‘glutDeviceGet’ initialized and declared ‘extern’ ./../common/inc/GL/glut.h:497: error: ‘GLenum’ was not declared in this scope ./../common/inc/GL/glut.h:504: warning: ‘glutLayerGet’ initialized and declared ‘extern’ ./../common/inc/GL/glut.h:504: error: ‘GLenum’ was not declared in this scope ./../common/inc/GL/glut.h:518: warning: ‘glutWireSphere’ initialized and declared ‘extern’ ./../common/inc/GL/glut.h:518: error: variable or field ‘glutWireSphere’ declared void ./../common/inc/GL/glut.h:518: error: ‘GLdouble’ was not declared in this scope ./../common/inc/GL/glut.h:518: error: ‘GLint’ was not declared in this scope ./../common/inc/GL/glut.h:518: error: ‘GLint’ was not declared in this scope ./../common/inc/GL/glut.h:519: warning: ‘glutSolidSphere’ initialized and declared ‘extern’ ./../common/inc/GL/glut.h:519: error: variable or field ‘glutSolidSphere’ declared void ./../common/inc/GL/glut.h:519: error: ‘GLdouble’ was not declared in this scope ./../common/inc/GL/glut.h:519: error: ‘GLint’ was not declared in this scope ./../common/inc/GL/glut.h:519: error: ‘GLint’ was not declared in this scope ./../common/inc/GL/glut.h:520: warning: ‘glutWireCone’ initialized and declared ‘extern’ ./../common/inc/GL/glut.h:520: error: variable or field ‘glutWireCone’ declared void ./../common/inc/GL/glut.h:520: error: ‘GLdouble’ was not declared in this scope ./../common/inc/GL/glut.h:520: error: ‘GLdouble’ was not declared in this scope ./../common/inc/GL/glut.h:520: error: ‘GLint’ was not declared in this scope ./../common/inc/GL/glut.h:520: error: ‘GLint’ was not declared in this scope ./../common/inc/GL/glut.h:521: warning: ‘glutSolidCone’ initialized and declared ‘extern’ ./../common/inc/GL/glut.h:521: error: variable or field ‘glutSolidCone’ declared void ./../common/inc/GL/glut.h:521: error: ‘GLdouble’ was not declared in this scope ./../common/inc/GL/glut.h:521: error: ‘GLdouble’ was not declared in this scope ./../common/inc/GL/glut.h:521: error: ‘GLint’ was not declared in this scope ./../common/inc/GL/glut.h:521: error: ‘GLint’ was not declared in this scope ./../common/inc/GL/glut.h:522: warning: ‘glutWireCube’ initialized and declared ‘extern’ ./../common/inc/GL/glut.h:522: error: variable or field ‘glutWireCube’ declared void ./../common/inc/GL/glut.h:522: error: ‘GLdouble’ was not declared in this scope ./../common/inc/GL/glut.h:523: warning: ‘glutSolidCube’ initialized and declared ‘extern’ ./../common/inc/GL/glut.h:523: error: variable or field ‘glutSolidCube’ declared void ./../common/inc/GL/glut.h:523: error: ‘GLdouble’ was not declared in this scope ./../common/inc/GL/glut.h:524: warning: ‘glutWireTorus’ initialized and declared ‘extern’ ./../common/inc/GL/glut.h:524: error: variable or field ‘glutWireTorus’ declared void ./../common/inc/GL/glut.h:524: error: ‘GLdouble’ was not declared in this scope ./../common/inc/GL/glut.h:524: error: ‘GLdouble’ was not declared in this scope ./../common/inc/GL/glut.h:524: error: ‘GLint’ was not declared in this scope ./../common/inc/GL/glut.h:524: error: ‘GLint’ was not declared in this scope ./../common/inc/GL/glut.h:525: warning: ‘glutSolidTorus’ initialized and declared ‘extern’ ./../common/inc/GL/glut.h:525: error: variable or field ‘glutSolidTorus’ declared void ./../common/inc/GL/glut.h:525: error: ‘GLdouble’ was not declared in this scope ./../common/inc/GL/glut.h:525: error: ‘GLdouble’ was not declared in this scope ./../common/inc/GL/glut.h:525: error: ‘GLint’ was not declared in this scope ./../common/inc/GL/glut.h:525: error: ‘GLint’ was not declared in this scope ./../common/inc/GL/glut.h:528: warning: ‘glutWireTeapot’ initialized and declared ‘extern’ ./../common/inc/GL/glut.h:528: error: variable or field ‘glutWireTeapot’ declared void ./../common/inc/GL/glut.h:528: error: ‘GLdouble’ was not declared in this scope ./../common/inc/GL/glut.h:529: warning: ‘glutSolidTeapot’ initialized and declared ‘extern’ ./../common/inc/GL/glut.h:529: error: variable or field ‘glutSolidTeapot’ declared void ./../common/inc/GL/glut.h:529: error: ‘GLdouble’ was not declared in this scope ./../common/inc/GL/glut.h:539: warning: ‘glutVideoResizeGet’ initialized and declared ‘extern’ ./../common/inc/GL/glut.h:539: error: ‘GLenum’ was not declared in this scope ./../common/inc/GL/glut.h:579: warning: ‘glutGameModeGet’ initialized and declared ‘extern’ ./../common/inc/GL/glut.h:579: error: ‘GLenum’ was not declared in this scope src/paramgl.cpp: In function ‘void beginWinCoords()’: src/paramgl.cpp:24: error: ‘GL_MODELVIEW’ was not declared in this scope src/paramgl.cpp:24: error: ‘glMatrixMode’ was not declared in this scope src/paramgl.cpp:25: error: ‘glPushMatrix’ was not declared in this scope src/paramgl.cpp:26: error: ‘glLoadIdentity’ was not declared in this scope src/paramgl.cpp:27: error: ‘glutGet’ cannot be used as a function src/paramgl.cpp:27: error: ‘glTranslatef’ was not declared in this scope src/paramgl.cpp:28: error: ‘glScalef’ was not declared in this scope src/paramgl.cpp:30: error: ‘GL_PROJECTION’ was not declared in this scope src/paramgl.cpp:33: error: ‘glutGet’ cannot be used as a function src/paramgl.cpp:33: error: ‘glutGet’ cannot be used as a function src/paramgl.cpp:33: error: ‘glOrtho’ was not declared in this scope src/paramgl.cpp: In function ‘void endWinCoords()’: src/paramgl.cpp:40: error: ‘GL_PROJECTION’ was not declared in this scope src/paramgl.cpp:40: error: ‘glMatrixMode’ was not declared in this scope src/paramgl.cpp:41: error: ‘glPopMatrix’ was not declared in this scope src/paramgl.cpp:43: error: ‘GL_MODELVIEW’ was not declared in this scope src/paramgl.cpp: In function ‘void glPrint(int, int, const char*, void*)’: src/paramgl.cpp:49: error: ‘glRasterPos2f’ was not declared in this scope src/paramgl.cpp: In function ‘void glPrintShadowed(int, int, const char*, void*, float*)’: src/paramgl.cpp:58: error: ‘glColor3f’ was not declared in this scope src/paramgl.cpp:61: error: ‘GLfloat’ was not declared in this scope src/paramgl.cpp:61: error: expected primary-expression before ‘)’ token src/paramgl.cpp:61: error: ‘glColor3fv’ was not declared in this scope src/paramgl.cpp: At global scope: src/paramgl.cpp:56: warning: unused parameter ‘color’ src/paramgl.cpp: In member function ‘void ParamListGL::Render(int, int, bool)’: src/paramgl.cpp:105: error: ‘glColor3fv’ was not declared in this scope src/paramgl.cpp:107: error: ‘glColor3fv’ was not declared in this scope src/paramgl.cpp:117: error: ‘GLfloat’ was not declared in this scope src/paramgl.cpp:117: error: expected primary-expression before ‘)’ token src/paramgl.cpp:117: error: ‘glColor3fv’ was not declared in this scope src/paramgl.cpp:118: error: ‘GL_LINE_LOOP’ was not declared in this scope src/paramgl.cpp:118: error: ‘glBegin’ was not declared in this scope src/paramgl.cpp:119: error: ‘glVertex2f’ was not declared in this scope src/paramgl.cpp:123: error: ‘glEnd’ was not declared in this scope src/paramgl.cpp:125: error: expected primary-expression before ‘)’ token src/paramgl.cpp:126: error: ‘glRectf’ was not declared in this scope make[1]: *** [obj/release/paramgl.cpp.o] Error 1 make[1]: Leaving directory /home/antonio/NVIDIA_GPU_Computing_SDK/C/common’
make: *** [lib/libparamgl.so] Error 2

please if anyone can help me, will thank you much

Hi Antonio,

I think projects which depending on Open GL can’t be build in EMU-mode. Because, if I remember it correct, Open GL would be installed with the driver.

Just try to build projects which doesn’t denpend on Open GL, you can go in the source directories and take a look to the Makefiles, if there is nothing called ‘GL’ (USEGL = 1, etc.) I think you will be able to build them.
For example the “clock” source projects should be buildable in EMU-mode.

Hope it helps you,

Lucas

Hi Lucas…

thank you for answering…

but I have a question…where is the source directories or which you are referring to…because i have several …

are in the NVIDIA or the CUDA folder???

I mean this one /home/antonio/NVIDIA_GPU_Computing_SDK/C/src/ (I take the path from your post ;) )

many thanks LUCAS… and compile and run some programs and if they work properly … … any further questions ask them in the forum … because the next step is to run programs with the nVidia card… and thank you very much again

ANTONIO

I can install openGL without driver or the card ?.. and I guess so you can compile all projects…

thanks

I’m working on Debian so the GL-pakages have those names:

mesa-common-dev, libgl1-mesa-dev, libglu1-mesa-dev, libxi-dev, libxmu-dev, libglut-dev

Maybe you will find them and got them installed on your distribution.

Good luck

Lucas

I have Fedora 10 installed, Where can I find these packages and with that name

Thanks

I think you have to install them with “yum”, the packages should be founded by this keywords: glut ; libmesaglut ; mesa-libgl ; libxmu ; libglut ; libxi ; mesa

For next time, if you search some packages for Fedora, try this site: http://www.rpmfind.net/

Lucas