hypersurge/awe6

Try to build on android

GoogleCodeExporter opened this issue · 4 comments

What steps will reproduce the problem?
1. Install awe6
2. Checkout awe6 svn
3. run nme build awe6.nmml android

What is the expected output? What do you see instead?
Expected building android export.

Instead lots of files compiles but finally this fails:
.
.
.
arm-linux-androideabi-g++ -I. -Iinclude 
--sysroot=/home/raul/projects/android-ndk/platforms/android-5/arch-arm 
-I/home/raul/projects/android-ndk/sources/cxx-stl/gnu-libstdc++/include 
-I/home/raul/projects/android-ndk/sources/cxx-stl/gnu-libstdc++/libs/armeabi/inc
lude -DHXCPP_SET_PROP -I/home/raul/projects/haxe/haxelib/hxcpp/2,09//include 
-Iinclude -fpic -fvisibility=hidden -ffunction-sections -funwind-tables 
-fstack-protector -fno-short-enums -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ 
-D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -D_LINUX_STDDEF_H  -Wno-psabi 
-march=armv5te -mtune=xscale -msoft-float -fomit-frame-pointer -fexceptions 
-fno-strict-aliasing -finline-limit=10000 -DANDROID -Wa,--noexecstack -O2 
-DNDEBUG -c -x c++ -frtti ./src/haxe/BaseCode.cpp 
-oobj/android/src/haxe/BaseCode.obj
arm-linux-androideabi-g++ -I. -Iinclude 
--sysroot=/home/raul/projects/android-ndk/platforms/android-5/arch-arm 
-I/home/raul/projects/android-ndk/sources/cxx-stl/gnu-libstdc++/include 
-I/home/raul/projects/android-ndk/sources/cxx-stl/gnu-libstdc++/libs/armeabi/inc
lude -DHXCPP_SET_PROP -I/home/raul/projects/haxe/haxelib/hxcpp/2,09//include 
-Iinclude -fpic -fvisibility=hidden -ffunction-sections -funwind-tables 
-fstack-protector -fno-short-enums -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ 
-D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -D_LINUX_STDDEF_H  -Wno-psabi 
-march=armv5te -mtune=xscale -msoft-float -fomit-frame-pointer -fexceptions 
-fno-strict-aliasing -finline-limit=10000 -DANDROID -Wa,--noexecstack -O2 
-DNDEBUG -c -x c++ -frtti ./src/demo/scenes/Results.cpp 
-oobj/android/src/demo/scenes/Results.obj
In file included from include/awe6/core/Tools.h:8,
                 from ./src/demo/scenes/Results.cpp:16:
include/awe6/interfaces/ITools.h: In member function 'String 
awe6::interfaces::ITools_delegate_<IMPL>::convertUpdatesToFormattedTime(int, 
hx::Null<String>) [with IMPL = awe6::core::Tools_obj]':
./src/demo/scenes/Results.cpp:213:   instantiated from here
include/awe6/interfaces/ITools.h:138: error: no matching function for call to 
'awe6::core::Tools_obj::convertUpdatesToFormattedTime(int&, hx::Null<String>&)'
include/awe6/core/Tools.h:120: note: candidates are: virtual String 
awe6::core::Tools_obj::convertUpdatesToFormattedTime(int, String)
include/awe6/interfaces/ITools.h: In member function 'String 
awe6::interfaces::ITools_delegate_<IMPL>::convertAgeToFormattedTime(int, 
hx::Null<String>) [with IMPL = awe6::core::Tools_obj]':
./src/demo/scenes/Results.cpp:213:   instantiated from here
include/awe6/interfaces/ITools.h:138: error: no matching function for call to 
'awe6::core::Tools_obj::convertAgeToFormattedTime(int&, hx::Null<String>&)'
include/awe6/core/Tools.h:123: note: candidates are: virtual String 
awe6::core::Tools_obj::convertAgeToFormattedTime(int, String)
Called from ? line 1
Called from BuildTool.hx line 1246
Called from BuildTool.hx line 554
Called from a C function
Called from BuildTool.hx line 591
Called from BuildTool.hx line 710
Called from BuildTool.hx line 746
Called from BuildTool.hx line 200
Uncaught exception - Error : 256 - build cancelled
Error: Source path "export/android/obj/libApplicationMain.so" does not exist



What version of the product are you using? On what operating system?
latest haxe (2.09)
latest nme (3.3.0)
latest awe6 (svn)

Please provide any additional information below.
I'm just trying to build demo on android, maybe to help porting on that 
platform, but I'm totally lost with this error.

Original issue reported on code.google.com by raul.fer...@gmail.com on 20 Apr 2012 at 2:09

Forgot to say, I also has hxcpp 2.09
Building against linux (my native platform). Got same error:

g++ -I. -Iinclude -c -fvisibility=hidden -O2 -fpic -fPIC -DHX_LINUX 
-DHXCPP_SET_PROP -m32 -I/home/raul/projectos/haxe/haxelib/hxcpp/2,09//include 
-x c++ -frtti ./src/demo/scenes/Results.cpp 
-oobj/linux//src/demo/scenes/Results.o
In file included from include/awe6/core/Tools.h:8:0,
                 from ./src/demo/scenes/Results.cpp:16:
include/awe6/interfaces/ITools.h: En la función miembro ‘String 
awe6::interfaces::ITools_delegate_<IMPL>::convertUpdatesToFormattedTime(int, 
hx::Null<String>) [con IMPL = awe6::core::Tools_obj]’:
./src/demo/scenes/Results.cpp:213:1:   instanciado desde aquí
include/awe6/interfaces/ITools.h:138:3: error: no se encontró una función 
coincidente para la llamada a 
‘awe6::core::Tools_obj::convertUpdatesToFormattedTime(int&, 
hx::Null<String>&)’
include/awe6/interfaces/ITools.h:138:3: nota: el candidato es:
include/awe6/core/Tools.h:120:20: nota: virtual String 
awe6::core::Tools_obj::convertUpdatesToFormattedTime(int, String)
include/awe6/core/Tools.h:120:20: nota:   no hay una conversión conocida para 
el argumento 2 de ‘hx::Null<String>’ a ‘String’
include/awe6/interfaces/ITools.h: En la función miembro ‘String 
awe6::interfaces::ITools_delegate_<IMPL>::convertAgeToFormattedTime(int, 
hx::Null<String>) [con IMPL = awe6::core::Tools_obj]’:
./src/demo/scenes/Results.cpp:213:1:   instanciado desde aquí
include/awe6/interfaces/ITools.h:138:3: error: no se encontró una función 
coincidente para la llamada a 
‘awe6::core::Tools_obj::convertAgeToFormattedTime(int&, hx::Null<String>&)’
include/awe6/interfaces/ITools.h:138:3: nota: el candidato es:
include/awe6/core/Tools.h:123:20: nota: virtual String 
awe6::core::Tools_obj::convertAgeToFormattedTime(int, String)
include/awe6/core/Tools.h:123:20: nota:   no hay una conversión conocida para 
el argumento 2 de ‘hx::Null<String>’ a ‘String’
Called from ? line 1
Called from BuildTool.hx line 1246
Called from BuildTool.hx line 554
Called from a C function
Called from BuildTool.hx line 591
Called from BuildTool.hx line 710
Called from BuildTool.hx line 746
Called from BuildTool.hx line 200
Uncaught exception - Error : 256 - build cancelled
Error: Source path "export/cpp/linux/obj/ApplicationMain" does not exist


So I'm thinking that may be thats a bug on hxcpp ...

Original comment by raul.fer...@gmail.com on 20 Apr 2012 at 2:28

Yeah, its a bug on hxcpp. Sorry for commiting here.

Original comment by raul.fer...@gmail.com on 20 Apr 2012 at 2:43

[deleted comment]
Thanks for feedback.  We also are having similar issues with cpp related builds 
since 2.09.

Original comment by robert.f...@hypersurge.com on 20 Apr 2012 at 8:45

  • Changed state: Invalid