Skip to content

Can't compile on OS X 10.8.2 #65

Open
JS210 opened this Issue Feb 12, 2013 · 7 comments

3 participants

@JS210
JS210 commented Feb 12, 2013

Hi,

I followed the instructions in the readme, installed everything that needed to be installed. Then downloaded the emokit-master, ran "cmake ." and "make", no problems.

I then used cmake/make, no problems. Then tried to compile the emokitd.c using gcc and received the following error:

emokitd.c:12:27: error: emokit/emokit.h: No such file or directory
emokitd.c: In function ‘main’:
emokitd.c:19: warning: assignment makes pointer from integer without a cast
emokitd.c:20: error: ‘EMOKIT_VID’ undeclared (first use in this function)
emokitd.c:20: error: (Each undeclared identifier is reported only once
emokitd.c:20: error: for each function it appears in.)
emokitd.c:20: error: ‘EMOKIT_PID’ undeclared (first use in this function)
emokitd.c:34: error: storage size of ‘c’ isn’t known

I then changed the path in the include linking emokit.h (added "../../"), tried to compile again and received:

Undefined symbols for architecture x86_64:
"_emokit_create", referenced from:
_main in ccPtrAz4.o
"_emokit_get_count", referenced from:
_main in ccPtrAz4.o
"_emokit_get_next_frame", referenced from:
_main in ccPtrAz4.o
"_emokit_open", referenced from:
_main in ccPtrAz4.o
"_emokit_read_data", referenced from:
_main in ccPtrAz4.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status

As well as the following error when running 'make' again:
Linking C executable emokitd
ld: library not found for -lemokit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [emokitd] Error 1
make[1]: *** [CMakeFiles/emokitd.dir/all] Error 2
make: *** [all] Error 2

I get the same error regardless of compiling in different architetures?

Has anybody got an idea what I'm doing wrong? Or is this a well known issue I'm unaware of?

Thanks

@MGM22
MGM22 commented May 29, 2014

Same problem.
When I try to compile emokitd.c using gcc I get the following error:

Undefined symbols for architecture x86_64:
"_emokit_create", referenced from:
_main in emokitd-627c3a.o
"_emokit_get_next_frame", referenced from:
_dbg_stream in emokitd-627c3a.o
_decrypt_loop in emokitd-627c3a.o
"_emokit_get_raw_frame", referenced from:
_decrypt_loop in emokitd-627c3a.o
"_emokit_open", referenced from:
_main in emokitd-627c3a.o
"_emokit_read_data", referenced from:
_dbg_stream in emokitd-627c3a.o
_decrypt_loop in emokitd-627c3a.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Were you able to solve it?
Thanks

@olorin
OpenYou member
olorin commented May 29, 2014

Does cmake . && make not build emokitd? Should be under bin/.

@MGM22
MGM22 commented May 29, 2014

I get the following problem when I do cmake . && make

Linking C executable emokitd
ld: library not found for -lemokit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [emokitd] Error 1
make[1]: *** [CMakeFiles/emokitd.dir/all] Error 2
make: *** [all] Error 2
@olorin
OpenYou member
olorin commented May 30, 2014

Sounds like your linker path is bad; not sure of the probable cause for that on OS X. Can you try setting EMOKIT_BUILD_SHARED_LIBS=1 and running cmake and make again? Also, can you run cmake and make with --trace and copy the output here?

@MGM22
MGM22 commented May 30, 2014

I tried setting EMOKIT_BUILD_SHARED_LIBS=1 and it didn't work.

I copy below the trace of make -d, because cmake gives no errors.

GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0
Reading makefiles...
Reading makefile `Makefile'...
Updating makefiles....
 Considering target file `Makefile'.
  Looking for an implicit rule for `Makefile'.
  Trying pattern rule with stem `Makefile'.
  Trying implicit prerequisite `Makefile,v'.
  Trying pattern rule with stem `Makefile'.
  Trying implicit prerequisite `RCS/Makefile,v'.
  Trying pattern rule with stem `Makefile'.
  Trying implicit prerequisite `RCS/Makefile'.
  Trying pattern rule with stem `Makefile'.
  Trying implicit prerequisite `s.Makefile'.
  Trying pattern rule with stem `Makefile'.
  Trying implicit prerequisite `SCCS/s.Makefile'.
  No implicit rule found for `Makefile'.
  Finished prerequisites of target file `Makefile'.
 No need to remake target `Makefile'.
Updating goal targets....
Considering target file `default_target'.
 File `default_target' does not exist.
  Considering target file `all'.
   File `all' does not exist.
    Considering target file `cmake_check_build_system'.
     File `cmake_check_build_system' does not exist.
     Finished prerequisites of target file `cmake_check_build_system'.
    Must remake target `cmake_check_build_system'.
Putting child 0x7fb748c0de10 (cmake_check_build_system) PID 436 on the chain.
Live child 0x7fb748c0de10 (cmake_check_build_system) PID 436 
Reaping winning child 0x7fb748c0de10 PID 436 
Removing child 0x7fb748c0de10 PID 436 from chain.
    Successfully remade target file `cmake_check_build_system'.
   Finished prerequisites of target file `all'.
  Must remake target `all'.
Putting child 0x7fb748c0e530 (all) PID 437 on the chain.
Live child 0x7fb748c0e530 (all) PID 437 
Reaping winning child 0x7fb748c0e530 PID 437 
Live child 0x7fb748c0e530 (all) PID 438 
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0
Reading makefiles...
Reading makefile `CMakeFiles/Makefile2'...
Updating makefiles....
 Considering target file `CMakeFiles/Makefile2'.
  Looking for an implicit rule for `CMakeFiles/Makefile2'.
  Trying pattern rule with stem `Makefile2'.
  Trying implicit prerequisite `CMakeFiles/Makefile2,v'.
  Trying pattern rule with stem `Makefile2'.
  Trying implicit prerequisite `CMakeFiles/RCS/Makefile2,v'.
  Trying pattern rule with stem `Makefile2'.
  Trying implicit prerequisite `CMakeFiles/RCS/Makefile2'.
  Trying pattern rule with stem `Makefile2'.
  Trying implicit prerequisite `CMakeFiles/s.Makefile2'.
  Trying pattern rule with stem `Makefile2'.
  Trying implicit prerequisite `CMakeFiles/SCCS/s.Makefile2'.
  No implicit rule found for `CMakeFiles/Makefile2'.
  Finished prerequisites of target file `CMakeFiles/Makefile2'.
 No need to remake target `CMakeFiles/Makefile2'.
Updating goal targets....
Considering target file `all'.
 File `all' does not exist.
  Considering target file `CMakeFiles/emokitd.dir/all'.
   File `CMakeFiles/emokitd.dir/all' does not exist.
   Finished prerequisites of target file `CMakeFiles/emokitd.dir/all'.
  Must remake target `CMakeFiles/emokitd.dir/all'.
Putting child 0x7fe8d840c490 (CMakeFiles/emokitd.dir/all) PID 439 on the chain.
Live child 0x7fe8d840c490 (CMakeFiles/emokitd.dir/all) PID 439 
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0
Reading makefiles...
Reading makefile `CMakeFiles/emokitd.dir/build.make'...
Reading makefile `CMakeFiles/emokitd.dir/depend.make' (search path) (no ~ expansion)...
Reading makefile `CMakeFiles/emokitd.dir/progress.make' (search path) (no ~ expansion)...
Reading makefile `CMakeFiles/emokitd.dir/flags.make' (search path) (no ~ expansion)...
Updating makefiles....
 Considering target file `CMakeFiles/emokitd.dir/flags.make'.
  Looking for an implicit rule for `CMakeFiles/emokitd.dir/flags.make'.
  Trying pattern rule with stem `flags.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/flags.make,v'.
  Trying pattern rule with stem `flags.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/flags.make,v'.
  Trying pattern rule with stem `flags.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/flags.make'.
  Trying pattern rule with stem `flags.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/s.flags.make'.
  Trying pattern rule with stem `flags.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/SCCS/s.flags.make'.
  No implicit rule found for `CMakeFiles/emokitd.dir/flags.make'.
  Finished prerequisites of target file `CMakeFiles/emokitd.dir/flags.make'.
 No need to remake target `CMakeFiles/emokitd.dir/flags.make'.
 Considering target file `CMakeFiles/emokitd.dir/progress.make'.
  Looking for an implicit rule for `CMakeFiles/emokitd.dir/progress.make'.
  Trying pattern rule with stem `progress.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/progress.make,v'.
  Trying pattern rule with stem `progress.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/progress.make,v'.
  Trying pattern rule with stem `progress.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/progress.make'.
  Trying pattern rule with stem `progress.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/s.progress.make'.
  Trying pattern rule with stem `progress.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/SCCS/s.progress.make'.
  No implicit rule found for `CMakeFiles/emokitd.dir/progress.make'.
  Finished prerequisites of target file `CMakeFiles/emokitd.dir/progress.make'.
 No need to remake target `CMakeFiles/emokitd.dir/progress.make'.
 Considering target file `CMakeFiles/emokitd.dir/depend.make'.
  Looking for an implicit rule for `CMakeFiles/emokitd.dir/depend.make'.
  Trying pattern rule with stem `depend.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/depend.make,v'.
  Trying pattern rule with stem `depend.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/depend.make,v'.
  Trying pattern rule with stem `depend.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/depend.make'.
  Trying pattern rule with stem `depend.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/s.depend.make'.
  Trying pattern rule with stem `depend.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/SCCS/s.depend.make'.
  No implicit rule found for `CMakeFiles/emokitd.dir/depend.make'.
  Finished prerequisites of target file `CMakeFiles/emokitd.dir/depend.make'.
 No need to remake target `CMakeFiles/emokitd.dir/depend.make'.
 Considering target file `CMakeFiles/emokitd.dir/build.make'.
  Looking for an implicit rule for `CMakeFiles/emokitd.dir/build.make'.
  Trying pattern rule with stem `build.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/build.make,v'.
  Trying pattern rule with stem `build.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/build.make,v'.
  Trying pattern rule with stem `build.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/build.make'.
  Trying pattern rule with stem `build.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/s.build.make'.
  Trying pattern rule with stem `build.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/SCCS/s.build.make'.
  No implicit rule found for `CMakeFiles/emokitd.dir/build.make'.
  Finished prerequisites of target file `CMakeFiles/emokitd.dir/build.make'.
 No need to remake target `CMakeFiles/emokitd.dir/build.make'.
Updating goal targets....
Considering target file `CMakeFiles/emokitd.dir/depend'.
 File `CMakeFiles/emokitd.dir/depend' does not exist.
 Finished prerequisites of target file `CMakeFiles/emokitd.dir/depend'.
Must remake target `CMakeFiles/emokitd.dir/depend'.
Putting child 0x7f8ea140d530 (CMakeFiles/emokitd.dir/depend) PID 440 on the chain.
Live child 0x7f8ea140d530 (CMakeFiles/emokitd.dir/depend) PID 440 
Reaping winning child 0x7f8ea140d530 PID 440 
Removing child 0x7f8ea140d530 PID 440 from chain.
Successfully remade target file `CMakeFiles/emokitd.dir/depend'.
Reaping winning child 0x7fe8d840c490 PID 439 
Live child 0x7fe8d840c490 (CMakeFiles/emokitd.dir/all) PID 442 
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0
Reading makefiles...
Reading makefile `CMakeFiles/emokitd.dir/build.make'...
Reading makefile `CMakeFiles/emokitd.dir/depend.make' (search path) (no ~ expansion)...
Reading makefile `CMakeFiles/emokitd.dir/progress.make' (search path) (no ~ expansion)...
Reading makefile `CMakeFiles/emokitd.dir/flags.make' (search path) (no ~ expansion)...
Updating makefiles....
 Considering target file `CMakeFiles/emokitd.dir/flags.make'.
  Looking for an implicit rule for `CMakeFiles/emokitd.dir/flags.make'.
  Trying pattern rule with stem `flags.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/flags.make,v'.
  Trying pattern rule with stem `flags.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/flags.make,v'.
  Trying pattern rule with stem `flags.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/flags.make'.
  Trying pattern rule with stem `flags.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/s.flags.make'.
  Trying pattern rule with stem `flags.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/SCCS/s.flags.make'.
  No implicit rule found for `CMakeFiles/emokitd.dir/flags.make'.
  Finished prerequisites of target file `CMakeFiles/emokitd.dir/flags.make'.
 No need to remake target `CMakeFiles/emokitd.dir/flags.make'.
 Considering target file `CMakeFiles/emokitd.dir/progress.make'.
  Looking for an implicit rule for `CMakeFiles/emokitd.dir/progress.make'.
  Trying pattern rule with stem `progress.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/progress.make,v'.
  Trying pattern rule with stem `progress.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/progress.make,v'.
  Trying pattern rule with stem `progress.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/progress.make'.
  Trying pattern rule with stem `progress.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/s.progress.make'.
  Trying pattern rule with stem `progress.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/SCCS/s.progress.make'.
  No implicit rule found for `CMakeFiles/emokitd.dir/progress.make'.
  Finished prerequisites of target file `CMakeFiles/emokitd.dir/progress.make'.
 No need to remake target `CMakeFiles/emokitd.dir/progress.make'.
 Considering target file `CMakeFiles/emokitd.dir/depend.make'.
  Looking for an implicit rule for `CMakeFiles/emokitd.dir/depend.make'.
  Trying pattern rule with stem `depend.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/depend.make,v'.
  Trying pattern rule with stem `depend.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/depend.make,v'.
  Trying pattern rule with stem `depend.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/depend.make'.
  Trying pattern rule with stem `depend.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/s.depend.make'.
  Trying pattern rule with stem `depend.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/SCCS/s.depend.make'.
  No implicit rule found for `CMakeFiles/emokitd.dir/depend.make'.
  Finished prerequisites of target file `CMakeFiles/emokitd.dir/depend.make'.
 No need to remake target `CMakeFiles/emokitd.dir/depend.make'.
 Considering target file `CMakeFiles/emokitd.dir/build.make'.
  Looking for an implicit rule for `CMakeFiles/emokitd.dir/build.make'.
  Trying pattern rule with stem `build.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/build.make,v'.
  Trying pattern rule with stem `build.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/build.make,v'.
  Trying pattern rule with stem `build.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/build.make'.
  Trying pattern rule with stem `build.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/s.build.make'.
  Trying pattern rule with stem `build.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/SCCS/s.build.make'.
  No implicit rule found for `CMakeFiles/emokitd.dir/build.make'.
  Finished prerequisites of target file `CMakeFiles/emokitd.dir/build.make'.
 No need to remake target `CMakeFiles/emokitd.dir/build.make'.
