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

ofMesh source file camke error #16

Open
cansik opened this issue Jun 25, 2018 · 3 comments
Open

ofMesh source file camke error #16

cansik opened this issue Jun 25, 2018 · 3 comments

Comments

@cansik
Copy link

cansik commented Jun 25, 2018

When I create a new project with the project generator (without plugins) and add the CMakeLists.txt and then open it in clion, there is already an error because of the ofMesh library:

"/Users/cansik/Library/Application Support/JetBrains/Toolbox/apps/CLion/ch-0/181.5281.33/CLion.app/Contents/bin/cmake/bin/cmake" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /Users/cansik/git/temp/ColorExperiments
-- The C compiler identification is AppleClang 7.3.0.7030029
-- The CXX compiler identification is AppleClang 7.3.0.7030029
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
CMake Error at /Users/cansik/git/libs/openFrameworks/addons/ofxCMake/modules/config.cmake:13 (add_library):
  Cannot find source file:

    /Users/cansik/git/libs/openFrameworks/libs/openFrameworks/3d/ofMesh.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):
  /Users/cansik/git/libs/openFrameworks/addons/ofxCMake/modules/main.cmake:45 (include)
  CMakeLists.txt:44 (include)


CMake Error: CMake can not determine linker language for target: of_shared
CMake Error: Cannot determine link language for target "of_shared".
CMake Error: Cannot determine link language for target "of_static".
CMake Error: CMake can not determine linker language for target: of_static
-- Generating done
-- Build files have been written to: /Users/cansik/git/temp/ColorExperiments/cmake-build-debug
Unable to determine product file path for target of_shared. Running and debugging will be unavailable.
Unable to determine product file path for target of_static. Running and debugging will be unavailable.

[Failed to reload]
@cansik
Copy link
Author

cansik commented Jun 25, 2018

It seems that of has now inlined some files, so your list is not actual anymore. Maybe it makes sense to generate the openFrameworks.cmake by a script for each version.

@austince
Copy link

Did you find a fix for this @cansik ?

@austince
Copy link

Perhaps something like this would work:

file(GLOB OF_SOURCE_FILES "${OF_DIRECTORY_ABSOLUTE}/libs/openFrameworks/**/*.cpp")

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