View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015000CMakeModulespublic2014-07-01 14:332015-01-05 08:39
ReporterFlorent Castelli 
Assigned ToBrad King 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformAndroidOSOSXOS Version10.9.3
Product VersionCMake 3.0 
Target VersionCMake 3.1Fixed in VersionCMake 3.1 
Summary0015000: CMakeFindBinUtils always search for install_name_tool even when cross compiling on OSX
DescriptionWhen cross compiling (in my case for Android) from a Mac, CMakeFindBinUtils.cmake searches for a tool called "install_name_tool" required to make changes to Mach-O binaries (which is totally irrelevant to Android dev).
This tool might not be installed (it comes with xcode or command line tools on OSX) and thus CMake will fail to generate a project (it issues a fatal error).

This "error" is so pervasive that some android toolchain files actually ensure that install_name_tool is available just to pass this check.

Fix would require to change the if(APPLE) on line 71 to if(CMAKE_PLATFORM_HAS_INSTALLNAME) which is set in other files when the tool is provided by the toolchain.
TagsNo tags attached.
Attached Filespatch file icon 0001-Only-search-for-install_name_tool-if-the-toolchain-h.patch [^] (973 bytes) 2014-07-01 14:40 [Show Content]

 Relationships

  Notes
(0036300)
Florent Castelli (reporter)
2014-07-01 14:40

Patched fixing the issue attached.
(0036303)
Brad King (manager)
2014-07-02 09:19

For reference, the mailing list thread is here:

 http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/10421 [^]

I've applied that patch:

 OS X: Only search for install_name_tool if the toolchain has it
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b3012d20 [^]

Thanks!
(0037580)
Robert Maynard (manager)
2015-01-05 08:39

Closing resolved issues that have not been updated in more than 4 months

 Issue History
Date Modified Username Field Change
2014-07-01 14:33 Florent Castelli New Issue
2014-07-01 14:40 Florent Castelli File Added: 0001-Only-search-for-install_name_tool-if-the-toolchain-h.patch
2014-07-01 14:40 Florent Castelli Note Added: 0036300
2014-07-02 09:19 Brad King Note Added: 0036303
2014-07-02 09:19 Brad King Assigned To => Brad King
2014-07-02 09:19 Brad King Status new => resolved
2014-07-02 09:19 Brad King Resolution open => fixed
2014-07-02 09:19 Brad King Fixed in Version => CMake 3.1
2014-07-02 09:19 Brad King Target Version => CMake 3.1
2015-01-05 08:39 Robert Maynard Note Added: 0037580
2015-01-05 08:39 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team