qdot/emokit — Issue #7: Installer can't find mcypt
Author: sheridanis
Created: 2011-10-24 03:30:11+00:00
State: open

Despite cmake finding mcrypt the make file can't find mcrypt.h - see below

MrLaptop:c jrs$ cmake CMakeLists.txt
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- 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
-- Found mcrypt: /opt/local/lib/libmcrypt.dylib
-- Found libusb-1.0:
-- - Includes: /usr/local/include/libusb-1.0
-- - Libraries: /usr/local/lib/libusb-1.0.dylib
-- /opt/local/lib/libmcrypt.dylib/usr/local/lib/libusb-1.0.dylib
-- Found oscpack: /usr/local/lib/liboscpack.so
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jrs/Documents/Uni/Code/Emotive/emokit/c
MrLaptop:c jrs$ make
[ 25%] Building C object src/CMakeFiles/epoc.dir/epoc.c.o
/Users/jrs/Documents/Uni/Code/Emotive/emokit/c/src/epoc.c:1:20: error: mcrypt.h: No such file or directory
/Users/jrs/Documents/Uni/Code/Emotive/emokit/c/src/epoc.c:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘td’
/Users/jrs/Documents/Uni/Code/Emotive/emokit/c/src/epoc.c: In function ‘epoc_init’:
/Users/jrs/Documents/Uni/Code/Emotive/emokit/c/src/epoc.c:46: error: ‘td’ undeclared (first use in this function)
/Users/jrs/Documents/Uni/Code/Emotive/emokit/c/src/epoc.c:46: error: (Each undeclared identifier is reported only once
/Users/jrs/Documents/Uni/Code/Emotive/emokit/c/src/epoc.c:46: error: for each function it appears in.)
/Users/jrs/Documents/Uni/Code/Emotive/emokit/c/src/epoc.c:46: error: ‘MCRYPT_RIJNDAEL_128’ undeclared (first use in this function)
/Users/jrs/Documents/Uni/Code/Emotive/emokit/c/src/epoc.c:46: error: ‘MCRYPT_ECB’ undeclared (first use in this function)
/Users/jrs/Documents/Uni/Code/Emotive/emokit/c/src/epoc.c: In function ‘epoc_deinit’:
/Users/jrs/Documents/Uni/Code/Emotive/emokit/c/src/epoc.c:56: error: ‘td’ undeclared (first use in this function)
/Users/jrs/Documents/Uni/Code/Emotive/emokit/c/src/epoc.c: In function ‘epoc_get_next_raw’:
/Users/jrs/Documents/Uni/Code/Emotive/emokit/c/src/epoc.c:81: error: ‘td’ undeclared (first use in this function)
make[2]: *** [src/CMakeFiles/epoc.dir/epoc.c.o] Error 1
make[1]: *** [src/CMakeFiles/epoc.dir/all] Error 2
make: *** [all] Error 2
MrLaptop:c jrs$