Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
90 user(s) are online (61 user(s) are browsing Forums)

Members: 4
Guests: 86

Templario, cygnusEd, rwo, skynet, more...

Headlines

 
  Register To Post  

Hans GL samples under OS 4.1 SDK 53.xx
Quite a regular
Quite a regular


See User information
Hi,

Does someone know how I can compile the HANS samples ?
I've installed the miniGL, copied includes with the ones of the SDK and I always get 39 errors concerning "undefined reference" ...

Thank you.

All we have to decide is what to do with the time that is given to us.
Go to top
Re: Hans GL samples under OS 4.1 SDK 53.xx
Not too shy to talk
Not too shy to talk


See User information
@freddix

undefined reference to...what?

Go to top
Re: Hans GL samples under OS 4.1 SDK 53.xx
Quite a regular
Quite a regular


See User information
@ZeroG
I created a new project under CodeBENCH, using GL_FullScreen.c sample.

Here is the compilation errors :
SDK:gcc/bin/gcc -c GLUT-fullscreen.c -o GLUT-fullscreen.o -lauto -lraauto
gcc: -lauto: linker input file unused because linking not done
gcc: -lraauto: linker input file unused because linking not done
SDK:gcc/bin/gcc GLUT-fullscreen.o -o GLUT-fullscreen.exe -lauto -lraauto
GLUT-fullscreen.o: In function `main':
GLUT-fullscreen.c:(.text+0x4c): undefined reference to `glutGameModeString'
GLUT-fullscreen.c:(.text+0x50): undefined reference to `glutEnterGameMode'
GLUT-fullscreen.c:(.text+0x9c): undefined reference to `glutTimerFunc'
GLUT-fullscreen.o: In function `glutInit':
GLUT-fullscreen.c:(.text+0xe2): undefined reference to `__glut_current_context'
GLUT-fullscreen.c:(.text+0xe6): undefined reference to `__glut_current_context'
GLUT-fullscreen.c:(.text+0xf2): undefined reference to `__glut_current_context'
GLUT-fullscreen.c:(.text+0xf6): undefined reference to `__glut_current_context'
GLUT-fullscreen.o: In function `glutInitDisplayMode':
GLUT-fullscreen.c:(.text+0x13a): undefined reference to `__glut_current_context'
GLUT-fullscreen.o:GLUT-fullscreen.c:(.text+0x13e): more undefined references to `__glut_current_context' follow
GLUT-fullscreen.o: In function `glClearColor':
GLUT-fullscreen.c:(.text+0x3fe): undefined reference to `mini_CurrentContext'
GLUT-fullscreen.c:(.text+0x402): undefined reference to `mini_CurrentContext'
GLUT-fullscreen.c:(.text+0x40e): undefined reference to `mini_CurrentContext'
GLUT-fullscreen.c:(.text+0x412): undefined reference to `mini_CurrentContext'
GLUT-fullscreen.o: In function `glEnable':
GLUT-fullscreen.c:(.text+0x45e): undefined reference to `mini_CurrentContext'
GLUT-fullscreen.o:GLUT-fullscreen.c:(.text+0x462): more undefined references to `mini_CurrentContext' follow
GLUT-fullscreen.o: In function `gluPerspective':
GLUT-fullscreen.c:(.text+0x670): undefined reference to `GLUPerspective'
GLUT-fullscreen.o: In function `glMatrixMode':
GLUT-fullscreen.c:(.text+0x6a6): undefined reference to `mini_CurrentContext'
GLUT-fullscreen.c:(.text+0x6aa): undefined reference to `mini_CurrentContext'
GLUT-fullscreen.c:(.text+0x6b6): undefined reference to `mini_CurrentContext'
GLUT-fullscreen.c:(.text+0x6ba): undefined reference to `mini_CurrentContext'
GLUT-fullscreen.o: In function `glLoadIdentity':
GLUT-fullscreen.c:(.text+0x6f6): undefined reference to `mini_CurrentContext'
GLUT-fullscreen.o:GLUT-fullscreen.c:(.text+0x6fa): more undefined references to `mini_CurrentContext' follow
GLUT-fullscreen.o: In function `animate':
GLUT-fullscreen.c:(.text+0x758): undefined reference to `glutTimerFunc'
GLUT-fullscreen.o: In function `glTranslatef':
GLUT-fullscreen.c:(.text+0x916): undefined reference to `mini_CurrentContext'
GLUT-fullscreen.c:(.text+0x91a): undefined reference to `mini_CurrentContext'
GLUT-fullscreen.c:(.text+0x926): undefined reference to `mini_CurrentContext'
GLUT-fullscreen.c:(.text+0x92a): undefined reference to `mini_CurrentContext'
GLUT-fullscreen.o: In function `glRotatef':
GLUT-fullscreen.c:(.text+0x97e): undefined reference to `mini_CurrentContext'
GLUT-fullscreen.o:GLUT-fullscreen.c:(.text+0x982): more undefined references to `mini_CurrentContext' follow
GLUT-fullscreen.o: In function `glutSwapBuffers':
GLUT-fullscreen.c:(.text+0xb5a): undefined reference to `__glut_current_context'
GLUT-fullscreen.c:(.text+0xb5e): undefined reference to `__glut_current_context'
GLUT-fullscreen.c:(.text+0xb6a): undefined reference to `__glut_current_context'
GLUT-fullscreen.c:(.text+0xb6e): undefined reference to `__glut_current_context'
GLUT-fullscreen.o: In function `glFlush':
GLUT-fullscreen.c:(.text+0xba6): undefined reference to `mini_CurrentContext'
GLUT-fullscreen.c:(.text+0xbaa): undefined reference to `mini_CurrentContext'
GLUT-fullscreen.c:(.text+0xbb6): undefined reference to `mini_CurrentContext'
GLUT-fullscreen.c:(.text+0xbba): undefined reference to `mini_CurrentContext'
GLUT-fullscreen.o: In function `key':
GLUT-fullscreen.c:(.text+0xc14): undefined reference to `glutLeaveGameMode'
make: *** [GLUT-fullscreen.exe] Error 1

