Ticket #10840 (closed: fixed)

Opened 6 years ago

Last modified 5 years ago

fix rpath issues with osx package built cmake 3

Reported by: Steven Hahn Owned by: Steven Hahn
Priority: major Milestone: Release 3.4
Component: Framework Keywords:
Cc: Blocked By:
Blocking: Tester: Pete Peterson

Description

In cmake 3, MACOSX_RPATH is enabled by default and is currently generating a large warning. Determine if we want MACOSX_RPATH enabled and we do want it enabled, specify it for each target.

Change History

comment:1 Changed 6 years ago by Steven Hahn

CMake Warning (dev):
  Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake
  --help-policy CMP0042" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  MACOSX_RPATH is not specified for the following targets:

   API
   Algorithms
   Crystal
   CurveFitting
   CustomDialogs
   CustomInterfaces
   DataHandling
   DataObjects
   DesignerPlugins
   Geometry
   ICat
   ISISLiveData
   Kernel
   LiveData
   MDAlgorithms
   MDEvents
   MantidQtAPI
   MantidQtFactory
   MantidQtRefDetectorViewer
   MantidQtSliceViewer
   MantidQtSpectrumViewer
   MantidWidgets
   Nexus
   PythonAPIModule
   PythonGeometryModule
   PythonKernelModule
   PythonWorkspaceCreationHelper
   QtPropertyBrowser
   RemoteAlgorithms
   SINQ
   ScriptRepository
   UserAlgorithms
   WorkflowAlgorithms

This warning is for project developers.  Use -Wno-dev to suppress it.

comment:2 Changed 6 years ago by Steven Hahn

cmake --help-policy CMP0042
CMP0042
-------

``MACOSX_RPATH`` is enabled by default.

CMake 2.8.12 and newer has support for using ``@rpath`` in a target's install
name.  This was enabled by setting the target property
``MACOSX_RPATH``.  The ``@rpath`` in an install name is a more
flexible and powerful mechanism than ``@executable_path`` or ``@loader_path``
for locating shared libraries.

CMake 3.0 and later prefer this property to be ON by default.  Projects
wanting ``@rpath`` in a target's install name may remove any setting of
the ``INSTALL_NAME_DIR`` and ``CMAKE_INSTALL_NAME_DIR``
variables.

This policy was introduced in CMake version 3.0.  CMake version
3.0.2 warns when the policy is not set and uses OLD behavior.  Use
the cmake_policy command to set it to OLD or NEW explicitly.

comment:3 Changed 6 years ago by Steven Hahn

Refs #10840. MantidPlot starts, but still has issues with python.

Changeset: 6b37331ae2752d3373be29d3e8d516a6fb739b6b

comment:4 Changed 6 years ago by Steven Hahn

Refs #10840. Python imports without errors.

Changeset: b332d1f20ca967bbe14c04b28b01a9c67ef26781

comment:5 Changed 6 years ago by Steven Hahn

Refs #10840. Libraries copied to bundle but crashes on start.

Changeset: 7eb1127039f29029f4958a7372e66326e24a457a

comment:6 Changed 6 years ago by Steven Hahn

Refs #10840. MantidPlot starts, but still has issues with python.

Changeset: f2d6a4dfa83bc425df6b208ecd8b7b0404315b56

comment:7 Changed 6 years ago by Steven Hahn

Refs #10840. Python imports without errors.

Changeset: e26b356fc2449a4eac10638f880ab095231ccd0a

comment:8 Changed 6 years ago by Steven Hahn

Refs #10840. homebrew dependencies included in app bundle.

Changeset: 739a169829a26e2447c604a9eeb5ba6ccea4e6cd

comment:9 Changed 6 years ago by Steven Hahn

Refs #10840. update sip and pyqt versions. Needs more general fix.

Changeset: a1bf9167796efa053531577ad2ca2281819a5d0e

comment:10 Changed 6 years ago by Steven Hahn

Refs #10840. Added python dependencies

Changeset: 263d13a6bcc71345740c74fe2ed942e25aeddcf5

comment:11 Changed 6 years ago by Steven Hahn

Refs #10840. Adding comments to ruby file creating app bundle

Changeset: 7ae850ccc006d5a2f64484de73d307de36a550af

comment:12 Changed 6 years ago by Steven Hahn

Refs #10840. adding file that runs ruby script.

Changeset: 9ea16158a53f271bcfbe0f477821acf8ab4e9234

comment:13 Changed 6 years ago by Steven Hahn

Refs #10840. Update DarwinBuild so it works in 10.8 and 10.9

Changeset: 85b037c86f6b66610b54a5def153928beb78d171

comment:14 Changed 6 years ago by Steven Hahn

Refs #10840. Fix readlink issue

Changeset: 1a17d915875607585e647a84d4143104bd8ecda2

comment:15 Changed 6 years ago by Steven Hahn

Refs #10840. Get working with other systems

Changeset: e84647ff1291c0a5acc6cc76977fe4d37ddc451b

comment:16 Changed 6 years ago by Steven Hahn

  • Status changed from new to verify
  • Resolution set to fixed

