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

CMake looking for nonexistent oF source file #17

Open
small-pants opened this issue Jun 19, 2019 · 1 comment
Open

CMake looking for nonexistent oF source file #17

small-pants opened this issue Jun 19, 2019 · 1 comment

Comments

@small-pants
Copy link

Using this on linux leads to the following CMake build errors in CLion:

Cannot find source file:

    /home/jp/openFrameworks/libs/openFrameworks/graphics/ofPolyline.cpp

   Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx
   Call Stack (most recent call first):
  /home/jp/openFrameworks/addons/ofxCMake/modules/main.cmake:45 (include)
  CMakeLists.txt:44 (include)


CMake Error: Cannot determine link language for target "of_static".
CMake Error: CMake can not determine linker language for target: of_static
CMake Error: CMake can not determine linker language for target: of_shared
CMake Error: Cannot determine link language for target "of_shared".

According to the oF repository, there is no such file ofPolyline.cpp. There is only a header and it still cannot find it.

Not sure the reason for the other errors.

@missing-user
Copy link

Some of the source files in the newer versions of OpenFrameworks have renamed a few files to the .inl Ending instead of .cpp
I changed the file endings in the following two lines in /modules/openFrameworks.cmake to make it work:

${OF_DIRECTORY_ABSOLUTE}/libs/openFrameworks/3d/ofMesh.cpp ${OF_DIRECTORY_ABSOLUTE}/libs/openFrameworks/graphics/ofPolyline.cpp
were changed to
${OF_DIRECTORY_ABSOLUTE}/libs/openFrameworks/3d/ofMesh.inl ${OF_DIRECTORY_ABSOLUTE}/libs/openFrameworks/graphics/ofPolyline.inl

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

No branches or pull requests

2 participants