Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Installing fails when using DESTDIR

オープン
#27 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cmake, cpp
領域
build-system

調査の方向性

Start with cmake/DeployQt5.cmake around line 199 and the generated molequeue/lastinstall/cmake_install.cmake entry shown in the traceback. Reproduce the install with DESTDIR, inspect how fixup_qt5_executable resolves the MoleQueue libraries, and confirm that installation succeeds without looking outside the staging root.

索引モデルが issue の本文から書いたものです。

説明

Hi, I'm trying to add molequeue 0.9.0 to MacPorts, as requested years ago. It builds, but installing fails because MacPorts does something like make install DESTDIR=/path/to/destroot which results in:

-- fixup_qt5_executable
--   executable='/path/to/destroot/opt/local/MoleQueue.app'
--   qtplugins=''
--   libs='/path/to/destroot/opt/local/MoleQueue.app/Contents/PlugIns/platforms/libqcocoa.dylib'
--   dirs='/opt/local/lib;/opt/local/share/cmake/Modules/bin;/opt/local/share/cmake/Modules/lib;/opt/local/libexec/qt5/lib/QtCore.framework'
--   plugins_dir='lib/molequeue/plugins'
--   request_qt_conf=''
-- Writing /path/to/destroot/opt/local/MoleQueue.app/Contents/Resources/qt.conf
-- fixup_bundle
--   app='/path/to/destroot/opt/local/MoleQueue.app'
--   libs='/path/to/destroot/opt/local/MoleQueue.app/Contents/PlugIns/platforms/libqcocoa.dylib'
--   dirs='/opt/local/lib;/opt/local/share/cmake/Modules/bin;/opt/local/share/cmake/Modules/lib;/opt/local/libexec/qt5/lib/QtCore.framework'
--   ignoreItems=''
-- fixup_bundle: preparing...
--
warning: cannot resolve item '/opt/local/lib/libMoleQueueServerCore.dylib'

  possible problems:
    need more directories?
    need to use InstallRequiredSystemLibraries?
    run in install tree instead of build tree?

--
warning: cannot resolve item '/opt/local/lib/libMoleQueueClient.dylib'

  possible problems:
    need more directories?
    need to use InstallRequiredSystemLibraries?
    run in install tree instead of build tree?

--
warning: cannot resolve item '/opt/local/lib/libMoleQueueClient.dylib'

  possible problems:
    need more directories?
    need to use InstallRequiredSystemLibraries?
    run in install tree instead of build tree?

CMake Error at /opt/local/share/cmake-3.15/Modules/BundleUtilities.cmake:452 (message):
  otool -l failed: 1

  /Library/Developer/CommandLineTools/usr/bin/objdump:
  '/opt/local/lib/libMoleQueueClient.dylib': No such file or directory

Call Stack (most recent call first):
  /opt/local/share/cmake-3.15/Modules/BundleUtilities.cmake:521 (get_item_rpaths)
  /opt/local/share/cmake-3.15/Modules/BundleUtilities.cmake:659 (set_bundle_key_values)
  /opt/local/share/cmake-3.15/Modules/BundleUtilities.cmake:939 (get_bundle_keys)
  /path/to/molequeue-0.9.0/cmake/DeployQt5.cmake:199 (fixup_bundle)
  molequeue/lastinstall/cmake_install.cmake:42 (fixup_qt5_executable)
  molequeue/cmake_install.cmake:41 (include)
  cmake_install.cmake:71 (include)


make: *** [install/fast] Error 1

fixup_qt5_executable is apparently expecting the libraries to have been installed in their final destination already, but they have not been; they are in the destroot.

主要言語
C++
スター
33
フォーク
25
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenChemistry/molequeue のほかの issue

OpenChemistry/molequeue の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。