Skip to content
This repository has been archived by the owner on May 13, 2019. It is now read-only.

mraa-install.sh issues #72

Open
fmanea opened this issue Jun 22, 2017 · 0 comments
Open

mraa-install.sh issues #72

fmanea opened this issue Jun 22, 2017 · 0 comments

Comments

@fmanea
Copy link

fmanea commented Jun 22, 2017

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 pushed a commit to fmanea/joule-code-samples that referenced this issue Jun 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant