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

mraa-install.sh issues #72

@fmanea

Description

@fmanea

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions