Skip to content
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

Fix Compiler Errors with Clang and GCC 9+ #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Willenbrink
Copy link

This PR fixes some issues I encountered when compiling it with newer compiler versions.

  • Add this-> in front of operator(). Apparently this is no longer supported in newer GCC versions
  • Add #include <string.h>. Apparently this is no longer transitively included somewhere

In addition to these changes, on my computer the following changes were also necessary:

  • In cmake, disable: IVW_USE_SIGAR, IVW_MODULE_FONTRENDERING, IVW_TEST_UNIT_TESTS, IVW_TEST_INTEGRATION_TESTS and IVW_TEST_UNIT_TESTS_RUN_ON_BUILD
  • Remove inviwo-output/lib/freetype.so.6 and replace it with the one installed on your system, e.g. ln -s /usr/lib64/freetype.so.6 inviwo-output/lib/freetype.so.6. Use fd freetype.so.6 / to find the lib (or use find, don't know the syntax there).

Resubmit because I can't change the branch of an already existing PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant