[quote=“Ghabry”]Cmake clones the readers library for you and compiles it, too.
Ruby is optional, we provide all files that are generated by Ruby in the repo. The Boost libraries (not the headers) are optional, too. (otherwise cmake would fail if they are required)
And I dont know if it compiles correctly if you invoke cmake that way, navigate to builds/cmake and type cmake and then make.[/quote]
Ok did a clean slate and tried again :-
~/games$ git clone git://github.com/EasyRPG/Player.git
Cloning into 'Player'...
remote: Counting objects: 13888, done.
remote: Compressing objects: 100% (3286/3286), done.
remote: Total 13888 (delta 10532), reused 13736 (delta 10419)
Receiving objects: 100% (13888/13888), 17.80 MiB | 46 KiB/s, done.
Resolving deltas: 100% (10532/10532), done.
~/games$ mv Player/ easyrpg/
~/games/easyrpg$ cd builds/cmake
~/games/easyrpg/builds/cmake$ cmake .
-- The CXX compiler identification is GNU 4.7.2
-- The C compiler identification is GNU 4.8.0
-- 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
-- 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
-- Found Git: /usr/bin/git (found version "1.7.10.4")
Cloning into '/home/shirish/games/easyrpg/builds/cmake/../../lib/readers'...
remote: Counting objects: 4338, done.
remote: Compressing objects: 100% (646/646), done.
remote: Total 4338 (delta 3653), reused 4326 (delta 3645)
Receiving objects: 100% (4338/4338), 913.65 KiB | 47 KiB/s, done.
Resolving deltas: 100% (3653/3653), done.
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.3.1")
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- iconv.h found: /usr/include
-- Boost version: 1.49.0
-- Could NOT find Ruby (missing: RUBY_INCLUDE_DIR RUBY_LIBRARY RUBY_CONFIG_INCLUDE_DIR) (found version "1.9.1")
-- iconv.h found: /usr/include
-- Expat found: /usr/lib/x86_64-linux-gnu/libexpat.so
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.4.9")
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so
-- Found Pixman: /usr/lib/x86_64-linux-gnu/libpixman-1.so
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.7")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.49")
-- 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/x86_64-linux-gnu/libSDLmain.a;/usr/lib/x86_64-linux-gnu/libSDL.so;-lpthread (found version "1.2.15")
-- Boost version: 1.49.0
-- Found SDL_mixer: /usr/lib/x86_64-linux-gnu/libSDL_mixer.so (found version "1.2.12")
-- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so
-- Found sndfile: /usr/lib/x86_64-linux-gnu/libogg.so;/usr/lib/x86_64-linux-gnu/libFLAC.so;/usr/lib/x86_64-linux-gnu/libvorbis.so;/usr/lib/x86_64-linux-gnu/libvorbisenc.so;/usr/lib/x86_64-linux-gnu/libsndfile.so
-- Found Lua51: /usr/lib/x86_64-linux-gnu/liblua5.1.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "5.1.5")
-- Could NOT find Boost
-- Could NOT find Ruby (missing: RUBY_INCLUDE_DIR RUBY_LIBRARY RUBY_CONFIG_INCLUDE_DIR) (found version "1.9.1")
Cloning into '/home/shirish/games/easyrpg/builds/cmake/../../lib/TestGame'...
remote: Counting objects: 267, done.
remote: Compressing objects: 100% (190/190), done.
remote: Total 267 (delta 117), reused 217 (delta 67)
Receiving objects: 100% (267/267), 785.70 KiB | 66 KiB/s, done.
Resolving deltas: 100% (117/117), done.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/shirish/games/easyrpg/builds/cmake
~/games/easyrpg/builds/cmake$ make
Scanning dependencies of target EasyRPG_Player_Static
[ 0%] Building CXX object CMakeFiles/EasyRPG_Player_Static.dir/home/shirish/games/easyrpg/src/window_base.cpp.o
In file included from /usr/include/c++/4.7/array:36:0,
from /home/shirish/games/easyrpg/src/memory_management.h:49,
from /home/shirish/games/easyrpg/src/system.h:45,
from /home/shirish/games/easyrpg/src/window.h:22,
from /home/shirish/games/easyrpg/src/window_base.h:23,
from /home/shirish/games/easyrpg/src/window_base.cpp:21:
/usr/include/c++/4.7/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
In file included from /home/shirish/games/easyrpg/src/system.h:45:0,
from /home/shirish/games/easyrpg/src/window.h:22,
from /home/shirish/games/easyrpg/src/window_base.h:23,
from /home/shirish/games/easyrpg/src/window_base.cpp:21:
/home/shirish/games/easyrpg/src/memory_management.h:57:9: error: ‘shared_ptr’ in namespace ‘std’ does not name a type
/home/shirish/games/easyrpg/src/memory_management.h:58:9: error: ‘shared_ptr’ in namespace ‘std’ does not name a type
/home/shirish/games/easyrpg/src/memory_management.h:59:9: error: ‘shared_ptr’ in namespace ‘std’ does not name a type
In file included from /home/shirish/games/easyrpg/src/window_base.h:23:0,
from /home/shirish/games/easyrpg/src/window_base.cpp:21:
/home/shirish/games/easyrpg/src/window.h:38:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/window.h:39:21: error: ‘BitmapRef’ has not been declared
/home/shirish/games/easyrpg/src/window.h:40:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/window.h:41:19: error: ‘BitmapRef’ has not been declared
/home/shirish/games/easyrpg/src/window.h:90:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/window.h:112:2: error: ‘BitmapScreenRef’ does not name a type
In file included from /home/shirish/games/easyrpg/src/game_screen.h:23:0,
from /home/shirish/games/easyrpg/src/main_data.h:24,
from /home/shirish/games/easyrpg/src/window_base.h:25,
from /home/shirish/games/easyrpg/src/window_base.cpp:21:
/home/shirish/games/easyrpg/src/plane.h:38:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/plane.h:39:17: error: ‘BitmapRef’ has not been declared
/home/shirish/games/easyrpg/src/plane.h:69:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/plane.h:70:2: error: ‘BitmapScreenRef’ does not name a type
In file included from /home/shirish/games/easyrpg/src/game_picture.h:26:0,
from /home/shirish/games/easyrpg/src/game_screen.h:24,
from /home/shirish/games/easyrpg/src/main_data.h:24,
from /home/shirish/games/easyrpg/src/window_base.h:25,
from /home/shirish/games/easyrpg/src/window_base.cpp:21:
/home/shirish/games/easyrpg/src/sprite.h:45:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/sprite.h:46:17: error: ‘BitmapRef’ has not been declared
/home/shirish/games/easyrpg/src/sprite.h:95:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/sprite.h:96:2: error: ‘BitmapScreenRef’ does not name a type
In file included from /home/shirish/games/easyrpg/src/game_screen.h:26:0,
from /home/shirish/games/easyrpg/src/main_data.h:24,
from /home/shirish/games/easyrpg/src/window_base.h:25,
from /home/shirish/games/easyrpg/src/window_base.cpp:21:
/home/shirish/games/easyrpg/src/battle_animation.h:54:2: error: ‘BitmapScreenRef’ does not name a type
In file included from /home/shirish/games/easyrpg/src/main_data.h:24:0,
from /home/shirish/games/easyrpg/src/window_base.h:25,
from /home/shirish/games/easyrpg/src/window_base.cpp:21:
/home/shirish/games/easyrpg/src/game_screen.h:52:14: error: ‘shared_ptr’ is not a member of ‘std’
/home/shirish/games/easyrpg/src/game_screen.h:52:14: error: ‘shared_ptr’ is not a member of ‘std’
/home/shirish/games/easyrpg/src/game_screen.h:52:40: error: template argument 1 is invalid
/home/shirish/games/easyrpg/src/game_screen.h:52:40: error: template argument 2 is invalid
/home/shirish/games/easyrpg/src/game_screen.h:52:42: error: expected unqualified-id before ‘>’ token
/home/shirish/games/easyrpg/src/game_screen.h:83:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/game_screen.h:84:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/game_screen.h:85:2: error: ‘BitmapRef’ does not name a type
In file included from /home/shirish/games/easyrpg/src/window_base.cpp:22:0:
/home/shirish/games/easyrpg/src/cache.h:39:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/cache.h:40:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/cache.h:41:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/cache.h:42:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/cache.h:43:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/cache.h:44:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/cache.h:45:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/cache.h:46:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/cache.h:47:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/cache.h:48:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/cache.h:49:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/cache.h:50:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/cache.h:51:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/cache.h:52:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/cache.h:53:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/cache.h:54:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/cache.h:55:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/cache.h:56:2: error: ‘BitmapRef’ does not name a type
In file included from /home/shirish/games/easyrpg/src/window_base.cpp:25:0:
/home/shirish/games/easyrpg/src/bitmap.h:51:9: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/bitmap.h:60:9: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/bitmap.h:70:9: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/bitmap.h:79:9: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/bitmap.h:89:9: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/bitmap.h:157:2: error: ‘BitmapRef’ does not name a type
/home/shirish/games/easyrpg/src/bitmap.h:207:10: error: ‘array’ in namespace ‘std’ does not name a type
/home/shirish/games/easyrpg/src/bitmap.h:208:20: error: ‘opacity_type’ was not declared in this scope
/home/shirish/games/easyrpg/src/bitmap.h:208:32: error: template argument 1 is invalid
/home/shirish/games/easyrpg/src/bitmap.h:223:9: error: ‘BitmapRef’ does not name a type
In file included from /home/shirish/games/easyrpg/src/window_base.cpp:25:0:
/home/shirish/games/easyrpg/src/bitmap.h:607:2: error: ‘FontRef’ does not name a type
/home/shirish/games/easyrpg/src/bitmap.h:614:15: error: ‘FontRef’ has not been declared
/home/shirish/games/easyrpg/src/bitmap.h:645:2: error: ‘FontRef’ does not name a type
In file included from /home/shirish/games/easyrpg/src/window_base.cpp:26:0:
/home/shirish/games/easyrpg/src/font.h:40:9: error: ‘FontRef’ does not name a type
/home/shirish/games/easyrpg/src/font.h:41:9: error: ‘FontRef’ does not name a type
/home/shirish/games/easyrpg/src/window_base.cpp: In constructor ‘Window_Base::Window_Base(int, int, int, int)’:
/home/shirish/games/easyrpg/src/window_base.cpp:30:16: error: ‘System’ is not a member of ‘Cache’
/home/shirish/games/easyrpg/src/window_base.cpp:30:16: note: suggested alternative:
In file included from /home/shirish/games/easyrpg/builds/cmake/../../lib/readers/include/data.h:37:0,
from /home/shirish/games/easyrpg/src/main_data.h:22,
from /home/shirish/games/easyrpg/src/window_base.h:25,
from /home/shirish/games/easyrpg/src/window_base.cpp:21:
/home/shirish/games/easyrpg/builds/cmake/../../lib/readers/include/rpg_system.h:35:8: note: ‘RPG::System’
/home/shirish/games/easyrpg/src/window_base.cpp: In member function ‘virtual void Window_Base::Update()’:
/home/shirish/games/easyrpg/src/window_base.cpp:43:17: error: ‘System’ is not a member of ‘Cache’
/home/shirish/games/easyrpg/src/window_base.cpp:43:17: note: suggested alternative:
In file included from /home/shirish/games/easyrpg/builds/cmake/../../lib/readers/include/data.h:37:0,
from /home/shirish/games/easyrpg/src/main_data.h:22,
from /home/shirish/games/easyrpg/src/window_base.h:25,
from /home/shirish/games/easyrpg/src/window_base.cpp:21:
/home/shirish/games/easyrpg/builds/cmake/../../lib/readers/include/rpg_system.h:35:8: note: ‘RPG::System’
/home/shirish/games/easyrpg/src/window_base.cpp:44:3: error: ‘contents’ was not declared in this scope
/home/shirish/games/easyrpg/src/window_base.cpp:44:33: error: ‘windowskin’ was not declared in this scope
/home/shirish/games/easyrpg/src/window_base.cpp: In member function ‘void Window_Base::DrawFace(std::string, int, int, int, bool)’:
/home/shirish/games/easyrpg/src/window_base.cpp:49:2: error: ‘BitmapRef’ was not declared in this scope
/home/shirish/games/easyrpg/src/window_base.cpp:49:12: error: expected ‘;’ before ‘faceset’
/home/shirish/games/easyrpg/src/window_base.cpp:59:3: error: ‘contents’ was not declared in this scope
/home/shirish/games/easyrpg/src/window_base.cpp:59:31: error: ‘faceset’ was not declared in this scope
/home/shirish/games/easyrpg/src/window_base.cpp:61:3: error: ‘contents’ was not declared in this scope
/home/shirish/games/easyrpg/src/window_base.cpp:61:27: error: ‘faceset’ was not declared in this scope
/home/shirish/games/easyrpg/src/window_base.cpp: In member function ‘void Window_Base::DrawActorName(Game_Actor*, int, int)’:
/home/shirish/games/easyrpg/src/window_base.cpp:70:2: error: ‘contents’ was not declared in this scope
/home/shirish/games/easyrpg/src/window_base.cpp: In member function ‘void Window_Base::DrawActorClass(Game_Actor*, int, int)’:
/home/shirish/games/easyrpg/src/window_base.cpp:78:2: error: ‘contents’ was not declared in this scope
/home/shirish/games/easyrpg/src/window_base.cpp: In member function ‘void Window_Base::DrawActorLevel(Game_Actor*, int, int)’:
/home/shirish/games/easyrpg/src/window_base.cpp:83:2: error: ‘contents’ was not declared in this scope
/home/shirish/games/easyrpg/src/window_base.cpp: In member function ‘void Window_Base::DrawActorState(Game_Actor*, int, int)’:
/home/shirish/games/easyrpg/src/window_base.cpp:96:3: error: ‘contents’ was not declared in this scope
/home/shirish/games/easyrpg/src/window_base.cpp:99:3: error: ‘contents’ was not declared in this scope
/home/shirish/games/easyrpg/src/window_base.cpp: In member function ‘void Window_Base::DrawActorExp(Game_Actor*, int, int)’:
/home/shirish/games/easyrpg/src/window_base.cpp:105:2: error: ‘contents’ was not declared in this scope
/home/shirish/games/easyrpg/src/window_base.cpp: In member function ‘void Window_Base::DrawActorHp(Game_Actor*, int, int, bool)’:
/home/shirish/games/easyrpg/src/window_base.cpp:122:2: error: ‘contents’ was not declared in this scope
/home/shirish/games/easyrpg/src/window_base.cpp: In member function ‘void Window_Base::DrawActorSp(Game_Actor*, int, int, bool)’:
/home/shirish/games/easyrpg/src/window_base.cpp:153:2: error: ‘contents’ was not declared in this scope
/home/shirish/games/easyrpg/src/window_base.cpp: In member function ‘void Window_Base::DrawActorParameter(Game_Actor*, int, int, int)’:
/home/shirish/games/easyrpg/src/window_base.cpp:206:2: error: ‘contents’ was not declared in this scope
/home/shirish/games/easyrpg/src/window_base.cpp: In member function ‘void Window_Base::DrawEquipmentType(Game_Actor*, int, int, int)’:
/home/shirish/games/easyrpg/src/window_base.cpp:241:2: error: ‘contents’ was not declared in this scope
/home/shirish/games/easyrpg/src/window_base.cpp: In member function ‘void Window_Base::DrawItemName(RPG::Item*, int, int, bool)’:
/home/shirish/games/easyrpg/src/window_base.cpp:246:2: error: ‘contents’ was not declared in this scope
/home/shirish/games/easyrpg/src/window_base.cpp: In member function ‘void Window_Base::DrawSkillName(RPG::Skill*, int, int, bool)’:
/home/shirish/games/easyrpg/src/window_base.cpp:251:2: error: ‘contents’ was not declared in this scope
/home/shirish/games/easyrpg/src/window_base.cpp: In member function ‘void Window_Base::DrawCurrencyValue(int, int, int)’:
/home/shirish/games/easyrpg/src/window_base.cpp:260:24: error: ‘contents’ was not declared in this scope
make[2]: *** [CMakeFiles/EasyRPG_Player_Static.dir/home/shirish/games/easyrpg/src/window_base.cpp.o] Error 1
make[1]: *** [CMakeFiles/EasyRPG_Player_Static.dir/all] Error 2
make: *** [all] Error 2
As can be seen an errro is there at the very end, no idea why.