Skip to content

Fix linking issues#779

Closed
alexispinson wants to merge 5 commits intodevfrom
bug_link
Closed

Fix linking issues#779
alexispinson wants to merge 5 commits intodevfrom
bug_link

Conversation

@alexispinson
Copy link
Collaborator

Fix linking issues for the camera dlls and the holovibes.exe file

@alexispinson alexispinson marked this pull request as ready for review January 9, 2025 10:22
@alexispinson
Copy link
Collaborator Author

Good for me

@alexispinson alexispinson linked an issue Jan 9, 2025 that may be closed by this pull request
Copy link
Collaborator

@Hpn4 Hpn4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For all cameras you create static libraries instead of shared so no DLL are created. So the cpack install will fail and we can't use any camera anymore.

set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /FS")


add_library("${PROJECT_NAME}" STATIC
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why STATIC ? Their would be no DLL

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I was too focused on the problem of linking of the .exe file and in my mind making static library would still create a dll and fix the linking issue, i should have tried to cpack,i will revert this and find another solution

@alexispinson alexispinson added the good first issue Good for newcomers label Jan 14, 2025
@simon-riou simon-riou closed this Jan 22, 2025
@simon-riou simon-riou deleted the bug_link branch January 22, 2025 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

good first issue Good for newcomers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants