Nokia N900 >> Sbox

build wargus 2.2.7


編譯步驟如下:

$ cd
$ wget https://github.com/steward-fu/n900/releases/download/v1.1/wargus-2.2.7.7z
$ 7zr x wargus-2.2.7.7z
$ wget https://github.com/steward-fu/n900/releases/download/v1.1/stargus_include-2.2.7.7z
$ 7zr x stargus_include-2.2.7.7z
$ cp stargus_include-2.2.7/* wargus_2.2.7/
$ cd wargus_2.2.7
$ mkdir build
$ cd build
$ cmake ../
  CMake Error at cmake/modules/FindStratagus.cmake:24 (message):
    Could not find stratagus
  Call Stack (most recent call first):
    CMakeLists.txt:95 (find_package)
  -- Configuring incomplete, errors occurred!

$ vim CMakeCache.txt
  //Path to a program.
  STRATAGUS:FILEPATH=../stratsgus_2.2.7/build

  //Path to a file.
  STRATAGUS_INCLUDE_DIR:PATH=../stratagus_2.2.7/

$ make
  wargus_2.2.7/warextract.c:40:37: error: stratagus-maemo-extract.h: No such file or directory
  make[2]: *** [CMakeFiles/warextract.dir/warextract.c.o] Error 1
  make[1]: *** [CMakeFiles/warextract.dir/all] Error 2
  make: *** [all] Error 2

$ vim ../warextract.c +40
  #include "stratagus-maemo-extract.h"

$ make
  wargus_2.2.7/wargus.cpp:34:37: error: stratagus-game-launcher.h: No such file or directory
  make[2]: *** [CMakeFiles/wargus.dir/wargus.cpp.o] Error 1
  make[1]: *** [CMakeFiles/wargus.dir/all] Error 2
  make: *** [all] Error 2

$ vim ../wargus.cpp +34
  #include "stratagus-game-launcher.h"

$ make


返回上一頁