-
Notifications
You must be signed in to change notification settings - Fork 43
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
How are we supposed to build a project? #60
Comments
The easiest way is to use a BinaryBuilder script. For example, here is what I do for development: The |
The CxxWrap binaries are built using BinaryBuilder, which means that they are almost always incompatible for linking against using the native development tools on users' machines. The only possible options are to either build libcxxwrap-julia yourself and use Overrides.toml, or use BinaryBuilder even for local development, as suggested by @jstrube (which seems like a pretty nice way, actually, I should try it ;) |
How would i go about using the BinaryBuilder to build CxxWrap with this? I read the example @jstrube wrote and it appears id modify that file to produce CxxWrap correct? |
I usually deal with this in three pieces:
|
Another option now is to use Docker, see the first part of the workshop here: |
How exactly am I supposed to build a project using this library, only installing
CxxWrap
from Pkg?So far I have been installing CxxWrap, then libcxxwrap from the repo, and then I also buid my own libcxxwrap just for the sake of linking it. Of course this cannot be the proper way.
I am not interested at all in using any special versions of libcxxwrap. I just want to be a user of this library, and link to whatever the latest release of the
CxxWrap
package requires.How do I find out what is the directory I need to feed to cmake via
JlCxx_DIR=...
?Right now I think I have only installed CxxWrap, and then I try to build my project using
cmake .. -DJlCxx_DIR=$HOME/.julia/packages/CxxWrap/lDNAy/deps/usr/lib/cmake/JlCxx
. Everything seems to go well, but then I tryusing
my package and I hit some god-awful runtime error. Right now I'm gettingundefined symbol: _ZN5jlcxx19FunctionWrapperBase19set_pointer_indicesEv
which looks to me like I'm linking to the wrong library. What am I doing wrong?
The text was updated successfully, but these errors were encountered: