blackberry/OpenTTD — Issue #3: Invalid recipe for lzma library build
Author: phofman
Created: 2011-12-29 02:08:53+00:00
State: open

Inside ther folder "3rdparty\lzma" one might find the README recipe, how to add liblzma to the OpenTTD project. However I have found following issues with this guide:

1) the mentioned "xz-5.0.3.tar.gz" won't unzip on Windows 7 using WinRar 4.01 nor TotalCommander 8; the "xz-5.0.3.tar.bzip2" looks much better and the "common" and "liblzma" folders are inside

2) the mentioned library won't build due to some C99 constructs used inside the source code and also sue to missing defines. At the end I was forced to manually add that switch to the qcc compiler plus some header search paths. Are you sure the .project for lzma is setup correctly? As then I ended up with some blocking errors preventing build of the final library...

MY WORKAROUND:
Then my workaround was to completely remove the reference to that library from OpenTTD project (by removing the WITH_LZMA define from the compiler switches and lzma from linker library dependencies). Then it builds and runs on the device like a charm (with the "-b 32bpp-optimized -r 1024x600" of course).