frankheckenbach / ftgl

fork from http://sourceforge.net/projects/ftgl
Other
24 stars 13 forks source link

CMake build fails #11

Open AMDmi3 opened 3 years ago

AMDmi3 commented 3 years ago

FreeBSD 12.1, cmake 3.17.3, ftgl 2.4.0:

-- The C compiler identification is Clang 8.0.1
-- The CXX compiler identification is Clang 8.0.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /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: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Freetype: /usr/local/lib/libfreetype.so (found version "2.10.2") 
-- Found OpenGL: /usr/local/lib/libGL.so   
-- Found Doxygen: /usr/local/bin/doxygen (found version "1.8.15") found components: doxygen dot 
-- Could NOT find CxxTest (missing: CXXTEST_INCLUDE_DIR CXXTEST_PYTHON_TESTGEN_EXECUTABLE) 
-- Configuring done
CMake Error at src/CMakeLists.txt:120 (ADD_LIBRARY):
  Cannot find source file:

    FTLibrary.h

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx

CMake Error at src/CMakeLists.txt:120 (ADD_LIBRARY):
  No SOURCES given to target: ftgl

CMake Generate step failed.  Build files cannot be regenerated correctly.
frankheckenbach commented 3 years ago

Just FYI, I don't work with FTGL anymore, see https://github.com/frankheckenbach/ftgl/issues/10 (and since I didn't use CMake, I might not have been able to help anyway). I hope someone else can help you.

AMDmi3 commented 3 years ago

Seen that, just left an issue for possible contributors or fork.

Eonfge commented 3 years ago

There is actually a commit on the master-branch that addresses the issue: https://github.com/frankheckenbach/ftgl/commit/835f2ba7911a6c15a1a314d5e3267fa089b5a319

I fixed it by adding this to the build script:

sed -i '29d' ./src/CMakeLists.txt