chmod222 / libcmmk

An unofficial LED control API for Coolermaster Masterkey keyboards
GNU Lesser General Public License v3.0
100 stars 24 forks source link

Error during build: install TARGETS given no OBJECTS DESTINATION for object library target #19

Open mikebocian opened 4 years ago

mikebocian commented 4 years ago

Hi there,

I would like to code something using your library, but unfortunately I cannot build this using the provided steps. I am using Linux Mint.

The console output and some basic info about my setup is pasted here.

sudo cmake -DCMAKE_INSTALL_PREFIX=dist ..

CMake Error at CMakeLists.txt:50 (install):
  install TARGETS given no OBJECTS DESTINATION for object library target
  "cmmk_obj".

-- Configuring incomplete, errors occurred!
See also "/home/bocian/projects/libcmmk/build/CMakeFiles/CMakeOutput.log".
 ✗ uname -a
Linux bocian 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
✗ cmake -version
cmake version 3.10.2
✗ make -version
GNU Make 4.1
Built for x86_64-pc-linux-gnu
quornian commented 4 years ago

I hit this too.

Removing "cmmk_obj" from that line (50) in CMakeLists.txt did the trick for me. That and specifying -DCMAKE_C_FLAGS=-fPIC after seeing the next error with the suggestion "recompile with -fPIC".