[cmake-developers] [CMake 0015623]: Raspbian puts some system libraries in /usr/lib/arm-linux-gnueabihf which CMake doesn't search
Mantis Bug Tracker
mantis at public.kitware.com
Thu Jun 18 09:04:00 EDT 2015
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15623
======================================================================
Reported By: Eric Wing
Assigned To:
======================================================================
Project: CMake
Issue ID: 15623
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-06-18 09:04 EDT
Last Modified: 2015-06-18 09:04 EDT
======================================================================
Summary: Raspbian puts some system libraries in
/usr/lib/arm-linux-gnueabihf which CMake doesn't search
Description:
Raspbian, which is a streamlined offshoot of Debian for Raspberry Pi, puts a lot
of system libraries in /usr/lib/arm-linux-gnueabihf, which CMake doesn't search
for by default.
Some popular libraries include libpng, libjpeg, libcurl, openal, sdl, avahi,
freetype, and a lot more.
When trying to build on a Raspberry Pi (not cross-compiling), CMake couldn't
find and link a lot of common libraries.
Since Raspbian is essentially just another Linux distro and probably shouldn't
be an entirely different platform,
the easiest fix seems to be to add
/usr/lib/arm-linux-gnueabihf
to
CMAKE_SYSTEM_LIBRARY_PATH
CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
in Modules/Platform/UnixPaths.cmake
Steps to Reproduce:
I think I originally triggered this by trying to FIND_PACKAGE(OpenAL) on
Raspbian.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-06-18 09:04 Eric Wing New Issue
======================================================================
More information about the cmake-developers
mailing list