忍者ブログ

素人翻訳

適当に翻訳する。

QtDBus、qtdbusxml2cpp、無い。

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".
PR

コメント

お名前
タイトル
文字色
メールアドレス
URL
コメント
パスワード Vodafone絵文字 i-mode絵文字 Ezweb絵文字

カレンダー

06 2020/07 08
S M T W T F S
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

最新コメント

[04/05 NONAME]

ブログ内検索

広告

バーコード

広告