Open iskolbin opened 6 years ago
Proper fix should be to declare your entropy source as a CFLAG
https://github.com/moai/moai-dev/blob/develop/cmake/cmake/cmake-modules/platform-linux.cmake#L2
Add -DXML_DEV_URANDOM to that line.
This should remove the need for further dependency updates.
@ciwrl thx, updated
Tried to build current branch recently, and build failed. After some trial I finally successfully build it, but with some hacks, so let me just list my problems and my 'fixes'.
expat
not compiling, complaining onYou do not have support for any sources of high quality entropy
, Upd thx @ciwrl, updated cmake:SDL2
, build failed with:to heal this, just updated
SDL2
to2.0.8
, updated cmake file (see 5), note about bug and fix: http://blfs-dev.linuxfromscratch.narkive.com/bJ1fxg4e/sdl2-2-0-4-fails-to-compile-with-wayland-1-12-0sndio
:which is healed by adding link flag to cmake file (taken from https://stackoverflow.com/questions/41608136/sdl-sndioaudio-c-undefined-reference-to-sio#41621638), updted cmake file (see 5)
-set (SDL2_SOURCE_DIR "${MOAI_ROOT}/3rdparty/sdl2-2.0.4") +set (SDL2_SOURCE_DIR "${MOAI_ROOT}/3rdparty/sdl2-2.0.8") set (SDL2_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/binarydir") ExternalProject_Add(sdl2 SOURCE_DIR "${SDL2_SOURCE_DIR}" CMAKE_ARGS "-DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/install" -DSDL_SHARED=OFF -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DLIBC=ON CMAKE_CACHE_ARGS "-DSDL2_SOURCE_DIR:string=${SDL2_SOURCE_DIR}" "-DSDL2_BINARY_DIR:string=${SDL2_BINARY_DIR}" "-DSDL_STATIC:bool=on" "-DSDL_SHARED:bool=off"
@@ -35,7 +35,6 @@ add_library(SDL2-static INTERFACE)
todo install headers too :)
target_include_directories(SDL2-static INTERFACE "${SDL2_SOURCE_DIR}/include_moai" "${SDL2_SOURCE_DIR}/include" ) -target_link_libraries(SDL2-static INTERFACE SDL2-static-imp )
+target_link_libraries(SDL2-static INTERFACE SDL2-static-imp sndio )
install(TARGETS SDL2-static EXPORT libmoai ARCHIVE DESTINATION lib)
Cannot build
moai-http-client
, I guess problems withexpat
. Cannot findMOAIXmlParser
. To fix this I modified#if
guards:-#if MOAI_WITH_TINYXML +#if MOAI_WITH_TINYXML && MOAI_WITH_EXPAT
include
endif
@@ -225,7 +225,7 @@ int MOAIHttpTaskBase::_isBusy ( lua_State L ) { int MOAIHttpTaskBase::_parseXml ( lua_State L ) { MOAI_LUA_SETUP ( MOAIHttpTaskBase, "U" )
if MOAI_WITH_TINYXML
if MOAI_WITH_TINYXML && MOAI_WITH_EXPAT