Closed jeremysolarz closed 10 years ago
I have the same problem as you.
I don't have a Ubuntu box at hand and cannot test. Looks like the new GCC in your system deprecated implicit declaration of sqrt
etc. functions. Try to include the math header <math.h>
in the reported files (decoder.c etc.) and recompile. Please fork and send a pull request.
To solve that problem you should try the following steps:
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.a sdl-config --libs
-lSDL_image The command is mostly the same, except for the compiler (used g++) and the compiler flags are at the end. After that, you will have your executable :D ( Tested on a ubuntu 12.04, 64bit).
getting configure.ac:5: option tar-ustar' not recognized
on fedora when ./bootstrap
maybe there is a space missing. try changing the line to tar -ustar
@samsemilia7 maybe tar-ustar option isn't in automakev1.7 and below.
@samsemilia7 I am getting
/usr/bin/ld: cannot find -lSDL_image
collect2: ld returned 1 exit status
That means you need to have SDL_image library installed.
On Mon, Oct 28, 2013 at 8:23 AM, djyale notifications@github.com wrote:
@samsemilia7 https://github.com/samsemilia7 I am getting
/usr/bin/ld: cannot find -lSDL_image collect2: ld returned 1 exit status
— Reply to this email directly or view it on GitHubhttps://github.com/iveney/pwntcha/issues/8#issuecomment-27210540 .
Regards, Zigang Xiao, Department of Electrical and Computer and Engineering, University of Illinois at Urbana-Champaign http://ews.illinois.edu/~zxiao2
Managed to build pwntcha in cygwin!
So I have done exactly what samsemilia7 told to do, but in my case I use imlib2 so I run
g++ imlib2-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.a imlib2-config --libs
-lImlib2
and I got the error
$ g++ imlib2-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.a imlib2-config --libs
-lImlib2
/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lfreetype
/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lz
/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lbz2
/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lXext
collect2: error: ld returned 1 exit status
after installing the missing libraries and running the command again, pwntcha.exe was successfully created.
@jeremysolarz I have the same problem as you, now. OS: ubuntu12.04. I think cywin is not proper for development, but i can't transfer it to Linux
With your help I was able to build it on 14.04 as well, thanks!
I build pwntcha like os
Get the following error after make
output of configure is
so the dependencies seem fine.
Any hint what could be the reason for this?