忍者ブログ

素人翻訳

適当に翻訳する。

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

ライブラリ qt-mt と KDE の prefix

qt4 も qt3 も入れてあるのに qt-mt が見つからない。見つかるようにしたら、今度は kde のヘッダが見つからない。

...
checking for Qt... configure: error: Qt (>= Qt 3.2 and < 4.0) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.

ここで、qt4 とか qt3 とかをインストール。

...
checking for Qt... configure: error: Qt (>= Qt 3.2 and < 4.0) (library qt-mt) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
Make sure that you have compiled Qt with thread support!

qt の版が 3.2 以降、4.0 以前でないと駄目らしい。
参考その壱

$ qmake -v
QMake version 2.01a
Using Qt version 4.7.2 in /usr/lib64/qt-4.7.2/lib

参考その弐

$ ls $QTDIR
libQt3Support.prl libQtNetwork.so@
libQt3Support.so@ libQtNetwork.so.4@
libQt3Support.so.4@ libQtNetwork.so.4.7@
libQt3Support.so.4.7@ libQtNetwork.so.4.7.2*
libQt3Support.so.4.7.2* libQtOpenGL.prl
libQtCLucene.prl libQtOpenGL.so@
libQtCLucene.so@ libQtOpenGL.so.4@
libQtCLucene.so.4@ libQtOpenGL.so.4.7@
libQtCLucene.so.4.7@ libQtOpenGL.so.4.7.2*
libQtCLucene.so.4.7.2* libQtScript.prl
...
...
...

qt4.7.2は使えない模様。構築中のプログラムの configure 文書を見て、「--with-qt-dir=XXX」「--with-qt-include=YYY」「--with-qt-libraries=ZZZ」「--enable-libsuffix=64」を使うことにする。

Qt、古い版の読込み成功。

$ ./configure --enable-libsuffix=64 --with-qt-dir=/usr/lib64/qt-3.3.8 --with-qt-include=/usr/lib64/qt-3.3.8/include --with-qt-libraries=/usr/lib64/qt-3.3.8/lib
...
...
checking for Qt... libraries /usr/lib64/qt-3.3.8/lib, headers /usr/lib64/qt-3.3.8/include using -mt
checking for moc... /usr/lib64/qt-3.3.8/bin/moc
checking for uic... /usr/lib64/qt-3.3.8/bin/uic
...
...
checking for KDE... configure: error:
in the prefix, you've chosen, are no KDE headers installed. This will fail.
So, check this please and use another prefix!

しかし kde のヘッダが prefix に無いらしい。色々と調べてみると、ここでの prefix は KDE のそれであって、./configure の --prefix=XXX ではないとか。参考命令が以下。

[XXX@localhost ~]$ kde-config -v
Qt: 3.3.8
KDE: 3.5.10-6vl6
kde-config: 1.0
[XXX@localhost ~]$ kde4-config -v
Qt: 4.7.2
KDE Development Platform: 4.6.4 (4.6.4)
kde4-config: 1.0
[XXX@localhost ~]$ kde-config --prefix
/usr
[XXX@localhost ~]$ kde4-config --prefix
/usr

kde4 はインストールしてあったが kde3 は入れてなかった。「kdelibs3」「kdelibs3-devel」を導入して解決。

最終的に成功した命令文。上と同じ。

$ ./configure --enable-libsuffix=64 --with-qt-dir=/usr/lib64/qt-3.3.8 --with-qt-include=/usr/lib64/qt-3.3.8/include --with-qt-libraries=/usr/lib64/qt-3.3.8/lib

次のエラーは「arts」「arts-devel」をインストールして解決。

checking for mcopidl... not found
configure: error: The important program mcopidl was not found!
Please check whether you installed aRts correctly or use
--without-arts to compile without aRts support (this will remove functionality).

カレンダー

12 2025/01 02
S M T W T F S
1 2 4
5 6 7 8 9 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

最新コメント

[09/07 NONAME]
[08/18 NONAME]
[05/18 NONAME]
[04/09 NONAME]
[03/21 NONAME]

最新記事

(01/10)
(01/03)
(12/20)
(12/08)
(11/20)
(10/30)
(10/24)
(09/20)
(09/16)
(09/11)
(09/03)
(09/02)
(08/27)
(08/17)
(07/31)
(07/30)
(07/19)
(07/13)
(05/02)
(03/17)
(11/01)
(07/20)
(05/17)
(04/20)
(03/10)

ブログ内検索

広告

バーコード

広告