LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-31-2006, 02:03 PM   #1
xTheLostx
Member
 
Registered: May 2005
Posts: 39

Rep: Reputation: 15
Exclamation Problem with EyeToy in ARToolkit - JPEG


The problem mentioned below has been solved. I did not have all of the dev libraries necessary.

---

I am trying to install ARToolKit 2.71.1 on Ubuntu Dapper and this is the output of the failed 'make':

Code:
thelost@thelost-desktop:~/Desktop/ARToolKit$ make
(cd lib/SRC;    make -f Makefile)
make[1]: Entering directory `/home/thelost/Desktop/ARToolKit/lib/SRC'
(cd AR;         make -f Makefile)
make[2]: Entering directory `/home/thelost/Desktop/ARToolKit/lib/SRC/AR'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/thelost/Desktop/ARToolKit/lib/SRC/AR'
(cd ARMulti;    make -f Makefile)
make[2]: Entering directory `/home/thelost/Desktop/ARToolKit/lib/SRC/ARMulti'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/thelost/Desktop/ARToolKit/lib/SRC/ARMulti'
(cd Gl;         make -f Makefile)
make[2]: Entering directory `/home/thelost/Desktop/ARToolKit/lib/SRC/Gl'
cc -c -O -I/usr/X11R6/include -DUSE_EYETOY -I../../../include gsub.c
gsub.c:8:23: error: GL/glut.h: No such file or directory
gsub.c:76: error: syntax error before ‘glid’
gsub.c:76: warning: data definition has no type or storage class
gsub.c:91: error: syntax error before ‘maxRectangleTextureSize’
gsub.c:91: warning: data definition has no type or storage class
gsub.c: In function ‘argInit2’:
gsub.c:160: error: ‘GLUT_DOUBLE’ undeclared (first use in this function)
gsub.c:160: error: (Each undeclared identifier is reported only once
gsub.c:160: error: for each function it appears in.)
gsub.c:160: error: ‘GLUT_RGBA’ undeclared (first use in this function)
gsub.c:160: error: ‘GLUT_DEPTH’ undeclared (first use in this function)
gsub.c:160: error: ‘GLUT_STENCIL’ undeclared (first use in this function)
gsub.c:166: error: ‘GLUT_SCREEN_WIDTH’ undeclared (first use in this function)
gsub.c:167: error: ‘GLUT_SCREEN_HEIGHT’ undeclared (first use in this function)
gsub.c:190: error: ‘GL_TEXTURE_2D’ undeclared (first use in this function)
gsub.c:191: error: ‘GL_UNPACK_ALIGNMENT’ undeclared (first use in this function)gsub.c:192: error: ‘GL_TEXTURE_WRAP_S’ undeclared (first use in this function)
gsub.c:192: error: ‘GL_CLAMP’ undeclared (first use in this function)
gsub.c:193: error: ‘GL_TEXTURE_WRAP_T’ undeclared (first use in this function)
gsub.c:194: error: ‘GL_TEXTURE_MAG_FILTER’ undeclared (first use in this function)
gsub.c:194: error: ‘GL_NEAREST’ undeclared (first use in this function)
gsub.c:195: error: ‘GL_TEXTURE_MIN_FILTER’ undeclared (first use in this function)
gsub.c:196: error: ‘GL_TEXTURE_ENV’ undeclared (first use in this function)
gsub.c:196: error: ‘GL_TEXTURE_ENV_MODE’ undeclared (first use in this function)gsub.c:196: error: ‘GL_DECAL’ undeclared (first use in this function)
gsub.c: In function ‘argInitLoop’:
gsub.c:261: error: ‘GL_COLOR_BUFFER_BIT’ undeclared (first use in this function)gsub.c: In function ‘argDrawMode2D’:
gsub.c:280: error: ‘GL_MODELVIEW’ undeclared (first use in this function)
gsub.c:282: error: ‘GL_PROJECTION’ undeclared (first use in this function)
gsub.c: In function ‘argDrawMode3D’:
gsub.c:306: error: ‘GL_MODELVIEW’ undeclared (first use in this function)
gsub.c: In function ‘argDraw3dLeft’:
gsub.c:316: error: ‘GL_PROJECTION’ undeclared (first use in this function)
gsub.c: In function ‘argDraw3dRight’:
gsub.c:326: error: ‘GL_PROJECTION’ undeclared (first use in this function)
gsub.c: In function ‘argDraw3dCamera’:
gsub.c:344: error: ‘GL_PROJECTION’ undeclared (first use in this function)
gsub.c: In function ‘argDispImage’:
gsub.c:377: error: ‘GL_SCISSOR_TEST’ undeclared (first use in this function)
gsub.c: In function ‘argDispImageDrawPixels’:
gsub.c:400: error: ‘GLfloat’ undeclared (first use in this function)
gsub.c:400: error: syntax error before ‘zoom’
gsub.c:403: error: ‘zoom’ undeclared (first use in this function)
gsub.c:417: error: ‘GL_TEXTURE_2D’ undeclared (first use in this function)
gsub.c:436: error: ‘GL_RGB_EXT’ undeclared (first use in this function)
gsub.c:436: error: ‘GL_UNSIGNED_BYTE’ undeclared (first use in this function)
gsub.c: In function ‘argDispImageTex4’:
gsub.c:686: error: ‘GL_TEXTURE_2D’ undeclared (first use in this function)
gsub.c:687: error: ‘GL_TEXTURE’ undeclared (first use in this function)
gsub.c:689: error: ‘GL_MODELVIEW’ undeclared (first use in this function)
gsub.c:696: error: ‘GL_UNPACK_ROW_LENGTH’ undeclared (first use in this function)
gsub.c:714: error: ‘GL_RGB_EXT’ undeclared (first use in this function)
gsub.c:714: error: ‘GL_UNSIGNED_BYTE’ undeclared (first use in this function)
gsub.c:768: error: ‘GL_COMPILE_AND_EXECUTE’ undeclared (first use in this function)
gsub.c:823: error: ‘GL_QUADS’ undeclared (first use in this function)
gsub.c: In function ‘argDispImageTex3’:
gsub.c:899: error: ‘GL_TEXTURE_2D’ undeclared (first use in this function)
gsub.c:900: error: ‘GL_TEXTURE’ undeclared (first use in this function)
gsub.c:902: error: ‘GL_MODELVIEW’ undeclared (first use in this function)
gsub.c:909: error: ‘GL_UNPACK_ROW_LENGTH’ undeclared (first use in this function)
gsub.c:927: error: ‘GL_RGB_EXT’ undeclared (first use in this function)
gsub.c:927: error: ‘GL_UNSIGNED_BYTE’ undeclared (first use in this function)
gsub.c:980: error: ‘GL_COMPILE_AND_EXECUTE’ undeclared (first use in this function)
gsub.c:1044: error: ‘GL_QUADS’ undeclared (first use in this function)
gsub.c: In function ‘argDispHalfImage’:
gsub.c:1231: error: ‘GL_SCISSOR_TEST’ undeclared (first use in this function)
gsub.c: In function ‘argDispHalfImageDrawPixels’:
gsub.c:1241: error: ‘GLfloat’ undeclared (first use in this function)
gsub.c:1241: error: syntax error before ‘zoom’
gsub.c:1244: error: ‘zoom’ undeclared (first use in this function)
gsub.c:1276: error: ‘GL_RGB_EXT’ undeclared (first use in this function)
gsub.c:1276: error: ‘GL_UNSIGNED_BYTE’ undeclared (first use in this function)
gsub.c: In function ‘argDispHalfImageTex’:
gsub.c:1339: error: ‘GL_TEXTURE_2D’ undeclared (first use in this function)
gsub.c:1340: error: ‘GL_TEXTURE’ undeclared (first use in this function)
gsub.c:1342: error: ‘GL_MODELVIEW’ undeclared (first use in this function)
gsub.c:1349: error: ‘GL_UNPACK_ROW_LENGTH’ undeclared (first use in this function)
gsub.c:1367: error: ‘GL_RGB_EXT’ undeclared (first use in this function)
gsub.c:1367: error: ‘GL_UNSIGNED_BYTE’ undeclared (first use in this function)
gsub.c:1420: error: ‘GL_COMPILE_AND_EXECUTE’ undeclared (first use in this function)
gsub.c:1475: error: ‘GL_QUADS’ undeclared (first use in this function)
gsub.c: In function ‘argLineSeg’:
gsub.c:1529: error: ‘GL_LINES’ undeclared (first use in this function)
gsub.c: In function ‘argLineSegHMD’:
gsub.c:1552: error: ‘GL_LINES’ undeclared (first use in this function)
gsub.c: In function ‘argInitStencil’:
gsub.c:1564: error: ‘GL_STENCIL_TEST’ undeclared (first use in this function)
gsub.c:1566: error: ‘GL_STENCIL_BUFFER_BIT’ undeclared (first use in this function)
gsub.c:1572: error: ‘GL_ALWAYS’ undeclared (first use in this function)
gsub.c:1573: error: ‘GL_REPLACE’ undeclared (first use in this function)
gsub.c:1574: error: ‘GL_LINES’ undeclared (first use in this function)
gsub.c:1610: error: ‘GL_KEEP’ undeclared (first use in this function)
gsub.c: In function ‘argSetStencil’:
gsub.c:1626: error: ‘GL_STENCIL_TEST’ undeclared (first use in this function)
gsub.c:1627: error: ‘GL_ALWAYS’ undeclared (first use in this function)
gsub.c:1628: error: ‘GL_KEEP’ undeclared (first use in this function)
gsub.c:1632: error: ‘GL_EQUAL’ undeclared (first use in this function)
make[2]: *** [../../libARgsub.a(gsub.o)] Error 1
make[2]: Leaving directory `/home/thelost/Desktop/ARToolKit/lib/SRC/Gl'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/thelost/Desktop/ARToolKit/lib/SRC'
make: *** [all] Error 2
I have tried installing and reinstalling freeglut3 and some others. If anybody can help me, I'm very appreciative.

Last edited by xTheLostx; 08-10-2006 at 12:58 PM. Reason: title
 
Old 08-02-2006, 11:37 PM   #2
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
When you're installing versions of GLut, are you installing it in /usr or the default /usr/local? If the default, have you checked that /usr/local/lib is present in /etc/ld.so.conf and that you've run ldconfig?
 
Old 08-10-2006, 12:57 PM   #3
xTheLostx
Member
 
Registered: May 2005
Posts: 39

Original Poster
Rep: Reputation: 15
Thank you for your reply ciotog. The problem I was having was because I did not have all of the necessary dev libraries installed.

Now that problem is gone, another has arose. When I try to test the camera, ARToolkit outputs 'Not a JPEG file: starts with 0x00 0xc0' as in this example:
Code:
thelost@thelost-desktop:~/Desktop/ARToolKit/bin$ ./simpleTest
Image size (x,y) = (640,480)
*** Camera Parameter ***
--------------------------------------
SIZE = 640, 480
Distortion factor = 318.500000 263.500000 26.200000 1.012757
700.95147 0.00000 316.50000 0.00000
0.00000 726.09418 241.50000 0.00000
0.00000 0.00000 1.00000 0.00000
--------------------------------------
Not a JPEG file: starts with 0x00 0xc0
If anybody can help me out I would greatly appreciate it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors when installing FC 4 minox1337 Fedora 8 07-27-2005 03:03 AM
Installing GD errors mandrakewanta Mandriva 1 05-22-2005 12:38 AM
installing glut help needed jacksmash Linux - Software 1 10-17-2004 09:47 PM
help installing glut paulr1984 Linux - Software 8 03-17-2004 08:42 AM
installing glut paulr1984 Linux - Software 1 03-08-2004 01:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration