Open danoctavian opened 12 years ago
Which file should I modify metioned above? I can't successfully execute the make command.
Great. In my computer(ubuntu 12.04), I leave imaging_ldflags =
empty and modify LIBS = -lm -lSDL_image -lSDL
. Everything is great.
new gcc versions require a different parameter order. The linking flags are misplaced in your generated makefiles.
This will fail gcc
sdl-config --cflags
-Wall -O6 -g -O2sdl-config --libs
-lSDL_image -o pwntcha pwntcha-main.o pwntcha-filter.o pwntcha-font.o pwntcha-image.o pwntcha-easter-eggs.o pwntcha-test.o authimage/libdecoder.a clubic/libdecoder.a java/libdecoder.a linuxfr/libdecoder.a livejournal/libdecoder.a lmt/libdecoder.a paypal/libdecoder.a phpbb/libdecoder.a scode/libdecoder.a slashdot/libdecoder.a ticketmaster/libdecoder.a tickets/libdecoder.a vbulletin/libdecoder.a xanga/libdecoder.aThey should be put at the end like so:
cc
sdl-config --cflags
-Wall -O6 -g -O2 -o pwntcha pwntcha-main.o pwntcha-filter.o pwntcha-font.o pwntcha-image.o pwntcha-easter-eggs.o pwntcha-test.o authimage/libdecoder.a clubic/libdecoder.a java/libdecoder.a linuxfr/libdecoder.a livejournal/libdecoder.a lmt/libdecoder.a paypal/libdecoder.a phpbb/libdecoder.a scode/libdecoder.a slashdot/libdecoder.a ticketmaster/libdecoder.a tickets/libdecoder.a vbulletin/libdecoder.a xanga/libdecoder.asdl-config --libs
-lSDL_image