SDL 1.2+OpenGL(R) - Ubuntu 11.10 - App Won't Build???

Jonathan Hudson jh+ubuntu at daria.co.uk
Fri Oct 28 19:07:36 UTC 2011


On Fri, 28 Oct 2011 14:51:12 -0400, Jesse Palser wrote:

>*SDL 1.2+OpenGL(R) - Ubuntu 11.10 - App Won't Build???*
>
>Hi,
>
>Trying to build a demo of a game my team is working on now.
>Game is: "_TetriCrisis 4 100% A.I._".
>
>
>$(TARGET): $(OBJECTS)
>     $(CC) $(SDL_LIBS) $(OPENGL_LIBS) $(SDL_TTF_LIBS) $(SDL_IMAGE_LIBS) 
>$(SDL_MIXER_LIBS) $(OBJECTS) -o $@

Move the source objects and output before the libs, then it will build.
(excuse the terminal wrap).


$(TARGET): $(OBJECTS)
        $(CC) $(OBJECTS) -o $@ $(SDL_LIBS) $(OPENGL_LIBS)
        $(SDL_TTF_LIBS) $(SDL_IMAGE_LIBS) $(SDL_MIXER_LIBS) 


-jh






More information about the ubuntu-users mailing list