All we have to decide is what to do with the time that is given to us.
Go to top
Re: Hans GL samples under OS 4.1 SDK 53.xx
Home away from home
Home away from home


See User information
@freddix

Use the make file instead of compiling manually, i.e., change to the directory containing the source files, and type:
make
and press enter.

If you really want to do it manually, then type:

gcc -c GLUT-fullscreen.c -o GLUT-fullscreen.o -lGL -lGLUT

Using the make file is much easier. There are compiling instructions on the basic GLUT template page.

BTW, GLUT full-screen needs the MiniGL header/lib files in order to compile. Those aren't actually available at the moment since they haven't been officially released, and the source repository is down at the moment.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top
Re: Hans GL samples under OS 4.1 SDK 53.xx
Quite a regular
Quite a regular


See User information
@Hans
CodeBENCH create the MAKEFILE and compiles
I tried both CodeBENCH and shell with MAKE ALL
And I give the same result.

All we have to decide is what to do with the time that is given to us.
Go to top
Re: Hans GL samples under OS 4.1 SDK 53.xx
Just can't stay away
Just can't stay away


See User information
@freddix

thats prolly because codebench has overwritten the makefile, and you didn't tell it to link in the GL libraries.
download the examples again and build it manually in shell.
once you have understood the process of building and linking you can try to do the same in codebench.

Go to top
Re: Hans GL samples under OS 4.1 SDK 53.xx
Home away from home
Home away from home


See User information
@freddix

Quote:

freddix wrote:
@Hans
CodeBENCH create the MAKEFILE and compiles
I tried both CodeBENCH and shell with MAKE ALL
And I give the same result.


When you create the project in code-bench, tell it to NOT create the makefile. When it asks to rebuild the build script, click ignore. You have to use the makefile that I provided.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top
Re: Hans GL samples under OS 4.1 SDK 53.xx
Quite a regular
Quite a regular


See User information
@Hans
Thank you for these informations.

When I use your own MAKEFILE, I get less errors but errors occured.
I tried both SHELL command MAKE and under CodeBENCH (same results)

With GLUT-FullScreen sample :
gcc -mcrt=newlib -O3 -Wall -gstabs -DMINIGL -o GLUT-fullscreen.debug GLUT-fullscreen.o -lGL -lGLUT
GLUT-fullscreen.o: In function `key':
GLUT-fullscreen.c:152: undefined reference to `glutLeaveGameMode'
GLUT-fullscreen.o: In function `animate':
GLUT-fullscreen.c:102: undefined reference to `glutTimerFunc'
GLUT-fullscreen.o: In function `reshape':
/SDK/local/newlib/include/mgl/minigl.h:1323: undefined reference to `GLUPerspective'
GLUT-fullscreen.o: In function `main':
GLUT-fullscreen.c:49: undefined reference to `glutGameModeString'
GLUT-fullscreen.c:50: undefined reference to `glutEnterGameMode'
GLUT-fullscreen.c:61: undefined reference to `glutTimerFunc'
make: *** [GLUT-fullscreen] Error 1

I modified nothing.

All we have to decide is what to do with the time that is given to us.
Go to top
Re: Hans GL samples under OS 4.1 SDK 53.xx
Home away from home
Home away from home


See User information
@freddix

Quote:

freddix wrote:
@Hans
Thank you for these informations.

When I use your own MAKEFILE, I get less errors but errors occured.
I tried both SHELL command MAKE and under CodeBENCH (same results)

With GLUT-FullScreen sample :
gcc -mcrt=newlib -O3 -Wall -gstabs -DMINIGL -o GLUT-fullscreen.debug GLUT-fullscreen.o -lGL -lGLUT
GLUT-fullscreen.o: In function `key':
GLUT-fullscreen.c:152: undefined reference to `glutLeaveGameMode'
GLUT-fullscreen.o: In function `animate':
GLUT-fullscreen.c:102: undefined reference to `glutTimerFunc'
GLUT-fullscreen.o: In function `reshape':
/SDK/local/newlib/include/mgl/minigl.h:1323: undefined reference to `GLUPerspective'
GLUT-fullscreen.o: In function `main':
GLUT-fullscreen.c:49: undefined reference to `glutGameModeString'
GLUT-fullscreen.c:50: undefined reference to `glutEnterGameMode'
GLUT-fullscreen.c:61: undefined reference to `glutTimerFunc'
make: *** [GLUT-fullscreen] Error 1

I modified nothing.


That's because the GLUT-fullscreen-template requires the MiniGL 2.0 header files which aren't released yet. I had hoped to get those released by now, but other things got in the way. Try the basic GLUT template. The other two templates will have to wait until the MiniGL source repository is back up.

Hans

http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
Go to top
Re: Hans GL samples under OS 4.1 SDK 53.xx
Just can't stay away
Just can't stay away


See User information
@freddix

All those are functions that weren't implemented in MiniGL 1.5. What you need is the latest MiniGL headers from the SVN. Unfortunately the MiniGL site is down so you can't get them ATM.

http://hyperion-entertainment.biz/projects/minigl

Go to top
Re: Hans GL samples under OS 4.1 SDK 53.xx
Quite a regular
Quite a regular


See User information
Ok.

I will wait then for the update and test the basic one ...

Kindest Regards
Freddix

All we have to decide is what to do with the time that is given to us.
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project