This is being verified as pull request #137.

comment:17 Changed 6 years ago by Steven Hahn

Refs #10840. fix qt imageformats libraries

Changeset: db817eafbeb9ca0aae807640202e0581e890fc55

comment:18 Changed 6 years ago by Steven Hahn

Refs #10840. return to 10.8 deployment target. change id on libqsqlite

Changeset: c11ba6254f6d47e92d50a3f76de3826cf4ae7484

comment:19 Changed 6 years ago by Steven Hahn

Refs #10840. add missing if around INSTALL_RPATH

Changeset: 7c489179cd28674d0619fb95872a1036380c8a0f

comment:20 Changed 6 years ago by Steven Hahn

retest this please

comment:21 Changed 6 years ago by Steven Hahn

retest this please

comment:22 Changed 6 years ago by Steven Hahn

retest this please

comment:23 Changed 6 years ago by Steven Hahn

retest this please

comment:24 Changed 6 years ago by Steven Hahn

I don't know why the pull request build failed. The issue appears to be related to git and not the cod changes in this branch. Also, these changes are in develop, which is passing.

comment:25 Changed 6 years ago by Steven Hahn

Refs #10840. remove versioning from name of library

Changeset: f2954a4ac81c225136bdb1deec264cc5aeebba4c

comment:26 Changed 6 years ago by Steven Hahn

Refs #10840. MantidPlot starts, but still has issues with python.

Changeset: 4ab5272a44cf6e6f52eaf4fd3525f18fa615eec7

comment:27 Changed 6 years ago by Steven Hahn

Refs #10840. Python imports without errors.

Changeset: a9facf740879f78a553ddf35981b48e739383bf8

comment:28 Changed 6 years ago by Steven Hahn

Refs #10840. homebrew dependencies included in app bundle.

Changeset: 04e675030b980b9db557c494f1fb881d02dd04e0

comment:29 Changed 6 years ago by Steven Hahn

Refs #10840. update sip and pyqt versions. Needs more general fix.

Changeset: f79dd7152308c930e826e88e652ee78199e951c0

comment:30 Changed 6 years ago by Steven Hahn

Refs #10840. Added python dependencies

Changeset: 22df9829644c0e6670ca033067afa74a74789b22

comment:31 Changed 6 years ago by Steven Hahn

Refs #10840. Adding comments to ruby file creating app bundle

Changeset: 9db96af7bb437ac251d7bbf6531555b028d13357

comment:32 Changed 6 years ago by Steven Hahn

Refs #10840. adding file that runs ruby script.

Changeset: 4f43ab01474096a460b80a5487785df92af450c3

comment:33 Changed 6 years ago by Steven Hahn

Refs #10840. Update DarwinBuild so it works in 10.8 and 10.9

Changeset: 15db93a92ed01e9bdaeedc25f3c489ac921661e3

comment:34 Changed 6 years ago by Steven Hahn

Refs #10840. Fix readlink issue

Changeset: 21333aef86ccd1c2f84f4bf3b06380c4ef508de5

comment:35 Changed 6 years ago by Steven Hahn

Refs #10840. Get working with other systems

Changeset: a6c85a266bdcd776832f0a016e197428855041ad

comment:36 Changed 6 years ago by Steven Hahn

Refs #10840. fix qt imageformats libraries

Changeset: f2f2f8dc6b285eb95c35305eacaead8ecd8852c5

comment:37 Changed 6 years ago by Steven Hahn

Refs #10840. return to 10.8 deployment target. change id on libqsqlite

Changeset: 4f8b472851c2e3d302fb681e9c6a5e39d9f04397

comment:38 Changed 6 years ago by Steven Hahn

Refs #10840. add missing if around INSTALL_RPATH

Changeset: 7281d68b9cbc7b8d5771359e06e0e47af42c6ca1

comment:39 Changed 6 years ago by Steven Hahn

Refs #10840. remove versioning from name of library

Changeset: e81817318632ceb2850e8f8eca4480c116dee912

comment:40 Changed 6 years ago by Steven Hahn

This is being verified as pull request #193.

comment:41 Changed 6 years ago by Steven Hahn

accidentally merged unrelated commits into this branch. Closing and reopening as https://github.com/mantidproject/mantid/pull/193

comment:42 Changed 6 years ago by Steven Hahn

retest this please

comment:43 Changed 6 years ago by Pete Peterson

  • Status changed from verify to verifying
  • Tester set to Pete Peterson

comment:44 Changed 6 years ago by Pete Peterson

  • Status changed from verifying to closed

Merge pull request #193 from mantidproject/feature/10840_fix_macosx_package_fixed

You need to actually follow the directions [on the wiki](https://github.com/mantidproject/mantid/wiki/Building-Mantid-on-OS-X-10.9-&-10.10-using-clang-and-Xcode), but it works.

Full changeset: a77ee7a434cde17db09c56b1c6f255aa4e39c292

comment:45 Changed 5 years ago by Nick Draper

Somehow these slipped through without a resolution. Set to Fixed.

comment:46 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 11682

Note: See TracTickets for help on using tickets.