Lelelo1 / seek-search

Haxe embedded client search
0 stars 0 forks source link

Create a debug.hxml to run seek-search with dependencies #4

Closed Lelelo1 closed 3 years ago

Lelelo1 commented 3 years ago

Try to create a fast debug.hxml so search engine dependencies (in cpp for now) can be run, without deploy to native simulators and devices.

Lelelo1 commented 3 years ago

See https://github.com/Gaikov/HaxeWithCppIntegrationExample/issues/1 to set up the test cp dependency properly

Lelelo1 commented 3 years ago

There is a way to build (static library, .lib) but run it: https://mottosso.gitbooks.io/clang/content/building_a_static_library.html. I'ts seems i'ts also needed in the example

Lelelo1 commented 3 years ago

There is instructions in how to use cpp dependency here: https://community.haxe.org/t/add-my-own-lib/2217/4

Lelelo1 commented 3 years ago

I simplified the example to have a CPP_GetMessage() get message method return std::string. It won't compile due to:

Undefined symbols for architecture x86_64: "CPP_GetMessage()", referenced from: Main_obj::main() in aea44ed0_Main.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Error: Build failed

It's the same as when I removed the line in Gaikiv's buildXml attribute

Lelelo1 commented 3 years ago

Run native libraries I getting help and instruction from haxiomanic: https://github.com/haxiomic/haxe-c-bridge/issues/33. And #9 should be completed first It could potentially be automatically tested #5, so it doesn't have to tested separately in client projects