Results 1 to 3 of 3

Thread: Problem building "OpenGL + SDL" game

  1. #1

    Default Problem building "OpenGL + SDL" game

    Hi all,

    I'm trying to build a Goonies remake (old MSX game) in BuildService. In local i can compile without problems but when I try to compile in OBS I got this error:

    Code:
    gcc -g3 -O3 -Wno-write-strings `sdl-config --cflags` -I/usr/X11R6/include `sdl-config --libs` -L/usr/X11R6/lib/ -lSDL_image -lSDL_mixer -lGL -lGLU src/2DCMC.o src/auxiliar.o src/debug.o src/font_extractor.o src/geometrics.o src/GinterfaceBrowser.o src/GinterfaceButton.o src/GinterfaceConfirmation.o src/Ginterface.o src/GinterfaceMessage.o src/GinterfaceSButton.o src/GinterfaceText.o src/GinterfaceTextInput.o src/GLTile.o src/GLTManager.o src/GMap.o src/GMapLayer.o src/GO_bat.o src/GO_bigrock.o src/GObject.o src/GObjectCreator.o src/GO_bone.o src/GO_bridge.o src/GO_bullet.o src/GO_cagedoor.o src/GO_character.o src/GO_closingwall.o src/GO_coin.o src/GO_drop.o src/GO_dropgenerator.o src/GO_enemy.o src/GO_entrydoor.o src/GO_exitdoor.o src/GO_fallingrock.o src/GO_fallingwater.o src/GO_flame.o src/GO_fratelli.o src/GO_ghost.o src/GO_item.o src/GO_jumpingskull.o src/GO_key.o src/GO_lava.o src/GO_musicalnote.o src/GooniesScript.o src/GO_pipe_water.o src/GO_rope.o src/GO_skeleton.o src/GO_skull.o src/GO_skulldoor.o src/GO_trickyskull.o src/GO_water.o src/GO_wateropening.o src/GO_watersplash.o src/keyboardstate.o src/Level.o src/LevelPack.o src/main.o src/MusicManager.o src/PlacedGLTile.o src/ranrotb.o src/SDL_glutaux.o src/SFXManager.o src/sound.o src/SoundManager.o src/state_credits.o src/state_editor.o src/state_endsequence.o src/state_game.o src/state_gameover.o src/state_gamestart.o src/state_howtoplay.o src/state_interlevel.o src/state_konami.o src/state_mapeditor.o src/state_msx.o src/state_splash.o src/state_titleanimation.o src/state_title.o src/Symbol.o src/TheGooniesApp.o src/TheGoonies.o src/Vector.o -o goonies
    src/2DCMC.o: In function `C2DCMC::draw(float, float, float, float)':
    /usr/src/packages/BUILD/goonies-1.4.1528/src/2DCMC.cpp:56: undefined reference to `glColor4f'
    /usr/src/packages/BUILD/goonies-1.4.1528/src/2DCMC.cpp:59: undefined reference to `glBegin'
    /usr/src/packages/BUILD/goonies-1.4.1528/src/2DCMC.cpp:60: undefined reference to `glVertex3f'
    /usr/src/packages/BUILD/goonies-1.4.1528/src/2DCMC.cpp:61: undefined reference to `glVertex3f'
    /usr/src/packages/BUILD/goonies-1.4.1528/src/2DCMC.cpp:63: undefined reference to `glVertex3f'
    And more "undefined reference" errors. Any ideas about what's wrong ?

    Thanks !

  2. #2
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    32,907
    Blog Entries
    15

    Default Re: Problem building "OpenGL + SDL" game

    Hi
    That might be in the library linking order locally as opposed to OBS, add this as the first item in %build;
    Code:
    export SUSE_ASNEEDED=0
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Default Re: Problem building "OpenGL + SDL" game

    Your workaround work well, the program can compile now.

    Thanks for your help !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •