-
Notifications
You must be signed in to change notification settings - Fork 41
Conversation
|
@nrnhines : everything works if build static library of coreneuron (which is default). With shared library if I build as: Then what produced is following and I get link error while running: If I build as submodule then everything works because I believe Cmake of neuron has some extra settings that influence how libraries/dlls are generated. Do you remember what we have done in NEURON to properly generate dlls? |
|
I wonder if I'm using my own wrappers for dlopen, etc., implemented in and and it is part of the liboc_la_SOURCES in nrn/src/oc/Makefile.am |
|
And also look at how dlopen is declared in src/nrniv/nrnpy.cpp with |
|
@nrnhines : note that we are not using dlopen in coreneuron. The issue is coming from the fact that the lib directory only contains |
|
Ok, got it! It's following CMake property: |
* Use CMAKE_SHARED_LIBRARY_SUFFIX instead of .so (required for windows/mingw) * Fix for exe suffix and make sure to have dlls in bin directory * adjust runtime output only for coreneuron directory * define mingw definition CoreNEURON Repo SHA: BlueBrain/CoreNeuron@cb56a28


coreneuron now build as submodule of neuron on windows and runs ring test: