適当に翻訳する。
qt を /usr/local に手動でインストールしたが、/usr/local/include/QtDBus ディレクトリや /usr/local/bin/qtdbusxml2cpp、/usr/local/bin/qtdbuscpp2xml 等が見当たらない。その所為でいくつかのプログラムの構築に失敗する。
qt-everywhere-opensource-src-4.8.6/configure 文書を見る。QtDBus 機能は指定なしだとインストールされない場合もある様子。qt 構築に際して -dbus 指定を ./configure に付け、QtDBus 機能もインストールすることを明示する。
qt のインストール作業を行った qt-everywhere-opensource-src-4.8.6 フォルダに移動し、構築時に用いた Makefile があることを確認して、
sudo make clean
./configure --prefix=/usr/local -dbus
make
sudo make install
で解決した。
下は krep 構築失敗の出力。
[XXX@localhost krep]$ cmake . -DCMAKE_INSTALL_PREFIX=$HOME/playground
-- The C compiler identification is GNU 4.4.5
-- The CXX compiler identification is GNU 4.4.5
-- Check for working C compiler: /usr/bin/cc
...
...
...
...
-- Configuring done
CMake Warning (dev) at /usr/share/kde4/apps/cmake/modules/KDE4Macros.cmake:984 (add_executable):
Policy CMP0028 is not set: Double colon in target name means ALIAS or
IMPORTED target. Run "cmake --help-policy CMP0028" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target "krep" links to target "Qt4::QtDBus" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?
Call Stack (most recent call first):
CMakeLists.txt:19 (KDE4_ADD_EXECUTABLE)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /home/XXX/krep
[XXX@localhost krep]$ make
Scanning dependencies of target krep_automoc
Generating krep.moc
[ 0%] Built target krep_automoc
[ 14%] Generating ui_krepui.h
[ 28%] Generating mainadaptor.cpp, mainadaptor.h
make[2]: QT_DBUSXML2CPP_EXECUTABLE-NOTFOUND: コマンドが見つかりませんでした
make[2]: *** [mainadaptor.cpp] エラー 127
make[1]: *** [CMakeFiles/krep.dir/all] エラー 2
make: *** [all] エラー 2
下は libdbusmenu-qt-0.9.2 構築準備失敗の出力。
[XXX@localhost build]$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DWITH_DOC=OFF
-- The C compiler identification is GNU 4.4.5
-- The CXX compiler identification is GNU 4.4.5
...
...
...
...
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_QTDBUS_INCLUDE_DIR (ADVANCED)
used as include directory in directory /home/XXX/libdbusmenu-qt-0.9.2
used as include directory in directory /home/XXX/libdbusmenu-qt-0.9.2
used as include directory in directory /home/XXX/libdbusmenu-qt-0.9.2/src
used as include directory in directory /home/XXX/libdbusmenu-qt-0.9.2/tests
used as include directory in directory /home/XXX/libdbusmenu-qt-0.9.2/tests
used as include directory in directory /home/XXX/libdbusmenu-qt-0.9.2/tests
used as include directory in directory /home/XXX/libdbusmenu-qt-0.9.2/tests
used as include directory in directory /home/XXX/libdbusmenu-qt-0.9.2/tests
used as include directory in directory /home/XXX/libdbusmenu-qt-0.9.2/tests
used as include directory in directory /home/XXX/libdbusmenu-qt-0.9.2/tests
used as include directory in directory /home/XXX/libdbusmenu-qt-0.9.2/tests
used as include directory in directory /home/XXX/libdbusmenu-qt-0.9.2/tests
used as include directory in directory /home/XXX/libdbusmenu-qt-0.9.2/tests
used as include directory in directory /home/XXX/libdbusmenu-qt-0.9.2/tools/testapp
used as include directory in directory /home/XXX/libdbusmenu-qt-0.9.2/tools/testapp
-- Configuring incomplete, errors occurred!
See also "/home/XXX/libdbusmenu-qt-0.9.2/build/CMakeFiles/CMakeOutput.log".
See also "/home/XXX/libdbusmenu-qt-0.9.2/build/CMakeFiles/CMakeError.log".
カレンダー
カテゴリー
最新コメント
最新記事
ブログ内検索
広告