| Issue 20: | Get "static" link working on all platforms, explictly look next to exe for dlls. | |
| 2 people starred this issue and may be notified of changes. | Back to list |
Hi, Unix is spectacularly unhelpful with DLLS if you don't "install" them. The logic for finding the DLL is in $HXCPP/src/hx/Lib.cpp. You can set the environment variable "HXCPP_LOAD_DEBUG" to see what it is trying to do. First it tries the name without a path - this will work if it finds it finds it in the LD_LIBRARY_PATH, but (unlike windows) it will not find the dll "next" to the exe. I think I should explicitly fix this. Then it tries under $HXCPP, if you have set that variable. There is an apache module that lets you set variables, so this may help (also may help setting LD_LIBRARY_PATH) Then it looks to see if you have a runnable "haxelib", so it can try "haxelib path hxcpp", and look for it under there. Then it looks if haxelib returns a path for the library name. You could modify this file yourself, and your change will be compiled into your exe. The static code has really only been tested on the iphone. You will need to build the static versions of the "standard" ndll library files too. You can add extra build flags the the system using your own ~/.hxcpp_config.xml file, which I have not fully documented yet. There is a small bit in https://code.google.com/p/hxcpp/source/browse/trunk/build-tool/ BuildCommon.xml Hugh
Jan 17, 2011
Project Member
#1
gameh...@gmail.com
Status:
Started
Jan 19, 2011
So you can create static libraries now - but I have not tested how you can use them.
Status:
Fixed
|