chrisburel / perlqt4

Automatically exported from code.google.com/p/perlqt4
Other
0 stars 0 forks source link

[FAILURE building perlqt4-read-only/smoke] CMake Error at qtcore/QtGuess.txt:111 (file): file STRINGS file "/qglobal.h" cannot be read. #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Most probably the $QTDIR is not used (while ubuntu does not privde it by 
default). Suggest to use the "qmake-qt4 -query" output to determine the dir for 
the qt4 includes. This reminds my of the hassle with QtScript generator which 
seem to be based on the same code. 

Suggestion: Use "configure" style installation routines. Check for "qmake-qt4 
-query" and use that.

What steps will reproduce the problem?

../smoke $ cmake .
CMake Error at qtcore/QtGuess.txt:111 (file):
  file STRINGS file "/qglobal.h" cannot be read.
Call Stack (most recent call first):
  qtcore/CMakeLists.txt:14 (include)

CMake Error at qtcore/QtGuess.txt:112 (file):
  file STRINGS file "/qconfig.h" cannot be read.
Call Stack (most recent call first):
  qtcore/CMakeLists.txt:14 (include)

CMake Error at qtcore/QtGuess.txt:113 (file):
  file STRINGS file "/qfeatures.h" cannot be read.
Call Stack (most recent call first):
  qtcore/CMakeLists.txt:14 (include)

CMake Warning at qtcore/QtGuess.txt:131 (if):
  given arguments:

    "EQUAL" "0"

  Unknown arguments specified
Call Stack (most recent call first):
  qtcore/CMakeLists.txt:14 (include)

-- Checking how Qt was built...
-- Threshold is set to 10
CMake Error at qtcore/QtGuess.txt:142 (include):
  include could not find load file:

    HandleImportedTargetsInCMakeRequiredLibraries
Call Stack (most recent call first):
  qtcore/CMakeLists.txt:14 (include)

CMake Error at qtcore/QtGuess.txt:145 
(HANDLE_IMPORTED_TARGETS_IN_CMAKE_REQUIRED_LIBRARIES):
  Unknown CMake command
  "HANDLE_IMPORTED_TARGETS_IN_CMAKE_REQUIRED_LIBRARIES".
Call Stack (most recent call first):
  qtcore/CMakeLists.txt:14 (include)

CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

What is the expected output? What do you see instead?

ok.

What version of PerlQt4 are you using? What version of Qt are you using? On
what operating system?

export QTDIR=/usr/include/qt4/

Please provide any additional information below.

----../smoke $ qmake-qt4 -query
QT_INSTALL_PREFIX:/usr
QT_INSTALL_DATA:/usr/share/qt4
QT_INSTALL_DOCS:/usr/share/qt4/doc
QT_INSTALL_HEADERS:/usr/include/qt4
QT_INSTALL_LIBS:/usr/lib
QT_INSTALL_BINS:/usr/bin
QT_INSTALL_PLUGINS:/usr/lib/qt4/plugins
QT_INSTALL_IMPORTS:/usr/lib/qt4/imports
QT_INSTALL_TRANSLATIONS:/usr/share/qt4/translations
QT_INSTALL_CONFIGURATION:/etc/xdg
QT_INSTALL_EXAMPLES:/usr/lib/qt4/examples
QT_INSTALL_DEMOS:/usr/lib/qt4/demos
QMAKE_MKSPECS:/usr/share/qt4/mkspecs
QMAKE_VERSION:2.01a
QT_VERSION:4.7.0

../smoke $ dpkg -l |grep libqt
ii  libqt4-core                                4:4.7.0-0ubuntu4                 
                 transitional package for Qt 4 core non-GUI runtime libraries
ii  libqt4-dbus                                4:4.7.0-0ubuntu4                 
                 Qt 4 D-Bus module
ii  libqt4-declarative                         4:4.7.0-0ubuntu4                 
                 Qt 4 Declarative module
ii  libqt4-declarative-folderlistmodel         4:4.7.0-0ubuntu4                 
                 Qt 4 folderlistmodel QML plugin
ii  libqt4-declarative-gestures                4:4.7.0-0ubuntu4                 
                 Qt 4 gestures QML plugin
ii  libqt4-declarative-particles               4:4.7.0-0ubuntu4                 
                 Qt 4 particles QML plugin
ii  libqt4-designer                            4:4.7.0-0ubuntu4                 
                 Qt 4 designer module
ii  libqt4-dev                                 4:4.7.0-0ubuntu4                 
                 Qt 4 development files
ii  libqt4-gui                                 4:4.7.0-0ubuntu4                 
                 transitional package for Qt 4 GUI runtime libraries
ii  libqt4-help                                4:4.7.0-0ubuntu4                 
                 Qt 4 help module
rc  libqt4-multimedia                          4:4.6.2-0ubuntu5.1               
                 Qt 4 Multimedia module
ii  libqt4-network                             4:4.7.0-0ubuntu4                 
                 Qt 4 network module
ii  libqt4-opengl                              4:4.7.0-0ubuntu4                 
                 Qt 4 OpenGL module
ii  libqt4-opengl-dev                          4:4.7.0-0ubuntu4                 
                 Qt 4 OpenGL library development files
ii  libqt4-qt3support                          4:4.7.0-0ubuntu4                 
                 Qt 3 compatibility library for Qt 4
