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                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to