Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Build CGAL 5.6.1 to shared library #8456

Closed
Akira-Tsunami opened this issue Sep 3, 2024 · 1 comment
Closed

Build CGAL 5.6.1 to shared library #8456

Akira-Tsunami opened this issue Sep 3, 2024 · 1 comment

Comments

@Akira-Tsunami
Copy link

I'm new to CGAL. I want to incorporate the library part of CGAL to the my custom plugin of Unreal Engine. At first, I tried to use it as headers-only library; however, CGAL has dependency on boost and boost has many naming violation with the macros/functions/symbols of Unreal itself when compiling, so it didn't work.
So now I'm trying to build CGAL 5.6.1 to shared library (.dll in Windows), but I can't figure out how to do like this. I tried to set the variable like BUILD_SHARED_LIBS manifested in documentation. But it still didn't work. When I configured out and generated, the project just produced another identical headers-only library. And I browsed the content of cmake-related files that seems there are very few hints about this variable BUILD_SHARED_LIBS (sorry I have no much experience with CMake). And I found the default is headers-only since CGAL 5.0.
So my question is there option to build CGAL 5.6.1 to shared library? If yes, how to enable it? Or I have to resort to the older version?
image

@afabri
Copy link
Member

afabri commented Sep 4, 2024

Hello, this would not help you. The built library contained only a few global non-template functions and some global variables. Whart you have to do instead is build a shared library where inside you use CGAL, but the exported interfaces are CGAL-free,

Can you shatre a minimal project on github which exposes the problem you experience.,We then could have a look.

@CGAL CGAL locked and limited conversation to collaborators Sep 4, 2024
@lrineau lrineau converted this issue into discussion #8463 Sep 4, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants