godrin / antargis Goto Github PK
View Code? Open in Web Editor NEWBattles of Antargis
License: GNU General Public License v2.0
Battles of Antargis
License: GNU General Public License v2.0
Great to see you still working on this. :)
Sorry for the redundant issue. Just wanted to give you a virtual high five. When I saw that Berlios was gone, I assumed this was too.
Looks like I'm missing a boost dependency. I can't actually see libboost 1.53 in Mint 17. Perhaps this kind of thing should be statically compiled i.e. bundled with/inside Antargis?
$ antargis
antargis: error while loading shared libraries: libboost_signals.so.1.53.0: cannot open shared object file: No such file or directory
Loaded Antargis, tried the tutorial. I see 2 leaders with their men sat around campfires. There is no instruction on what to do.
I get the following issues when trying to compile antargis against libpng 1.6 (which is the default version here on Mageia):
[akien@cauldron Release]$ LC_ALL=C make
[ 1%] Building CXX object CMakeFiles/antlib.dir/lib/ag_png.cc.o
/home/akien/Mageia/Sandbox/antargis/antargis-master/lib/ag_png.cc: In function 'void png_io_flush(png_structp)':
/home/akien/Mageia/Sandbox/antargis/antargis-master/lib/ag_png.cc:52:16: warning: variable 'src' set but not used [-Wunused-but-set-variable]
SDL_RWops *src;
^
/home/akien/Mageia/Sandbox/antargis/antargis-master/lib/ag_png.cc: In function 'int IMG_SavePNG_RW(SDL_Surface*, SDL_RWops*)':
/home/akien/Mageia/Sandbox/antargis/antargis-master/lib/ag_png.cc:188:17: error: invalid use of incomplete type 'png_info {aka struct png_info_def}'
if (info_ptr->palette)
^
In file included from /home/akien/Mageia/Sandbox/antargis/antargis-master/lib/ag_png.cc:30:0:
/usr/include/png.h:595:16: error: forward declaration of 'png_info {aka struct png_info_def}'
typedef struct png_info_def png_info;
^
/home/akien/Mageia/Sandbox/antargis/antargis-master/lib/ag_png.cc:189:35: error: invalid use of incomplete type 'png_info {aka struct png_info_def}'
checkedDeleteArray( info_ptr->palette);
^
In file included from /home/akien/Mageia/Sandbox/antargis/antargis-master/lib/ag_png.cc:30:0:
/usr/include/png.h:595:16: error: forward declaration of 'png_info {aka struct png_info_def}'
typedef struct png_info_def png_info;
^
CMakeFiles/antlib.dir/build.make:517: recipe for target 'CMakeFiles/antlib.dir/lib/ag_png.cc.o' failed
make[2]: *** [CMakeFiles/antlib.dir/lib/ag_png.cc.o] Error 1
CMakeFiles/Makefile2:98: recipe for target 'CMakeFiles/antlib.dir/all' failed
make[1]: *** [CMakeFiles/antlib.dir/all] Error 2
Makefile:146: recipe for target 'all' failed
make: *** [all] Error 2
My guess would be that it would work if I were to compile using libpng 1.2, but even though it's available in my repositories, since SDL_image requires libpng 1.6, the build system seems to try to use the latter no matter what.
I could have a go at patching the buildsystem so that it uses libpng12, but maybe it would be better to port antargis to libpng16 which is pretty standard nowadays?
I'm not a developer myself, but for some context about what would need to change to port to newer versions of libpng, you can see for example what Stratagus had to change: http://bazaar.launchpad.net/~stratagus/stratagus/trunk/revision/7993#src/video/png.cpp
Invocation:
cmake -DCMAKE_INSTALL_PREFIX=/usr .
Output:
-- The C compiler identification is GNU 5.2.0
-- The CXX compiler identification is GNU 5.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found SDL: /usr/lib/libSDLmain.a;/usr/lib/libSDL.so;-lpthread (found version "1.2.15")
-- Found SDL_image: /usr/lib/libSDL_image.so (found version "1.2.12")
-- Found SDL_ttf: /usr/lib/libSDL_ttf.so (found version "2.0.11")
-- Found SDL_mixer: /usr/lib/libSDL_mixer.so (found version "1.2.12")
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.8")
-- Found OpenGL: /usr/lib/libGL.so
-- Found PNG: /usr/lib/libpng.so (found version "1.6.18")
CMake Error at /usr/share/cmake-3.3/Modules/FindBoost.cmake:1245 (message):
Unable to find the requested Boost libraries.
Boost version: 1.58.0
Boost include path: /usr/include
Could not find the following static Boost libraries:
boost_signals
boost_unit_test_framework
No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.
Call Stack (most recent call first):
CMakeLists.txt:18 (find_package)
-- Found Curses: /usr/lib/libcurses.so
-- Configuring incomplete, errors occurred!
See also "/Depot/Downloads/antargis-master/CMakeFiles/CMakeOutput.log".
See also "/Depot/Downloads/antargis-master/CMakeFiles/CMakeError.log".
I copiled boost from scratch using the LFS way:
http://www.linuxfromscratch.org/blfs/view/7.6/general/boost.html
These were the 3 commandline things I used:
./bootstrap.sh --prefix=/usr &&
./b2 stage threading=multi link=shared
./b2 install threading=multi link=shared
Am I missing something? Could perhaps the error message
show some additional information related to boost?
I can recompile boost from source, no problem, but I am
not sure what I am missing altogether.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.