Updating goal targets....
Considering target file `CMakeFiles/emokitd.dir/build'.
 File `CMakeFiles/emokitd.dir/build' does not exist.
  Considering target file `emokitd'.
   File `emokitd' does not exist.
    Considering target file `CMakeFiles/emokitd.dir/link.txt'.
     Looking for an implicit rule for `CMakeFiles/emokitd.dir/link.txt'.
     Trying pattern rule with stem `link.txt'.
     Trying implicit prerequisite `CMakeFiles/emokitd.dir/link.txt,v'.
     Trying pattern rule with stem `link.txt'.
     Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/link.txt,v'.
     Trying pattern rule with stem `link.txt'.
     Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/link.txt'.
     Trying pattern rule with stem `link.txt'.
     Trying implicit prerequisite `CMakeFiles/emokitd.dir/s.link.txt'.
     Trying pattern rule with stem `link.txt'.
     Trying implicit prerequisite `CMakeFiles/emokitd.dir/SCCS/s.link.txt'.
     No implicit rule found for `CMakeFiles/emokitd.dir/link.txt'.
     Finished prerequisites of target file `CMakeFiles/emokitd.dir/link.txt'.
    No need to remake target `CMakeFiles/emokitd.dir/link.txt'.
    Considering target file `CMakeFiles/emokitd.dir/emokitd.o'.
      Considering target file `emokitd.c'.
       Looking for an implicit rule for `emokitd.c'.
       Trying pattern rule with stem `emokitd'.
       Trying implicit prerequisite `emokitd.w'.
       Trying pattern rule with stem `emokitd.c'.
       Trying implicit prerequisite `emokitd.c,v'.
       Trying pattern rule with stem `emokitd.c'.
       Trying implicit prerequisite `RCS/emokitd.c,v'.
       Trying pattern rule with stem `emokitd.c'.
       Trying implicit prerequisite `RCS/emokitd.c'.
       Trying pattern rule with stem `emokitd.c'.
       Trying implicit prerequisite `s.emokitd.c'.
       Trying pattern rule with stem `emokitd.c'.
       Trying implicit prerequisite `SCCS/s.emokitd.c'.
       Trying pattern rule with stem `emokitd'.
       Trying implicit prerequisite `emokitd.w'.
       Looking for a rule with intermediate file `emokitd.w'.
        Avoiding implicit rule recursion.
        Trying pattern rule with stem `emokitd.w'.
        Trying implicit prerequisite `emokitd.w,v'.
        Trying pattern rule with stem `emokitd.w'.
        Trying implicit prerequisite `RCS/emokitd.w,v'.
        Trying pattern rule with stem `emokitd.w'.
        Trying implicit prerequisite `RCS/emokitd.w'.
        Trying pattern rule with stem `emokitd.w'.
        Trying implicit prerequisite `s.emokitd.w'.
        Trying pattern rule with stem `emokitd.w'.
        Trying implicit prerequisite `SCCS/s.emokitd.w'.
       No implicit rule found for `emokitd.c'.
       Finished prerequisites of target file `emokitd.c'.
      No need to remake target `emokitd.c'.
      Pruning file `emokitd.c'.
      Considering target file `emokitd.h'.
       Looking for an implicit rule for `emokitd.h'.
       Trying pattern rule with stem `emokitd.h'.
       Trying implicit prerequisite `emokitd.h,v'.
       Trying pattern rule with stem `emokitd.h'.
       Trying implicit prerequisite `RCS/emokitd.h,v'.
       Trying pattern rule with stem `emokitd.h'.
       Trying implicit prerequisite `RCS/emokitd.h'.
       Trying pattern rule with stem `emokitd.h'.
       Trying implicit prerequisite `s.emokitd.h'.
       Trying pattern rule with stem `emokitd.h'.
       Trying implicit prerequisite `SCCS/s.emokitd.h'.
       No implicit rule found for `emokitd.h'.
       Finished prerequisites of target file `emokitd.h'.
      No need to remake target `emokitd.h'.
      Considering target file `/Applications/emokit-master/include/emokit/emokit.h'.
       Looking for an implicit rule for `/Applications/emokit-master/include/emokit/emokit.h'.
       Trying pattern rule with stem `emokit.h'.
       Trying implicit prerequisite `/Applications/emokit-master/include/emokit/emokit.h,v'.
       Trying pattern rule with stem `emokit.h'.
       Trying implicit prerequisite `/Applications/emokit-master/include/emokit/RCS/emokit.h,v'.
       Trying pattern rule with stem `emokit.h'.
       Trying implicit prerequisite `/Applications/emokit-master/include/emokit/RCS/emokit.h'.
       Trying pattern rule with stem `emokit.h'.
       Trying implicit prerequisite `/Applications/emokit-master/include/emokit/s.emokit.h'.
       Trying pattern rule with stem `emokit.h'.
       Trying implicit prerequisite `/Applications/emokit-master/include/emokit/SCCS/s.emokit.h'.
       No implicit rule found for `/Applications/emokit-master/include/emokit/emokit.h'.
       Finished prerequisites of target file `/Applications/emokit-master/include/emokit/emokit.h'.
      No need to remake target `/Applications/emokit-master/include/emokit/emokit.h'.
      Pruning file `CMakeFiles/emokitd.dir/flags.make'.
     Finished prerequisites of target file `CMakeFiles/emokitd.dir/emokitd.o'.
     Prerequisite `emokitd.c' is older than target `CMakeFiles/emokitd.dir/emokitd.o'.
     Prerequisite `emokitd.c' is older than target `CMakeFiles/emokitd.dir/emokitd.o'.
     Prerequisite `emokitd.h' is older than target `CMakeFiles/emokitd.dir/emokitd.o'.
     Prerequisite `/Applications/emokit-master/include/emokit/emokit.h' is older than target `CMakeFiles/emokitd.dir/emokitd.o'.
     Prerequisite `CMakeFiles/emokitd.dir/flags.make' is older than target `CMakeFiles/emokitd.dir/emokitd.o'.
    No need to remake target `CMakeFiles/emokitd.dir/emokitd.o'.
    Pruning file `CMakeFiles/emokitd.dir/build.make'.
   Finished prerequisites of target file `emokitd'.
  Must remake target `emokitd'.
Putting child 0x7fde9a40e440 (emokitd) PID 443 on the chain.
Live child 0x7fde9a40e440 (emokitd) PID 443 
Linking C executable emokitd
Reaping winning child 0x7fde9a40e440 PID 443 
Live child 0x7fde9a40e440 (emokitd) PID 444 
ld: library not found for -lemokit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Reaping losing child 0x7fde9a40e440 PID 444 
make[2]: *** [emokitd] Error 1
Removing child 0x7fde9a40e440 PID 444 from chain.
Reaping losing child 0x7fe8d840c490 PID 442 
make[1]: *** [CMakeFiles/emokitd.dir/all] Error 2
Removing child 0x7fe8d840c490 PID 442 from chain.
Reaping losing child 0x7fb748c0e530 PID 438 
make: *** [all] Error 2
Removing child 0x7fb748c0e530 PID 438 from chain.
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0
Reading makefiles...
Reading makefile `Makefile'...
Updating makefiles....
 Considering target file `Makefile'.
  Looking for an implicit rule for `Makefile'.
  Trying pattern rule with stem `Makefile'.
  Trying implicit prerequisite `Makefile,v'.
  Trying pattern rule with stem `Makefile'.
  Trying implicit prerequisite `RCS/Makefile,v'.
  Trying pattern rule with stem `Makefile'.
  Trying implicit prerequisite `RCS/Makefile'.
  Trying pattern rule with stem `Makefile'.
  Trying implicit prerequisite `s.Makefile'.
  Trying pattern rule with stem `Makefile'.
  Trying implicit prerequisite `SCCS/s.Makefile'.
  No implicit rule found for `Makefile'.
  Finished prerequisites of target file `Makefile'.
 No need to remake target `Makefile'.
Updating goal targets....
Considering target file `default_target'.
 File `default_target' does not exist.
  Considering target file `all'.
   File `all' does not exist.
    Considering target file `cmake_check_build_system'.
     File `cmake_check_build_system' does not exist.
     Finished prerequisites of target file `cmake_check_build_system'.
    Must remake target `cmake_check_build_system'.
