moai / moai-community Goto Github PK
View Code? Open in Web Editor NEWRepo to hold contributions and utilities contributed by the Moai community.
Repo to hold contributions and utilities contributed by the Moai community.
pito run command can launch any desktop host, or repack an apk and launch on android device. It would be good to launch either/or both ios simulator or device using pito run command. This could then be used for ide integration such as with ZBS or sublime text for quick edit run test cycles.
ios-deploy might help from the cordova/phonegap guys for running on device, or just use the magic xcrun incantation for spinning up a simulator, ideally after repacking and resigning an existing .app/ipa for faster turnaround
Running pito giving me
Will use the /Users/ilyakolbin/Documents/moaisdk-osx-1.7.5/sdk/moai/util/build/build-osx.sh to build /Users/ilyakolbin/Documents/moaisdk-osx-1.7.5/sdk/moai/bin/osx/moai binary for use by pito...
User defaults from command line:
IDEDerivedDataPathOverride = /Users/ilyakolbin/Documents/moaisdk-osx-1.7.5/sdk/moai/xcode/build
=== BUILD TARGET libmoai-osx-apple OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-sdl OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-3rdparty-core OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-3rdparty-crypto OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-3rdparty-sdl OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-audio-sampler OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-box2d OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-crypto OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-fmod-ex OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-http-client OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-http-server OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-image-jpg OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-image-png OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-image-pvr OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-image-webp OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-luaext OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-sim OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-untz OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-zl-core OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-zl-crypto OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-zl-vfs OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD AGGREGATE TARGET libmoai-osx-all OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
** BUILD SUCCEEDED **
User defaults from command line:
IDEDerivedDataPathOverride = /Users/ilyakolbin/Documents/moaisdk-osx-1.7.5/sdk/moai/xcode/build
=== BUILD TARGET libmoai-osx-audio-sampler OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-3rdparty-core OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-apple OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-3rdparty-crypto OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-3rdparty-sdl OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-box2d OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-crypto OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-harfbuzz OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-http-client OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-http-server OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-image-jpg OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-image-png OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-image-pvr OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-image-webp OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-luaext OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-sdl OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-sim OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-untz OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-zl-core OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-zl-crypto OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET libmoai-osx-zl-vfs OF PROJECT libmoai WITH CONFIGURATION Release ===
Check dependencies
=== BUILD TARGET moai OF PROJECT moai-osx WITH CONFIGURATION Release ===
Check dependencies
Ld /Users/ilyakolbin/Documents/moaisdk-osx-1.7.5/sdk/moai/xcode/build/Build/Products/Release/moai normal x86_64
cd /Users/ilyakolbin/Documents/moaisdk-osx-1.7.5/sdk/moai/xcode/osx
export MACOSX_DEPLOYMENT_TARGET=10.12
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -L/Users/ilyakolbin/Documents/moaisdk-osx-1.7.5/sdk/moai/xcode/build/Build/Products/Release -F/Users/ilyakolbin/Documents/moaisdk-osx-1.7.5/sdk/moai/xcode/build/Build/Products/Release -filelist /Users/ilyakolbin/Documents/moaisdk-osx-1.7.5/sdk/moai/xcode/build/Build/Intermediates/moai-osx.build/Release/moai.build/Objects-normal/x86_64/moai.LinkFileList -mmacosx-version-min=10.12 -Xlinker -object_path_lto -Xlinker /Users/ilyakolbin/Documents/moaisdk-osx-1.7.5/sdk/moai/xcode/build/Build/Intermediates/moai-osx.build/Release/moai.build/Objects-normal/x86_64/moai_lto.o -stdlib=libc++ -fobjc-link-runtime -lmoai-osx-3rdparty-core -lmoai-osx-3rdparty-crypto -lmoai-osx-3rdparty-sdl -lmoai-osx-apple /Users/ilyakolbin/Documents/moaisdk-osx-1.7.5/sdk/moai/xcode/build/Build/Products/Release/libmoai-osx-audio-sampler.a -lmoai-osx-box2d -lmoai-osx-crypto /Users/ilyakolbin/Documents/moaisdk-osx-1.7.5/sdk/moai/xcode/build/Build/Products/Release/libmoai-osx-harfbuzz.a -lmoai-osx-http-client -lmoai-osx-http-server /Users/ilyakolbin/Documents/moaisdk-osx-1.7.5/sdk/moai/xcode/build/Build/Products/Release/libmoai-osx-image-jpg.a /Users/ilyakolbin/Documents/moaisdk-osx-1.7.5/sdk/moai/xcode/build/Build/Products/Release/libmoai-osx-image-png.a /Users/ilyakolbin/Documents/moaisdk-osx-1.7.5/sdk/moai/xcode/build/Build/Products/Release/libmoai-osx-image-pvr.a /Users/ilyakolbin/Documents/moaisdk-osx-1.7.5/sdk/moai/xcode/build/Build/Products/Release/libmoai-osx-image-webp.a -lmoai-osx-luaext -lmoai-osx-sdl -lmoai-osx-sim -lmoai-osx-untz -lmoai-osx-zl-core -lmoai-osx-zl-crypto -lmoai-osx-zl-vfs -lmoai-osx -lstdc++ -lcrypto -lssl -lSystem -framework AudioToolbox -framework AudioUnit -framework Carbon -framework Cocoa -framework CoreAudio -framework CoreFoundation -framework CoreServices -framework CoreVideo -framework ForceFeedback -framework Foundation -framework IOKit -framework OpenGL -framework SystemConfiguration -Xlinker -dependency_info -Xlinker /Users/ilyakolbin/Documents/moaisdk-osx-1.7.5/sdk/moai/xcode/build/Build/Intermediates/moai-osx.build/Release/moai.build/Objects-normal/x86_64/moai_dependency_info.dat -o /Users/ilyakolbin/Documents/moaisdk-osx-1.7.5/sdk/moai/xcode/build/Build/Products/Release/moai
ld: library not found for -lcrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld /Users/ilyakolbin/Documents/moaisdk-osx-1.7.5/sdk/moai/xcode/build/Build/Products/Release/moai normal x86_64
(1 failure)
Need to confirm local moai binary was built ...
Something went wrong with building /Users/ilyakolbin/Documents/moaisdk-osx-1.7.5/sdk/moai/util/moai .. exiting!
So linker cannot find crypto from openssl package I guess. Any thoughts how to fix this? Thanks in advance:)
Hi,
Is this project dead ?
Thanks,
Vlad
Recently I tried to build (by pito) MOAI and build failed. After some digging in I found these problems:
diff --git a/cmake/third-party/sdl2/CMakeLists.txt b/cmake/third-party/sdl2/CMakeLists.txt
index b90f27f..c6b7c3f 100644
--- a/cmake/third-party/sdl2/CMakeLists.txt
+++ b/cmake/third-party/sdl2/CMakeLists.txt
@@ -15,7 +15,7 @@ include(CheckTypeSize)
include(CheckStructHasMember)
include(CMakeDependentOption)
include(FindPkgConfig)
-set(SDL2_SOURCE_DIR "${MOAI_ROOT}/3rdparty/sdl2-2.0.0")
+set(SDL2_SOURCE_DIR "${MOAI_ROOT}/3rdparty/sdl2-2.0.4")
set(CMAKE_MODULE_PATH "${SDL2_SOURCE_DIR}/cmake")
include(${SDL2_SOURCE_DIR}/cmake/macros.cmake)
include(${SDL2_SOURCE_DIR}/cmake/sdlchecks.cmake)
diff --git a/bin/pito b/bin/pito
index a03f9a8..3b2d1f4 100755
--- a/bin/pito
+++ b/bin/pito
@@ -26,7 +26,7 @@ then
;;
Linux*)
- MOAI_BUILD_SCRIPT="bin/build-linux.sh"
+ MOAI_BUILD_SCRIPT="$PITO_HOME/scripts/build-linux.sh"
;;
*)
echo "Unknown OS"
diff --git a/cmake/cmake-modules/platform-common.cmake b/cmake/cmake-modules/platform-common.cmake
index bc46344..d53da59 100644
--- a/cmake/cmake-modules/platform-common.cmake
+++ b/cmake/cmake-modules/platform-common.cmake
@@ -18,7 +18,7 @@ endif (LIB_PATH)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${VFS_INCLUDE}")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${VFS_INCLUDE}")
-
+set (CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} -ldl -lSDL2")^M
#
# Set as debug
//#include <lundump.h>
#include <lua.h> // for LUA_SIGNATURE
#define LUAC_FORMAT 0x51
#define LUAC_VERSION 0
typedef int Instruction;
But I think it's much easier and safer just to disable Lua Extensions:
diff --git a/cmake/cmake-modules/module-config.cmake b/cmake/cmake-modules/module-config.cmake
index 39aa63f..097d65e 100644
--- a/cmake/cmake-modules/module-config.cmake
+++ b/cmake/cmake-modules/module-config.cmake
@@ -13,7 +13,7 @@ option ( MOAI_CRYPTO "Enable Moai Crypto classes" TRUE )
option ( MOAI_EXPAT "Enable Expat" TRUE )
option ( MOAI_FREETYPE "Enable Freetype" TRUE )
option ( MOAI_JSON "Enable Json" TRUE )
-option ( MOAI_LUAEXT "Enable Lua Extensions" TRUE )
+option ( MOAI_LUAEXT "Enable Lua Extensions" FALSE )
option ( MOAI_MONGOOSE "Enable mongoose" TRUE )
option ( MOAI_OGG "Enable Ogg" TRUE )
option ( MOAI_OPENSSL "Enable OpenSSL" TRUE )
After that build was successful. But I have enough doubts about my solution (3 and 4) so I post issue, not pull request. Hope you look in this, your're doing awesome job:)
After successfully building a linux version of moai sdk, I am trying to build a html host, which is really a hard thing to do.
run build-html.sh first time
In file included from /home/jackie/Desktop/moai/moai-community/sdk/moai/src/zl-util/ZLDeviceTime_posix.cpp:32:
In file included from /home/jackie/Desktop/moai/emsdk/fastcomp/emscripten/system/include/emscripten.h:1:
/home/jackie/Desktop/moai/emsdk/fastcomp/emscripten/system/include/emscripten/emscripten.h:234:25: error: typedef redefinition with
different types ('struct _IO_FILE' vs 'int')
typedef struct _IO_FILE FILE;
^
/home/jackie/Desktop/moai/moai-community/sdk/moai/src/zl-vfs/zl_replace_stdio.h:23:14: note: expanded from macro 'FILE'
#define FILE ZLFILE
^
/home/jackie/Desktop/moai/moai-community/sdk/moai/src/zl-vfs/headers.h:38:13: note: previous definition is here
typedef int ZLFILE;
^
1 error generated.
so I change typedef int ZLFILE
to typedef FILE ZLFILE
and it worked
run build-html again
[100%] Linking CXX static library libmoaishared.bc
[100%] Built target moaishared
Scanning dependencies of target moaijs
shared:ERROR: unclosed quoted string. expected final character to be ''' in ''FS_unmount'\\ '
CMakeFiles/moaijs.dir/build.make:57: recipe for target 'CMakeFiles/moaijs' failed
make[3]: *** [CMakeFiles/moaijs] Error 1
CMakeFiles/Makefile2:133: recipe for target 'CMakeFiles/moaijs.dir/all' failed
make[2]: *** [CMakeFiles/moaijs.dir/all] Error 2
CMakeFiles/Makefile2:140: recipe for target 'CMakeFiles/moaijs.dir/rule' failed
make[1]: *** [CMakeFiles/moaijs.dir/rule] Error 2
Makefile:175: recipe for target 'moaijs' failed
make: *** [moaijs] Error 2
so I deleted the space after the FS_unmount in file cmake/hosts/host-html/CMakeLists.txt
and run it again, I got shared:ERROR: undefined exported function: "_AKURunScript"
so I deleted _AKURunScript and repeat the process until it finally builds
I have run pito host run html
successfully, but the webplayer is not working at all. My browser gives me error message like TypeError: Module.cwrap is not a function
Thank you!
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.