Building MOAI 1,8 sample for Android on Linux

Tablets / Phones / Consoles / Ouya

Moderator: ezraanderson

Building MOAI 1,8 sample for Android on Linux

Postby naturally » Thu Mar 09, 2017 12:20 pm

Just detailing my attempts...

live stream: https://www.twitch.tv/naturallyintelligent

git clone http://github.com/moai/moai-dev --branch=1.8something --depth=1 18develop
git submodule init
git submodule update

git clone http://github.com/moai/moai-community --depth=1
ln -s 18develop moai-community/sdk/moai

Open moai-community/scripts/build-linux.sh
Add MOAI_SDK_HOME path
Run

Error:
Code: Select all
  1.  

  2. sundrop@sketchpad:~/Engines/moai/moai-community$ ./scripts/build-linux.sh

  3. ~/Engines/moai/moai-community ~/Engines/moai/moai-community

  4. CMake Warning (dev) at /home/sundrop/Engines/moai/moai-community/cmake/third-party/curl/CMakeLists.txt:65 (get_target_property):

  5.   Policy CMP0045 is not set: Error on non-existent target in

  6.   get_target_property.  Run "cmake --help-policy CMP0045" for policy details.

  7.   Use the cmake_policy command to set the policy and suppress this warning.

  8.  

  9.   get_target_property() called with non-existent target "ssl".

  10. This warning is for project developers.  Use -Wno-dev to suppress it.

  11.  

  12. sdl2 install_dir /home/sundrop/Engines/moai/moai-community/build/build-linux/libmoai/third-party/sdl2/install

  13. -- Could NOT find XCB_COMPOSITE (missing:  XCB_COMPOSITE_LIBRARIES XCB_COMPOSITE_INCLUDE_DIR)

  14. -- Could NOT find XCB_DAMAGE (missing:  XCB_DAMAGE_LIBRARIES XCB_DAMAGE_INCLUDE_DIR)

  15. -- Could NOT find XCB_SHM (missing:  XCB_SHM_LIBRARIES XCB_SHM_INCLUDE_DIR)

  16. -- Could NOT find XCB_XV (missing:  XCB_XV_LIBRARIES XCB_XV_INCLUDE_DIR)

  17. -- Could NOT find XCB_XTEST (missing:  XCB_XTEST_LIBRARIES XCB_XTEST_INCLUDE_DIR)

  18. -- Could NOT find XCB_ICCCM (missing:  XCB_ICCCM_LIBRARIES XCB_ICCCM_INCLUDE_DIR)

  19. -- Could NOT find XCB_EWMH (missing:  XCB_EWMH_LIBRARIES XCB_EWMH_INCLUDE_DIR)

  20. -- Could NOT find XCB_IMAGE (missing:  XCB_IMAGE_LIBRARIES XCB_IMAGE_INCLUDE_DIR)

  21. -- Could NOT find XCB_RENDERUTIL (missing:  XCB_RENDERUTIL_LIBRARIES XCB_RENDERUTIL_INCLUDE_DIR)

  22. -- Configuring done

  23. CMake Error at /home/sundrop/Engines/moai/moai-community/cmake/third-party/crypto/CMakeLists.txt:603 (add_library):

  24.   Cannot find source file:

  25.  

  26.     /home/sundrop/Engines/moai/18develop/3rdparty/openssl-1.0.0m/crypto/aes/aes_cbc.c

  27.  

  28.   Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp

  29.   .hxx .in .txx

  30.  

  31.  

  32. CMake Error at /home/sundrop/Engines/moai/moai-community/cmake/third-party/curl/CMakeLists.txt:185 (add_library):

  33.   Cannot find source file:

  34.  

  35.     /home/sundrop/Engines/moai/18develop/3rdparty/curl-7.19.7/lib/base64.c

  36.  

  37.   Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp

  38.   .hxx .in .txx

  39.  

  40.  

  41. CMake Error at /home/sundrop/Engines/moai/moai-community/cmake/third-party/ssl/CMakeLists.txt:102 (add_library):

  42.   Cannot find source file:

  43.  

  44.     /home/sundrop/Engines/moai/18develop/3rdparty/openssl-1.0.0m/ssl/bio_ssl.c

  45.  

  46.   Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp

  47.   .hxx .in .txx

  48.  

  49.  

  50. CMake Error: CMake can not determine linker language for target: crypto

  51. CMake Error in /home/sundrop/Engines/moai/moai-community/cmake/third-party/crypto/CMakeLists.txt:

  52.   Exporting the target "crypto" is not allowed since its linker language

  53.   cannot be determined

  54.  

  55.  

  56. CMake Error: CMake can not determine linker language for target: crypto

  57. CMake Error in /home/sundrop/Engines/moai/moai-community/cmake/third-party/crypto/CMakeLists.txt:

  58.   Exporting the target "crypto" is not allowed since its linker language

  59.   cannot be determined

  60.  

  61.  

  62. CMake Error: CMake can not determine linker language for target: curl

  63. CMake Error in /home/sundrop/Engines/moai/moai-community/cmake/third-party/curl/CMakeLists.txt:

  64.   Exporting the target "curl" is not allowed since its linker language cannot

  65.   be determined

  66.  

  67.  

  68. CMake Error: CMake can not determine linker language for target: curl

  69. CMake Error in /home/sundrop/Engines/moai/moai-community/cmake/third-party/curl/CMakeLists.txt:

  70.   Exporting the target "curl" is not allowed since its linker language cannot

  71.   be determined

  72.  

  73.  

  74. CMake Error: CMake can not determine linker language for target: ssl

  75. CMake Error in /home/sundrop/Engines/moai/moai-community/cmake/third-party/ssl/CMakeLists.txt:

  76.   Exporting the target "ssl" is not allowed since its linker language cannot

  77.   be determined

  78.  

  79.  

  80. CMake Error: CMake can not determine linker language for target: ssl

  81. CMake Error in /home/sundrop/Engines/moai/moai-community/cmake/third-party/ssl/CMakeLists.txt:

  82.   Exporting the target "ssl" is not allowed since its linker language cannot

  83.   be determined

  84.  

  85.  

  86. CMake Error: Cannot determine link language for target "crypto".

  87. CMake Error: Cannot determine link language for target "curl".

  88. CMake Error: Cannot determine link language for target "ssl".

  89. -- Generating done

  90. -- Build files have been written to: /home/sundrop/Engines/moai/moai-community/build/build-linux

Image - Don't Be Patchman - a sneak-and-grow adventure!
User avatar
naturally
 
Posts: 713
Joined: Thu Aug 29, 2013 8:05 pm
Location: Canada

Re: Building MOAI 1,8 sample for Android on Linux

Postby halfnelson » Thu Mar 09, 2017 5:21 pm

hi, your moai-community isn't on the 1.8 branch. Moai community is designed/test to work with a specific version of moai-dev.

if you are not going to use moai-dev as a submodule of moai-community you will need to keep them in sync yourself.


make sure moai-dev is on feature/community-1.8
"git checkout feature/community-1.8"

make sure moai-community is on pull-180
"cd moai-community"
"git checkout pull-180"

now they are both on correct versions, you should get a happy build (remove the build/build-linux folder before trying again since this is in a inconsistent state)
halfnelson
 
Posts: 710
Joined: Wed Jun 13, 2012 9:48 pm


Return to Android

Who is online

Users browsing this forum: No registered users and 0 guests

cron

x