ii  libqt4-script                              4:4.7.0-0ubuntu4                 
                 Qt 4 script module
ii  libqt4-scripttools                         4:4.7.0-0ubuntu4                 
                 Qt 4 script tools module
ii  libqt4-sql                                 4:4.7.0-0ubuntu4                 
                 Qt 4 SQL module
ii  libqt4-sql-mysql                           4:4.7.0-0ubuntu4                 
                 Qt 4 MySQL database driver
ii  libqt4-sql-sqlite                          4:4.7.0-0ubuntu4                 
                 Qt 4 SQLite 3 database driver
ii  libqt4-svg                                 4:4.7.0-0ubuntu4                 
                 Qt 4 SVG module
ii  libqt4-test                                4:4.7.0-0ubuntu4                 
                 Qt 4 test module
ii  libqt4-xml                                 4:4.7.0-0ubuntu4                 
                 Qt 4 XML module
ii  libqt4-xmlpatterns                         4:4.7.0-0ubuntu4                 
                 Qt 4 XML patterns module
rc  libqtassistantclient4                      4.6.3-1                          
                 Qt Assistant client library (runtime)
ii  libqtcontacts1                             1.0.2-2ubuntu0.1                 
                 Qt Mobility Contacts module
ii  libqtcore4                                 4:4.7.0-0ubuntu4                 
                 Qt 4 core module
ii  libqtgui4                                  4:4.7.0-0ubuntu4                 
                 Qt 4 GUI module
ii  libqtmultimediakit1                        1.0.2-2ubuntu0.1                 
                 Qt Mobility MultimediaKit module
ii  libqtpublishsubscribe1                     1.0.2-2ubuntu0.1                 
                 Qt Mobility Publish and Subscribe module
ii  libqtscript4-doc                           0.1.0-3ubuntu2                   
                 Qt 4 Qt Script bindings API documentation and examples
ii  libqtsensors1                              1.0.2-2ubuntu0.1                 
                 Qt Mobility Sensors module
ii  libqtserviceframework1                     1.0.2-2ubuntu0.1                 
                 Qt Mobility Service Framework module
ii  libqtversit1                               1.0.2-2ubuntu0.1                 
                 Qt Mobility Versit module
ii  libqtwebkit-dev                            2.0.0-0ubuntu1                   
                 Web content engine library for Qt - development files
ii  libqtwebkit4                               2.0.0-0ubuntu1                   
                 Web content engine library for Qt
ii  libqtwebkit4-declarative                   2.0.0-0ubuntu1                   
                 Declarative plugin for Web content engine library for Qt

Original issue reported on code.google.com by murat.ue...@gmail.com on 12 Nov 2010 at 12:54

GoogleCodeExporter commented 9 years ago
Ok, I hard edited QtGuess.txt to replace

${QT_QTCORE_INCLUDE_DIR} with /usr/include/qt4/Qt  to go on with the 
installation.

It seem that the smoke/README is some artifact/leftover from another project: 
qtguess.pl and generate.pl are mentioned. Likely that they generated 
QtGuess.txt etc, but they are not in the svg repo anymore. It says...

Regenerating
============

For SmokeQt:
 cd qt
 ./qtguess.pl
 ./generate.pl
 make

But even then, problems go on like this:

-----
../smoke $ locate qglobal.h
/usr/include/qt4/QtCore/qglobal.h
../smoke $ cmake .
CMake Warning at qtcore/QtGuess.txt:131 (if):
  given arguments:

    "EQUAL" "0"

  Unknown arguments specified
Call Stack (most recent call first):
  qtcore/CMakeLists.txt:14 (include)

-- Checking how Qt was built...
-- Threshold is set to 10
CMake Error at qtcore/QtGuess.txt:142 (include):
  include could not find load file:

    HandleImportedTargetsInCMakeRequiredLibraries
Call Stack (most recent call first):
  qtcore/CMakeLists.txt:14 (include)

CMake Error at qtcore/QtGuess.txt:145 
(HANDLE_IMPORTED_TARGETS_IN_CMAKE_REQUIRED_LIBRARIES):
  Unknown CMake command
  "HANDLE_IMPORTED_TARGETS_IN_CMAKE_REQUIRED_LIBRARIES".
Call Stack (most recent call first):
  qtcore/CMakeLists.txt:14 (include)

CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
../smoke $ grep -r HandleImportedTargetsInCMakeRequiredLibraries *
qtcore/.svn/text-base/QtGuess.txt.svn-base:include 
(HandleImportedTargetsInCMakeRequiredLibraries)
qtcore/QtGuess.txt:include (HandleImportedTargetsInCMakeRequiredLibraries)
../smoke $ find -name 'HandleImportedTargetsInCMakeRequiredLibraries'
../smoke $ find -name 'HandleImportedTargetsInCMakeRequiredLibraries*'
../smoke $ find -name '*HandleImportedTargetsInCMakeRequiredLibraries*'
../smoke $ locate HandleImportedTargetsInCMakeRequiredLibraries

Cough cough, the web says

HandleImportedTargetsInCMakeRequiredLibraries.cmake

is something from the kdebinding package:

http://web.archiveorange.com/archive/v/9eWtz9dvd811blFtfmzY

Original comment by murat.ue...@gmail.com on 12 Nov 2010 at 1:12