Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Lelelo1 opened this issue Apr 20, 2021 · 5 comments
Closed

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

Lelelo1 opened this issue Apr 20, 2021 · 5 comments

Comments

@Lelelo1
Copy link
Owner

Lelelo1 commented Apr 20, 2021

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
Copy link
Owner Author

Lelelo1 commented Apr 20, 2021

See Gaikov/HaxeWithCppIntegrationExample#1 to set up the test cp dependency properly

@Lelelo1
Copy link
Owner Author

Lelelo1 commented Apr 21, 2021

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
Copy link
Owner Author

Lelelo1 commented Apr 21, 2021

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

@Lelelo1
Copy link
Owner Author

Lelelo1 commented Apr 21, 2021

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
Copy link
Owner Author

Lelelo1 commented Aug 28, 2021

Run native libraries
I getting help and instruction from haxiomanic: haxiomic/haxe-c-bridge#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

@Lelelo1 Lelelo1 closed this as completed Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant