Cross compilation of ja2 on Ubuntu 14.04
Issue #147
resolved
I wanted to help debugging issue #146 and tried cross compiling ja2 on Ubuntu 14.04 using the compilation instructions. I ran into a couple of difficulties which resulted in the following pull requests
- Pull Request #12, SDL has to be installed
- Pull Request #13, mingw does not like the UTF-8 BOM. Remove it since it's unneccessary
- Pull Request #14,
__min
and__max
are MSVC dependend therefore I changed all invocations toMIN
/`MAX - Pull Request #15, made definition of
MIN
/MAX
platform idependend
Now everything compiles fine but the linker tells me
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bin/ld: cannot find -lpthread
I don't know which package is neccessary to fix this :(
Comments (3)
-
repo owner -
repo owner - changed status to resolved
-
reporter Thank's for the fast reaction, it seams that I was a bit over ambitoned with my pull requests.
Could we create some integration tests, perhaps using Travis CI, in order to catch such issues? Looking at the issue historie there are quite a lot requests having the same problem :)
- Log in to comment
Instructions are not corrent. It should be:
For Ubuntu 14.04 x64 instructions are the same as for 12.04 x64. I haven't checked 32bit system, but probably the same as for 12.04 also.
Thank you for discovering this issue and trying to fix it.