Closed darmie closed 8 years ago
@darmie haxe 3.3.0 is unstable and we're waiting for some fixes. 3.2.1 is stable and usable in the mean time. We're been waiting for a hxcpp update as well as an updated haxe build for 3.3.0 before trying to use it properly.
Ok thanks, that means I would have to downgrade to Haxe 3.2
On Wed, 28 Sep 2016, 19:07 Sven Bergström, notifications@github.com wrote:
@darmie https://github.com/darmie haxe 3.3.0 is unstable and we're waiting for some fixes. 3.2.1 is stable and usable in the mean time. We're been waiting for a hxcpp update as well as an updated haxe build for 3.3.0 before trying to use it properly.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/snowkit/snow/issues/95#issuecomment-250249974, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzwghI6Nudnt-AVD5J1ax2KOaGWQuuHks5quqzugaJpZM4KI--z .
@underscorediscovery I downgraded to Haxe 3.2.1, now this is the error I am getting
lines 44-50 : Type not found : snow.system.window.Window
What test are you trying to run here? The snow.system
package was renamed to snow.systems
package.
It was the project generated by HaxeDevelop using the plugin I downloaded from the Snow page.
On Wed, 28 Sep 2016, 21:07 Sven Bergström, notifications@github.com wrote:
What test are you trying to run here? The snow.system package was renamed to snow.systems package.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/snowkit/snow/issues/95#issuecomment-250284230, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzwgkq6z7iH21y-E-YH0Law8CiqjyTHks5qusj_gaJpZM4KI--z .
I'll have to get that updated since it seems well out of date with the current template. Here's the latest https://github.com/snowkit/snow/tree/master/samples/empty
Ok. Thanks.
On Wed, 28 Sep 2016, 21:11 Sven Bergström, notifications@github.com wrote:
I'll have to get that updated since it seems well out of date with the current template. Here's the latest https://github.com/snowkit/snow/tree/master/samples/empty
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/snowkit/snow/issues/95#issuecomment-250285356, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzwgsoiPnGEwXtI9IqczDxajxdgwgE7ks5qusoAgaJpZM4KI--z .
Another error :(
Error: While running :cl.exe -Iinclude -IC:/HaxeToolkit/haxe/lib/linc_ogg/git//lib/ -IC:/HaxeToolkit/haxe/lib/linc_ogg/git//linc/ -IC:/HaxeToolkit/haxe/lib/linc_ogg/git//lib//ogg/include/ -IC:/HaxeToolkit/haxe/lib/linc_ogg/git//lib//vorbis/include/ -IC:/HaxeToolkit/haxe/lib/linc_ogg/git//lib//theora/include/ -DNATIVE_TOOLKIT_OGG -DNATIVE_TOOLKIT_VORBIS -DNATIVE_TOOLKIT_THEORA -DLINC_OPENAL -IC:/HaxeToolkit/haxe/lib/linc_openal/git//linc/ -IC:/HaxeToolkit/haxe/lib/linc_opengl/git//linc/ -IC:/HaxeToolkit/haxe/lib/linc_opengl/git//lib/glew/include/ -DLINC_OPENGL_GLEW -DGLEW_STATIC -DLINC_SDL -IC:/HaxeToolkit/haxe/lib/linc_sdl/git//linc/ -IC:/HaxeToolkit/haxe/lib/linc_sdl/git//lib/sdl/include/ -IC:/HaxeToolkit/haxe/lib/linc_sdl/git//lib/sdl/include/configs/windows/ -DHAVE_LIBC -DNATIVE_TOOLKIT_SDL -IC:/HaxeToolkit/haxe/lib/linc_stb/git//lib/ -IC:/HaxeToolkit/haxe/lib/linc_stb/git//linc/ -IC:/HaxeToolkit/haxe/lib/linc_timestamp/git//linc/ -nologo /WX- /fp:precise -DHX_WINDOWS -D_USING_V140_SDK71_ -GR -O2 -FS -Oy- -c -EHs -GS- -arch:SSE -IC:/HaxeToolkit/haxe/lib/hxcpp/3,3,49/include -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=321 -D_CRT_SECURE_NO_DEPRECATE -D_ALLOW_MSC_VER_MISMATCH -D_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH -wd4996 -MT -Yuhxcpp.h /FpC:/Users/Damilare/GameEngine/Meerkat/bin/windows.build/cpp/obj/msvc19-ncxp/__pch/haxe/hxcpp.pch C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp -FoC:/Users/Damilare/GameEngine/Meerkat/bin/windows.build/cpp/obj/msvc19-ncxp/98c334df_linc_openal.obj
linc_openal.cpp
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(5): warning C4627: '#include "./linc_openal.h"': skipped when looking for precompiled header use
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(5): note: Add directive to 'hxcpp.h' or rebuild precompiled header
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(3): warning C4603: '_LINC_OPENAL_CPP_': macro is not defined or definition is different after precompiled header use
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(3): note: Add macro to precompiled header instead of defining here
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(6): note: use of precompiled header
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(36): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(36): error C2146: syntax error: missing ';' before identifier 'genSource'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(36): error C2143: syntax error: missing ';' before '{'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(36): error C2447: '{': missing function header (old-style formal list?)
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(42): error C2146: syntax error: missing ')' before identifier 'source'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(42): error C2143: syntax error: missing ';' before '{'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(42): error C2447: '{': missing function header (old-style formal list?)
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(46): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(46): error C2086: 'int linc::openal::ALuint': redefinition
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(36): note: see declaration of 'linc::openal::ALuint'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(46): error C2146: syntax error: missing ';' before identifier 'genBuffer'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(46): error C2143: syntax error: missing ';' before '{'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(46): error C2447: '{': missing function header (old-style formal list?)
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(52): error C2146: syntax error: missing ')' before identifier 'buffer'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(52): error C2143: syntax error: missing ';' before '{'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(52): error C2447: '{': missing function header (old-style formal list?)
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(58): error C2146: syntax error: missing ')' before identifier 'buffer'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(58): error C2143: syntax error: missing ';' before '{'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(58): error C2447: '{': missing function header (old-style formal list?)
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(64): error C2146: syntax error: missing ')' before identifier 'buffer'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(64): error C2143: syntax error: missing ';' before '{'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(64): error C2447: '{': missing function header (old-style formal list?)
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(74): error C2146: syntax error: missing ')' before identifier 'buffer'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(74): error C2143: syntax error: missing ';' before '{'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(74): error C2447: '{': missing function header (old-style formal list?)
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(84): error C2146: syntax error: missing ')' before identifier 'source'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(84): error C2143: syntax error: missing ';' before '{'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(84): error C2447: '{': missing function header (old-style formal list?)
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(94): error C2146: syntax error: missing ')' before identifier 'source'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(94): error C2143: syntax error: missing ';' before '{'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(94): error C2447: '{': missing function header (old-style formal list?)
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(104): error C2146: syntax error: missing ')' before identifier 'source'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(104): error C2143: syntax error: missing ';' before '{'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(104): error C2447: '{': missing function header (old-style formal list?)
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(125): error C2146: syntax error: missing ')' before identifier 'source'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(125): error C2143: syntax error: missing ';' before '{'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(125): error C2447: '{': missing function header (old-style formal list?)
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(146): error C2146: syntax error: missing ')' before identifier 'source'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(146): error C2143: syntax error: missing ';' before '{'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(146): error C2447: '{': missing function header (old-style formal list?)
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(150): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(150): error C2370: 'linc::openal::ALuint': redefinition; different storage class
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(36): note: see declaration of 'linc::openal::ALuint'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(150): error C2146: syntax error: missing ';' before identifier 'unq_buffers'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(151): error C2146: syntax error: missing ')' before identifier 'source'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(151): error C2143: syntax error: missing ';' before '{'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(151): error C2447: '{': missing function header (old-style formal list?)
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(158): error C2143: syntax error: missing ';' before '*'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(158): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(158): error C2065: 'ALCdevice': undeclared identifier
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(158): error C2065: 'device': undeclared identifier
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(158): error C2065: 'ALCint': undeclared identifier
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(158): error C2923: 'Array': 'ALCint' is not a valid template type argument for parameter 'ELEM_'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(158): error C2955: 'Array': use of class template requires template argument list
c:\haxetoolkit\haxe\lib\hxcpp\3,3,49\include\Array.h(760): note: see declaration of 'Array'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(158): error C2146: syntax error: missing ')' before identifier 'attr_list'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(158): error C2143: syntax error: missing ';' before '{'
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(158): error C2447: '{': missing function header (old-style formal list?)
C:/HaxeToolkit/haxe/lib/linc_openal/git/linc/linc_openal.cpp(166): fatal error C1020: unexpected #endif
haxelib set hxcpp 3.2.205
hxcpp 3.3.x is for haxe 3.3 but there hasn't been a release fixing issues there yet either.
Sorry for the inconvenience, I'll update the snow set up info to be more explicit about versions.
Everything works fine now.
Build failed on Android while compiling with NDK r10d, what NDK version would you suggest that is sufficient to build a snow app
I'll need more info than "failed" so I can help diagnose what you're seeing :)
flow / build - running hxcpp for arch armv7 ...
arm-linux-androideabi-g++ -olibMeerkat-v7.so -frtti -nostdlib -Wl,-shared,-Bsymbolic -Wl,--no-undefined -Wl,-z,noexecstack --sysroot=C:/Android/android-ndk/r10d/platforms/android-21/arch-arm -LC:/Android/android-ndk/r10d/platforms/android-21/arch-arm/usr/lib @C:/Users/Damilare/GameEngine/Meerkat/bin/android.build/cpp/obj/android-v7/all_objs C:/HaxeToolkit/haxe/lib/hxcpp/3,2,205/lib/Android/libregexp-v7.a C:/HaxeToolkit/haxe/lib/hxcpp/3,2,205/lib/Android/libstd-v7.a C:/HaxeToolkit/haxe/lib/hxcpp/3,2,205/lib/Android/libzlib-v7.a -lOpenSLES -lEGL -lGLESv1_CM -lGLESv2 -Wl,--undefined=Java_org_libsdl_app_SDLActivity_nativeInit -ldl -llog -landroid -lEGL -lGLESv2 -lGLESv1_CM -lOpenSLES C:/Android/android-ndk/r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/libgnustl_static.a C:/Android/android-ndk/r10d/platforms/android-21/arch-arm/usr/lib/crtbegin_so.o C:/Android/android-ndk/r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.6/libgcc.a C:/Android/android-ndk/r10d/platforms/android-21/arch-arm/usr/lib/libc.so C:/Android/android-ndk/r10d/platforms/android-21/arch-arm/usr/lib/libm.so -llog -ldl
c:/android/android-ndk/r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/HaxeToolkit/haxe/lib/hxcpp/3,2,205/lib/Android/libstd-v7.a(5b7b20af_Sys.obj): in function sys_getch(_value*):Sys.cpp(.text._ZL9sys_getchP6_value+0x13c): error: undefined reference to '__srget'
collect2: ld returned 1 exit status
Error: error running arm-linux-androideabi-g++ -olibMeerkat-v7.so -frtti -nostdlib -Wl,-shared,-Bsymbolic -Wl,--no-undefined -Wl,-z,noexecstack --sysroot=C:/Android/android-ndk/r10d/platforms/android-21/arch-arm -LC:/Android/android-ndk/r10d/platforms/android-21/arch-arm/usr/lib @C:/Users/Damilare/GameEngine/Meerkat/bin/android.build/cpp/obj/android-v7/all_objs C:/HaxeToolkit/haxe/lib/hxcpp/3,2,205/lib/Android/libregexp-v7.a C:/HaxeToolkit/haxe/lib/hxcpp/3,2,205/lib/Android/libstd-v7.a C:/HaxeToolkit/haxe/lib/hxcpp/3,2,205/lib/Android/libzlib-v7.a -lOpenSLES -lEGL -lGLESv1_CM -lGLESv2 -Wl,--undefined=Java_org_libsdl_app_SDLActivity_nativeInit -ldl -llog -landroid -lEGL -lGLESv2 -lGLESv1_CM -lOpenSLES C:/Android/android-ndk/r10d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi/libgnustl_static.a C:/Android/android-ndk/r10d/platforms/android-21/arch-arm/usr/lib/crtbegin_so.o C:/Android/android-ndk/r10d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.6/libgcc.a C:/Android/android-ndk/r10d/platforms/android-21/arch-arm/usr/lib/libc.so C:/Android/android-ndk/r10d/platforms/android-21/arch-arm/usr/lib/libm.so -llog -ldl
flow /
build - stopping because of errors in hxcpp compile, while building arch armv7
is that the full log? sometimes the error is reported above the line where it stops?
I have updated the error log
hmm, it seems to be an issue between the precompiled version of hxcpp stuff and the ndk prebuilt stuff.
r9d is known to be compatible with that build but - the solution is to just to rebuild the hxcpp stuff using the ndk you have set up.
haxelib path hxcpp
cd <hxcpp path>/project/
neko build.n android
The instructions are from here This will build it in place and update the prebuilt libs as needed. Note this type of compatibility issue has been resolved already in subsequent hxcpp builds but as above, not ready yet.
It works! So now I can fool around :D
@underscorediscovery flow build android --release
doesn't build APK
@darmie you're meant to be building from android studio, which handles the signing and such.
@darmie for more information on the process, have a look at the luxe set up docs, they're the same process since they use snow + flow. Android section
I might have to extend flow to fetch signing keys and automatically build apk and send it to device.
This is what Cordova and many other tools out there do. I would send a pull request as soon as I get this done.
@darmie that's not going to be pulled in so save the time :)
For one flow doesn't manage any of that by design, and for two, android studio (and the android sdk) handles all of that significantly better - you can run the gradle commands directly to build from CLI.
It's much better to use the platform native workflows, and not try to shoehorn limited subsets of them into external build processes. Every minor change they make breaks your build etc, it's not worth it, and having the full power of the platform is always better in shipping.
Alright then, by the way, I am used to doing all my stuff without Android Studio, strictly from the CLI. Thanks anyways.
On Thu, 29 Sep 2016, 23:53 Sven Bergström, notifications@github.com wrote:
@darmie https://github.com/darmie that's not going to be pulled in so save the time :)
For one flow doesn't manage any of that by design, and for two, android studio (and the android sdk) handles all of that significantly better - you can run the gradle commands directly to build from CLI.
It's much better to use the platform native workflows, and not try to shoehorn limited subsets of them into external build processes. Every minor change they make breaks your build etc, it's not worth it, and having the full power of the platform is always better in shipping.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/snowkit/snow/issues/95#issuecomment-250615166, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzwgh9qZAVGY6eqmlWQ7-lu0DfH47YIks5qvEF9gaJpZM4KI--z .
Yea, there is a workflow for that built in - you just run the gradle commands from the cli and it ties everything for you.
In other words, there's nothing to do, it does what you're looking for :)
It's the gradle command I intended to bind with the current flow run android
command. Instead of calling that separately.
On Thu, 29 Sep 2016, 23:57 Sven Bergström, notifications@github.com wrote:
In other words, there's nothing to do, it does what you're looking for :)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/snowkit/snow/issues/95#issuecomment-250615778, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzwggvSG9lSkvsKoC34OhmXwe04TqQpks5qvEJNgaJpZM4KI--z .
Yea, it doesn't belong there. Plus, the gradle command calls flow which calls haxe. So putting flow -> gradle -> flow doesn't make much sense in practice either. If you really want to call gradle via flow for some reason, use a pre or post build hook, but it's not a feature flow needs, as much as I appreciate the intent!
Ok. I understand.
On Fri, 30 Sep 2016, 00:12 Sven Bergström, notifications@github.com wrote:
Yea, it doesn't belong there. Plus, the gradle command calls flow which calls haxe. So putting flow -> gradle -> flow doesn't make much sense in practice either. If you really want to call gradle via flow for some reason, use a pre or post build hook, but it's not a feature flow needs.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/snowkit/snow/issues/95#issuecomment-250618213, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzwgoZM4Dez20-0nYBTONFzfuwPpbJXks5qvEXigaJpZM4KI--z .
I got this error when I tried to build app for Windows target.
Type not found : UserConfigDef
Here's the full detail: