[hxcpp] problem building libs from source

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[hxcpp] problem building libs from source

kabutoboy
This post has NOT been accepted by the mailing list yet.
Hi! I have about 3 problems to ask.

When I try to build android libs without using sudo
(haxelib run hxcpp BuildLibs.xml -Dandroid)
The problem is it doesnt has a permission to create a directory
(Fatal error: can't create obj/android/libs/std/Sys.obj: Permission denied)

When I try to build using sudo
(sudo haxelib run hxcpp BuildLibs.xml -Dandroid)
It seems it cannot find the .hxcpp_config.xml, causing this error
(sh: arm-linux-androideabi-g++: not found)

And when I try to build "sudo haxelib run hxcpp BuildLibs.xml"
It runs fine until a problem occurs

g++ -o ../bin/Linux/nekoapi.ndll -shared -fpic -fPIC -m32 -W,l--unresolved-symbols=report-all -Xlinker --no-undefined @all_objs -L -lneko -ldl
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_bool':
NekoAPI.cpp:(.text+0x64): undefined reference to `val_true'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_alloc_null':
NekoAPI.cpp:(.text+0xe1): undefined reference to `val_null'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_alloc_bool':
NekoAPI.cpp:(.text+0x106): undefined reference to `val_false'
NekoAPI.cpp:(.text+0x112): undefined reference to `val_true'
obj/linux//libs/nekoapi/NekoAPI.o: In function `global constructors keyed to NekoAPI.cpp':
NekoAPI.cpp:(.text+0x27c): undefined reference to `neko_val_id'
NekoAPI.cpp:(.text+0x290): undefined reference to `neko_val_id'
NekoAPI.cpp:(.text+0x2a4): undefined reference to `neko_val_id'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_id':
NekoAPI.cpp:(.text+0x2d9): undefined reference to `neko_val_id'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_free_root':
NekoAPI.cpp:(.text+0x309): undefined reference to `neko_free_root'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_alloc_root':
NekoAPI.cpp:(.text+0x33a): undefined reference to `neko_alloc_root'
obj/linux//libs/nekoapi/NekoAPI.o: In function `neko_api_init2(_value*, _value*)':
NekoAPI.cpp:(.text+0x384): undefined reference to `val_null'
obj/linux//libs/nekoapi/NekoAPI.o: In function `neko_api_init(_value*)':
NekoAPI.cpp:(.text+0x3b4): undefined reference to `val_null'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_gc_ptr':
NekoAPI.cpp:(.text+0x3e0): undefined reference to `neko_val_gc'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_gc':
NekoAPI.cpp:(.text+0x410): undefined reference to `neko_val_gc'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_alloc_private(int)':
NekoAPI.cpp:(.text+0x439): undefined reference to `neko_alloc_private'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_hx_alloc':
NekoAPI.cpp:(.text+0x469): undefined reference to `neko_alloc'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_kind_share':
NekoAPI.cpp:(.text+0x4a0): undefined reference to `neko_kind_share'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_field_numeric':
NekoAPI.cpp:(.text+0x4d0): undefined reference to `neko_val_field'
NekoAPI.cpp:(.text+0x4ef): undefined reference to `val_true'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_field':
NekoAPI.cpp:(.text+0x540): undefined reference to `neko_val_field'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_array_value':
NekoAPI.cpp:(.text+0x581): undefined reference to `neko_val_field'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_array_set_i':
NekoAPI.cpp:(.text+0x5c1): undefined reference to `neko_val_field'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_array_i':
NekoAPI.cpp:(.text+0x619): undefined reference to `neko_val_field'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_array_size':
NekoAPI.cpp:(.text+0x664): undefined reference to `neko_val_field'
obj/linux//libs/nekoapi/NekoAPI.o:NekoAPI.cpp:(.text+0x6b1): more undefined references to `neko_val_field' follow
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_wstring':
NekoAPI.cpp:(.text+0x756): undefined reference to `neko_alloc_private'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_type':
NekoAPI.cpp:(.text+0x7ee): undefined reference to `neko_val_field'
NekoAPI.cpp:(.text+0x80e): undefined reference to `neko_val_field'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_alloc_field':
NekoAPI.cpp:(.text+0x857): undefined reference to `neko_alloc_field'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_iter_fields':
NekoAPI.cpp:(.text+0x897): undefined reference to `neko_val_iter_fields'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_field_name':
NekoAPI.cpp:(.text+0x8c9): undefined reference to `neko_val_field_name'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_ocallN':
NekoAPI.cpp:(.text+0x90e): undefined reference to `neko_val_ocallN'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_ocall2':
NekoAPI.cpp:(.text+0x94e): undefined reference to `neko_val_ocall2'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_ocall1':
NekoAPI.cpp:(.text+0x987): undefined reference to `neko_val_ocall1'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_ocall0':
NekoAPI.cpp:(.text+0x9c0): undefined reference to `neko_val_ocall0'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_callN':
NekoAPI.cpp:(.text+0x9f7): undefined reference to `neko_val_callN'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_call3':
NekoAPI.cpp:(.text+0xa3e): undefined reference to `neko_val_call3'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_call2':
NekoAPI.cpp:(.text+0xa77): undefined reference to `neko_val_call2'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_call1':
NekoAPI.cpp:(.text+0xab0): undefined reference to `neko_val_call1'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_call0':
NekoAPI.cpp:(.text+0xad9): undefined reference to `neko_val_call0'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_buffer':
NekoAPI.cpp:(.text+0xb10): undefined reference to `neko_val_buffer'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_buffer_append_char':
NekoAPI.cpp:(.text+0xb54): undefined reference to `neko_buffer_append_sub'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_buffer_append_sub':
NekoAPI.cpp:(.text+0xb87): undefined reference to `neko_buffer_append_sub'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_buffer_append':
NekoAPI.cpp:(.text+0xbc0): undefined reference to `neko_buffer_append'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_buffer_to_string':
NekoAPI.cpp:(.text+0xbe9): undefined reference to `neko_buffer_to_string'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_buffer_val':
NekoAPI.cpp:(.text+0xc19): undefined reference to `neko_buffer_to_string'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_alloc_buffer':
NekoAPI.cpp:(.text+0xc49): undefined reference to `neko_alloc_buffer'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_to_buffer':
NekoAPI.cpp:(.text+0xc81): undefined reference to `neko_alloc_buffer'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_alloc_buffer_len':
NekoAPI.cpp:(.text+0xcb4): undefined reference to `neko_alloc_private'
NekoAPI.cpp:(.text+0xcd6): undefined reference to `neko_alloc_buffer'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_alloc_array':
NekoAPI.cpp:(.text+0xd1e): undefined reference to `neko_val_call1'
NekoAPI.cpp:(.text+0xd2c): undefined reference to `neko_alloc_array'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_alloc_string_len':
NekoAPI.cpp:(.text+0xd6a): undefined reference to `neko_copy_string'
NekoAPI.cpp:(.text+0xd7e): undefined reference to `neko_val_call1'
NekoAPI.cpp:(.text+0xd90): undefined reference to `neko_copy_string'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_alloc_wstring_len':
NekoAPI.cpp:(.text+0xdc1): undefined reference to `neko_alloc_private'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_dup_string':
NekoAPI.cpp:(.text+0xe3b): undefined reference to `neko_alloc_private'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_alloc_int32':
NekoAPI.cpp:(.text+0xe8b): undefined reference to `neko_k_int32'
NekoAPI.cpp:(.text+0xe95): undefined reference to `neko_alloc_abstract'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_alloc_best_int':
NekoAPI.cpp:(.text+0xed6): undefined reference to `neko_k_int32'
NekoAPI.cpp:(.text+0xee0): undefined reference to `neko_alloc_abstract'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_alloc_abstract':
NekoAPI.cpp:(.text+0xf10): undefined reference to `neko_alloc_abstract'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_alloc_empty_object':
NekoAPI.cpp:(.text+0xf3a): undefined reference to `neko_alloc_object'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_alloc_float':
NekoAPI.cpp:(.text+0xf69): undefined reference to `neko_alloc_float'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_throw':
NekoAPI.cpp:(.text+0xf99): undefined reference to `neko_val_throw'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_hx_error':
NekoAPI.cpp:(.text+0xfcc): undefined reference to `neko_alloc_string'
NekoAPI.cpp:(.text+0xfe6): undefined reference to `_neko_failure'
obj/linux//libs/nekoapi/NekoAPI.o: In function `haxe_alloc_string(char const*)':
NekoAPI.cpp:(.text+0x1009): undefined reference to `neko_alloc_string'
NekoAPI.cpp:(.text+0x1021): undefined reference to `neko_val_call1'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_hx_fail':
NekoAPI.cpp:(.text+0x106f): undefined reference to `_neko_failure'
obj/linux//libs/nekoapi/NekoAPI.o: In function `api_val_call0_traceexcept':
NekoAPI.cpp:(.text+0x10b4): undefined reference to `val_null'
collect2: ld returned 1 exit status
Called from ? line 1
Called from BuildTool.hx line 1100
Called from BuildTool.hx line 501
Called from a C function
Called from BuildTool.hx line 538
Called from BuildTool.hx line 657
Called from BuildTool.hx line 740
Called from BuildTool.hx line 276
Uncaught exception - Error : 256 - build cancelled

Any idea?