-
Notifications
You must be signed in to change notification settings - Fork 196
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
hxcpp, ssl and Mbedtl #777
Comments
(addendum: i could #if out all of the remote image loading, but it seems drastic, http is fine, https is the issue wrt to the dependency) |
What are the issues? |
Howdy. I'm the friend @ianharrigan mentioned. I ended up band-aiding things for now on my end by modifying hxcpp\4,0,8\src\hx\libs\ssl\Build.xml so that the appropriate libs would be linked when building static. Is it possible the current way you guys have it is in error in using unless="static_link" for those libs? Here's my change for reference, just modifying the lib tags:
` |
I'm currently using haxe->hxcpp->static_lib for an iOS project. And that lib is actively using HTTPS and it works fine. |
Correct me if im wrong, but are "fix linking" and "avoid linking" mutually exclusive? Shouldnt any 3rd party lib be optional? |
Are you building the hxcpp-gen code into a library (rather than exe/dll)? If this is the case, the windows libraries (ws2_32.lib etc) do not (can not) go in the lib, they must be added to the linking of the final exe, presumably by whatever system uses the hxcpp-gen library. |
For what it's worth, only the crypt32.lib tag needs |
I stumbled upon a
Mbedtl
dependency in hxcpp with regard to SSL inside hxcpp.A little background: I know a friend who is trying to use haxeui as a static .lib via hxcpp, all works for the most part except there are references to ssl which dont play nice. Thanks to @Gama11 i could drill down and find out its based on sockets / http (which haxeui's ImageLoader uses). All fine.
My question is would it be advantageous to be able to
#if
ssl out of the picture (opt in to remove) if you didnt want to hit this dependency. Another option, ofc, would be to makeMbedtl
work correctly statically, but it seems that an ability to "opt out" of any third party libs seems advantageous here (and in general).Wondering what the thoughts are on this?
Cheers,
Ian
The text was updated successfully, but these errors were encountered: