joule-code-samples icon indicating copy to clipboard operation
joule-code-samples copied to clipboard

mraa-install.sh issues

Open fmanea opened this issue 8 years ago • 0 comments
trafficstars

make install #Should install Mraa in /usr/lib64/ rm /usr/lib/libmraa.so* #Remove previous version of Mraa mv /usr/lib64/libmraa.so* /usr/lib #Move NEW Mraa files to lib mv /usr/lib64/pkgconfig/* /usr/lib/pkgconfig #Move package configuration info rm -r /usr/lib64/

the install should be made without these hacks, as a patch to CMakeLists.txt, to install directly in /usr/lib.

Explanation: After install, if you take a look to /usr/lib/pkgconfig/mraa.pc :

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib64
includedir=${prefix}/include

Name: mraa
Description: Low Level Skeleton Library for Communication
Version: 1.7.0

Libs: -L${libdir} -lmraa
Cflags: -I${includedir}

It stil points out to lib64, even though it was moved to /usr/lib. And when trying to make use cmake pkg_check_modules in conjuction with INCLUDE_DIRS there will be some problems, meaning that INCLUDE_DIRS will point to usr/lib64 and not to usr/lib.

fmanea avatar Jun 22 '17 15:06 fmanea