Putting child 0x7fb748c0de10 (cmake_check_build_system) PID 436 on the chain.
Live child 0x7fb748c0de10 (cmake_check_build_system) PID 436 
Reaping winning child 0x7fb748c0de10 PID 436 
Removing child 0x7fb748c0de10 PID 436 from chain.
    Successfully remade target file `cmake_check_build_system'.
   Finished prerequisites of target file `all'.
  Must remake target `all'.
Putting child 0x7fb748c0e530 (all) PID 437 on the chain.
Live child 0x7fb748c0e530 (all) PID 437 
Reaping winning child 0x7fb748c0e530 PID 437 
Live child 0x7fb748c0e530 (all) PID 438 
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0
Reading makefiles...
Reading makefile `CMakeFiles/Makefile2'...
Updating makefiles....
 Considering target file `CMakeFiles/Makefile2'.
  Looking for an implicit rule for `CMakeFiles/Makefile2'.
  Trying pattern rule with stem `Makefile2'.
  Trying implicit prerequisite `CMakeFiles/Makefile2,v'.
  Trying pattern rule with stem `Makefile2'.
  Trying implicit prerequisite `CMakeFiles/RCS/Makefile2,v'.
  Trying pattern rule with stem `Makefile2'.
  Trying implicit prerequisite `CMakeFiles/RCS/Makefile2'.
  Trying pattern rule with stem `Makefile2'.
  Trying implicit prerequisite `CMakeFiles/s.Makefile2'.
  Trying pattern rule with stem `Makefile2'.
  Trying implicit prerequisite `CMakeFiles/SCCS/s.Makefile2'.
  No implicit rule found for `CMakeFiles/Makefile2'.
  Finished prerequisites of target file `CMakeFiles/Makefile2'.
 No need to remake target `CMakeFiles/Makefile2'.
Updating goal targets....
Considering target file `all'.
 File `all' does not exist.
  Considering target file `CMakeFiles/emokitd.dir/all'.
   File `CMakeFiles/emokitd.dir/all' does not exist.
   Finished prerequisites of target file `CMakeFiles/emokitd.dir/all'.
  Must remake target `CMakeFiles/emokitd.dir/all'.
Putting child 0x7fe8d840c490 (CMakeFiles/emokitd.dir/all) PID 439 on the chain.
Live child 0x7fe8d840c490 (CMakeFiles/emokitd.dir/all) PID 439 
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0
Reading makefiles...
Reading makefile `CMakeFiles/emokitd.dir/build.make'...
Reading makefile `CMakeFiles/emokitd.dir/depend.make' (search path) (no ~ expansion)...
Reading makefile `CMakeFiles/emokitd.dir/progress.make' (search path) (no ~ expansion)...
Reading makefile `CMakeFiles/emokitd.dir/flags.make' (search path) (no ~ expansion)...
Updating makefiles....
 Considering target file `CMakeFiles/emokitd.dir/flags.make'.
  Looking for an implicit rule for `CMakeFiles/emokitd.dir/flags.make'.
  Trying pattern rule with stem `flags.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/flags.make,v'.
  Trying pattern rule with stem `flags.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/flags.make,v'.
  Trying pattern rule with stem `flags.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/flags.make'.
  Trying pattern rule with stem `flags.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/s.flags.make'.
  Trying pattern rule with stem `flags.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/SCCS/s.flags.make'.
  No implicit rule found for `CMakeFiles/emokitd.dir/flags.make'.
  Finished prerequisites of target file `CMakeFiles/emokitd.dir/flags.make'.
 No need to remake target `CMakeFiles/emokitd.dir/flags.make'.
 Considering target file `CMakeFiles/emokitd.dir/progress.make'.
  Looking for an implicit rule for `CMakeFiles/emokitd.dir/progress.make'.
  Trying pattern rule with stem `progress.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/progress.make,v'.
  Trying pattern rule with stem `progress.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/progress.make,v'.
  Trying pattern rule with stem `progress.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/progress.make'.
  Trying pattern rule with stem `progress.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/s.progress.make'.
  Trying pattern rule with stem `progress.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/SCCS/s.progress.make'.
  No implicit rule found for `CMakeFiles/emokitd.dir/progress.make'.
  Finished prerequisites of target file `CMakeFiles/emokitd.dir/progress.make'.
 No need to remake target `CMakeFiles/emokitd.dir/progress.make'.
 Considering target file `CMakeFiles/emokitd.dir/depend.make'.
  Looking for an implicit rule for `CMakeFiles/emokitd.dir/depend.make'.
  Trying pattern rule with stem `depend.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/depend.make,v'.
  Trying pattern rule with stem `depend.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/depend.make,v'.
  Trying pattern rule with stem `depend.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/depend.make'.
  Trying pattern rule with stem `depend.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/s.depend.make'.
  Trying pattern rule with stem `depend.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/SCCS/s.depend.make'.
  No implicit rule found for `CMakeFiles/emokitd.dir/depend.make'.
  Finished prerequisites of target file `CMakeFiles/emokitd.dir/depend.make'.
 No need to remake target `CMakeFiles/emokitd.dir/depend.make'.
 Considering target file `CMakeFiles/emokitd.dir/build.make'.
  Looking for an implicit rule for `CMakeFiles/emokitd.dir/build.make'.
  Trying pattern rule with stem `build.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/build.make,v'.
  Trying pattern rule with stem `build.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/build.make,v'.
  Trying pattern rule with stem `build.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/build.make'.
  Trying pattern rule with stem `build.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/s.build.make'.
  Trying pattern rule with stem `build.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/SCCS/s.build.make'.
  No implicit rule found for `CMakeFiles/emokitd.dir/build.make'.
  Finished prerequisites of target file `CMakeFiles/emokitd.dir/build.make'.
 No need to remake target `CMakeFiles/emokitd.dir/build.make'.
Updating goal targets....
Considering target file `CMakeFiles/emokitd.dir/depend'.
 File `CMakeFiles/emokitd.dir/depend' does not exist.
 Finished prerequisites of target file `CMakeFiles/emokitd.dir/depend'.
Must remake target `CMakeFiles/emokitd.dir/depend'.
Putting child 0x7f8ea140d530 (CMakeFiles/emokitd.dir/depend) PID 440 on the chain.
Live child 0x7f8ea140d530 (CMakeFiles/emokitd.dir/depend) PID 440 
Reaping winning child 0x7f8ea140d530 PID 440 
Removing child 0x7f8ea140d530 PID 440 from chain.
Successfully remade target file `CMakeFiles/emokitd.dir/depend'.
Reaping winning child 0x7fe8d840c490 PID 439 
Live child 0x7fe8d840c490 (CMakeFiles/emokitd.dir/all) PID 442 
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0
Reading makefiles...
Reading makefile `CMakeFiles/emokitd.dir/build.make'...
Reading makefile `CMakeFiles/emokitd.dir/depend.make' (search path) (no ~ expansion)...
Reading makefile `CMakeFiles/emokitd.dir/progress.make' (search path) (no ~ expansion)...
Reading makefile `CMakeFiles/emokitd.dir/flags.make' (search path) (no ~ expansion)...
Updating makefiles....
 Considering target file `CMakeFiles/emokitd.dir/flags.make'.
  Looking for an implicit rule for `CMakeFiles/emokitd.dir/flags.make'.
  Trying pattern rule with stem `flags.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/flags.make,v'.
  Trying pattern rule with stem `flags.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/flags.make,v'.
  Trying pattern rule with stem `flags.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/flags.make'.
  Trying pattern rule with stem `flags.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/s.flags.make'.
  Trying pattern rule with stem `flags.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/SCCS/s.flags.make'.
  No implicit rule found for `CMakeFiles/emokitd.dir/flags.make'.
  Finished prerequisites of target file `CMakeFiles/emokitd.dir/flags.make'.
 No need to remake target `CMakeFiles/emokitd.dir/flags.make'.
 Considering target file `CMakeFiles/emokitd.dir/progress.make'.
  Looking for an implicit rule for `CMakeFiles/emokitd.dir/progress.make'.
  Trying pattern rule with stem `progress.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/progress.make,v'.
  Trying pattern rule with stem `progress.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/progress.make,v'.
  Trying pattern rule with stem `progress.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/progress.make'.
  Trying pattern rule with stem `progress.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/s.progress.make'.
  Trying pattern rule with stem `progress.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/SCCS/s.progress.make'.
  No implicit rule found for `CMakeFiles/emokitd.dir/progress.make'.
  Finished prerequisites of target file `CMakeFiles/emokitd.dir/progress.make'.
 No need to remake target `CMakeFiles/emokitd.dir/progress.make'.
 Considering target file `CMakeFiles/emokitd.dir/depend.make'.
  Looking for an implicit rule for `CMakeFiles/emokitd.dir/depend.make'.
  Trying pattern rule with stem `depend.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/depend.make,v'.
  Trying pattern rule with stem `depend.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/depend.make,v'.
  Trying pattern rule with stem `depend.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/depend.make'.
  Trying pattern rule with stem `depend.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/s.depend.make'.
  Trying pattern rule with stem `depend.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/SCCS/s.depend.make'.
  No implicit rule found for `CMakeFiles/emokitd.dir/depend.make'.
  Finished prerequisites of target file `CMakeFiles/emokitd.dir/depend.make'.
 No need to remake target `CMakeFiles/emokitd.dir/depend.make'.
 Considering target file `CMakeFiles/emokitd.dir/build.make'.
  Looking for an implicit rule for `CMakeFiles/emokitd.dir/build.make'.
  Trying pattern rule with stem `build.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/build.make,v'.
  Trying pattern rule with stem `build.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/build.make,v'.
  Trying pattern rule with stem `build.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/build.make'.
  Trying pattern rule with stem `build.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/s.build.make'.
  Trying pattern rule with stem `build.make'.
  Trying implicit prerequisite `CMakeFiles/emokitd.dir/SCCS/s.build.make'.
  No implicit rule found for `CMakeFiles/emokitd.dir/build.make'.
  Finished prerequisites of target file `CMakeFiles/emokitd.dir/build.make'.
 No need to remake target `CMakeFiles/emokitd.dir/build.make'.
Updating goal targets....
Considering target file `CMakeFiles/emokitd.dir/build'.
 File `CMakeFiles/emokitd.dir/build' does not exist.
  Considering target file `emokitd'.
   File `emokitd' does not exist.
    Considering target file `CMakeFiles/emokitd.dir/link.txt'.
     Looking for an implicit rule for `CMakeFiles/emokitd.dir/link.txt'.
     Trying pattern rule with stem `link.txt'.
     Trying implicit prerequisite `CMakeFiles/emokitd.dir/link.txt,v'.
     Trying pattern rule with stem `link.txt'.
     Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/link.txt,v'.
     Trying pattern rule with stem `link.txt'.
     Trying implicit prerequisite `CMakeFiles/emokitd.dir/RCS/link.txt'.
     Trying pattern rule with stem `link.txt'.
     Trying implicit prerequisite `CMakeFiles/emokitd.dir/s.link.txt'.
     Trying pattern rule with stem `link.txt'.
     Trying implicit prerequisite `CMakeFiles/emokitd.dir/SCCS/s.link.txt'.
     No implicit rule found for `CMakeFiles/emokitd.dir/link.txt'.
     Finished prerequisites of target file `CMakeFiles/emokitd.dir/link.txt'.
    No need to remake target `CMakeFiles/emokitd.dir/link.txt'.
    Considering target file `CMakeFiles/emokitd.dir/emokitd.o'.
      Considering target file `emokitd.c'.
       Looking for an implicit rule for `emokitd.c'.
       Trying pattern rule with stem `emokitd'.
       Trying implicit prerequisite `emokitd.w'.
       Trying pattern rule with stem `emokitd.c'.
       Trying implicit prerequisite `emokitd.c,v'.
       Trying pattern rule with stem `emokitd.c'.
       Trying implicit prerequisite `RCS/emokitd.c,v'.
       Trying pattern rule with stem `emokitd.c'.
       Trying implicit prerequisite `RCS/emokitd.c'.
       Trying pattern rule with stem `emokitd.c'.
       Trying implicit prerequisite `s.emokitd.c'.
       Trying pattern rule with stem `emokitd.c'.
       Trying implicit prerequisite `SCCS/s.emokitd.c'.
       Trying pattern rule with stem `emokitd'.
       Trying implicit prerequisite `emokitd.w'.
       Looking for a rule with intermediate file `emokitd.w'.
        Avoiding implicit rule recursion.
        Trying pattern rule with stem `emokitd.w'.
        Trying implicit prerequisite `emokitd.w,v'.
        Trying pattern rule with stem `emokitd.w'.
        Trying implicit prerequisite `RCS/emokitd.w,v'.
        Trying pattern rule with stem `emokitd.w'.
        Trying implicit prerequisite `RCS/emokitd.w'.
        Trying pattern rule with stem `emokitd.w'.
        Trying implicit prerequisite `s.emokitd.w'.
        Trying pattern rule with stem `emokitd.w'.
        Trying implicit prerequisite `SCCS/s.emokitd.w'.
       No implicit rule found for `emokitd.c'.
       Finished prerequisites of target file `emokitd.c'.
      No need to remake target `emokitd.c'.
      Pruning file `emokitd.c'.
      Considering target file `emokitd.h'.
       Looking for an implicit rule for `emokitd.h'.
       Trying pattern rule with stem `emokitd.h'.
       Trying implicit prerequisite `emokitd.h,v'.
       Trying pattern rule with stem `emokitd.h'.
       Trying implicit prerequisite `RCS/emokitd.h,v'.
       Trying pattern rule with stem `emokitd.h'.
       Trying implicit prerequisite `RCS/emokitd.h'.
       Trying pattern rule with stem `emokitd.h'.
       Trying implicit prerequisite `s.emokitd.h'.
       Trying pattern rule with stem `emokitd.h'.
       Trying implicit prerequisite `SCCS/s.emokitd.h'.
       No implicit rule found for `emokitd.h'.
       Finished prerequisites of target file `emokitd.h'.
      No need to remake target `emokitd.h'.
      Considering target file `/Applications/emokit-master/include/emokit/emokit.h'.
       Looking for an implicit rule for `/Applications/emokit-master/include/emokit/emokit.h'.
       Trying pattern rule with stem `emokit.h'.
       Trying implicit prerequisite `/Applications/emokit-master/include/emokit/emokit.h,v'.
       Trying pattern rule with stem `emokit.h'.
       Trying implicit prerequisite `/Applications/emokit-master/include/emokit/RCS/emokit.h,v'.
       Trying pattern rule with stem `emokit.h'.
       Trying implicit prerequisite `/Applications/emokit-master/include/emokit/RCS/emokit.h'.
       Trying pattern rule with stem `emokit.h'.
       Trying implicit prerequisite `/Applications/emokit-master/include/emokit/s.emokit.h'.
       Trying pattern rule with stem `emokit.h'.
       Trying implicit prerequisite `/Applications/emokit-master/include/emokit/SCCS/s.emokit.h'.
       No implicit rule found for `/Applications/emokit-master/include/emokit/emokit.h'.
       Finished prerequisites of target file `/Applications/emokit-master/include/emokit/emokit.h'.
      No need to remake target `/Applications/emokit-master/include/emokit/emokit.h'.
      Pruning file `CMakeFiles/emokitd.dir/flags.make'.
     Finished prerequisites of target file `CMakeFiles/emokitd.dir/emokitd.o'.
     Prerequisite `emokitd.c' is older than target `CMakeFiles/emokitd.dir/emokitd.o'.
     Prerequisite `emokitd.c' is older than target `CMakeFiles/emokitd.dir/emokitd.o'.
     Prerequisite `emokitd.h' is older than target `CMakeFiles/emokitd.dir/emokitd.o'.
     Prerequisite `/Applications/emokit-master/include/emokit/emokit.h' is older than target `CMakeFiles/emokitd.dir/emokitd.o'.
     Prerequisite `CMakeFiles/emokitd.dir/flags.make' is older than target `CMakeFiles/emokitd.dir/emokitd.o'.
    No need to remake target `CMakeFiles/emokitd.dir/emokitd.o'.
    Pruning file `CMakeFiles/emokitd.dir/build.make'.
   Finished prerequisites of target file `emokitd'.
  Must remake target `emokitd'.
Putting child 0x7fde9a40e440 (emokitd) PID 443 on the chain.
Live child 0x7fde9a40e440 (emokitd) PID 443 
Linking C executable emokitd
Reaping winning child 0x7fde9a40e440 PID 443 
Live child 0x7fde9a40e440 (emokitd) PID 444 
ld: library not found for -lemokit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Reaping losing child 0x7fde9a40e440 PID 444 
make[2]: *** [emokitd] Error 1
Removing child 0x7fde9a40e440 PID 444 from chain.
Reaping losing child 0x7fe8d840c490 PID 442 
make[1]: *** [CMakeFiles/emokitd.dir/all] Error 2
Removing child 0x7fe8d840c490 PID 442 from chain.
Reaping losing child 0x7fb748c0e530 PID 438 
make: *** [all] Error 2
Removing child 0x7fb748c0e530 PID 438 from chain.

Thank you

@olorin
OpenYou member
olorin commented May 30, 2014

Gah, I hate cmake. It sounds like your emokit built successfully; can you try building it manually to ensure it's actually a path issue?

gcc -lhidapi -lmcrypt -pthread -lm -I ./include/emokit/ examples/emokitd/emokitd.c ./lib/libemokit.a

If that works, maybe just installing the library with sudo make install will solve your linker issue?

@MGM22
MGM22 commented May 30, 2014

When I try gcc -lhidapi -lmcrypt -pthread -lm -I ./include/emokit/ examples/emokitd/emokitd.c ./lib/libemokit.aI get this error:

clang: error: no such file or directory: './lib/libemokit.a'

When I try to install again make, it tells me that there's nothing no be done for 'install'

No idea…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.