Bulding a shared library on Windows
-
- Posts: 3
- Joined: Sat Aug 11, 2018 5:52 am
Bulding a shared library on Windows
I have managed to create a visual studio project using cmake, which builds and generates various static libraries. However, I need a DLL so that I can use it with scikit-cuda.
How can I go about producing a DLL instead? I couldn't see any options within CMake.
Thanks!
How can I go about producing a DLL instead? I couldn't see any options within CMake.
Thanks!
Re: Bulding a shared library on Windows
I don't have experience making DLLs on Windows, but this post from CMake may help.
https://blog.kitware.com/create-dlls-on ... l-feature/
-mark
https://blog.kitware.com/create-dlls-on ... l-feature/
-mark
-
- Posts: 3
- Joined: Sat Aug 11, 2018 5:52 am
Re: Bulding a shared library on Windows
That works, thanks!
-
- Posts: 16
- Joined: Wed Oct 31, 2018 12:06 pm
Re: Bulding a shared library on Windows
Hi jlangworthy,
Would you kindly attach here (or post a link to) the end result CMakeLists.txt you used? Both to compile MAGMA, and then to compile your own code using MAGMA later?
Thank you
Would you kindly attach here (or post a link to) the end result CMakeLists.txt you used? Both to compile MAGMA, and then to compile your own code using MAGMA later?
Thank you
-
- Posts: 1
- Joined: Thu Nov 29, 2018 2:57 am
- Location: Mumbai
- Contact:
Re: Bulding a shared library on Windows
Hello, everyone!
This is my first post, so hopefully this will help you.
https://cmake.org/cmake/help/v3.4/prop_ ... MBOLS.html
This is my first post, so hopefully this will help you.
https://cmake.org/cmake/help/v3.4/prop_ ... MBOLS.html
-
- Posts: 16
- Joined: Wed Oct 31, 2018 12:06 pm
Re: Bulding a shared library on Windows
Hi shriniwas852, welcome.
Thank you for your effort.
A simple working example CMakeLists.txt based on the one you're using, would be more helpful.
Kind regards,
Thank you for your effort.
A simple working example CMakeLists.txt based on the one you're using, would be more helpful.
Kind regards,
Re: Bulding a shared library on Windows
I would may be try to narrow down the issue to system level bindings.
DLL (.dll library) should get initialized by the value of the CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS variable if it is set when a target is created.
This post may help you to set env in Windows: https://hows.tech/set-environment-variables-windows/
In addition, It would be helpful if you can attach your logs, better if I get to see complete dump of traces.
DLL (.dll library) should get initialized by the value of the CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS variable if it is set when a target is created.
This post may help you to set env in Windows: https://hows.tech/set-environment-variables-windows/
In addition, It would be helpful if you can attach your logs, better if I get to see complete dump of traces.