Hi,

Hi,

I installed QT4.6 for linux/x11 (qt-sdk-linux-x86-opensource-2009.05.bin) on Ubuntu 9.1. I designed the UI in QTCreator 1.3, compiled my application with no errors and it ran successfully in the native WMWare environment within QT.

Flushed with success I fired up the scratchbox (x86 target) which has libqt4-maemo5-dev installed (and qt4.5.2).

The x86 compilation failed.

qmake -project
qmake CamerDepthOfField
make

produced the following:

[sbox-FREMANTLE_X86: ~/workspaceqt/CameraDOF/CameraDepthOfField] > cat CameraDepthOfField.pro
# -------------------------------------------------
# Project created by QtCreator 2009-12-31T12:42:02
# -------------------------------------------------
TARGET = CameraDepthOfField
TEMPLATE = app
SOURCES += main.cpp \
mainwindow.cpp \
dof_functions.cpp
HEADERS += mainwindow.h \
dof_functions.h
FORMS += DOF_Form.ui
[sbox-FREMANTLE_X86: ~/workspaceqt/CameraDOF/CameraDepthOfField] > qmake -project
[sbox-FREMANTLE_X86: ~/workspaceqt/CameraDOF/CameraDepthOfField] > qmake CameraDepthOfField.pro
[sbox-FREMANTLE_X86: ~/workspaceqt/CameraDOF/CameraDepthOfField] > make
g++ -c -pipe -g -g -O0 -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED

-I/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/linux-g++-opengl -I. -I/targets/FREMANTLE_X86/usr/include/qt4/QtCore

-I/targets/FREMANTLE_X86/usr/include/qt4/QtGui -I/targets/FREMANTLE_X86/usr/include/qt4 -I. -I. -I. -o dof_functions.o

dof_functions.cpp
In file included from dof_functions.h:6,
from dof_functions.cpp:2:
ui_DOF_Form.h: In member function 'void Ui_MainWindow::setupUi(QMainWindow*)':
ui_DOF_Form.h:97: error: 'class QLineEdit' has no member named 'setInputMethodHints'
ui_DOF_Form.h:97: error: 'ImhDigitsOnly' is not a member of 'Qt'
ui_DOF_Form.h:97: error: 'ImhFormattedNumbersOnly' is not a member of 'Qt'
ui_DOF_Form.h:97: error: 'ImhPreferNumbers' is not a member of 'Qt'
ui_DOF_Form.h:146: error: 'class QLineEdit' has no member named 'setInputMethodHints'
ui_DOF_Form.h:146: error: 'ImhFormattedNumbersOnly' is not a member of 'Qt'
ui_DOF_Form.h:146: error: 'ImhPreferNumbers' is not a member of 'Qt'
ui_DOF_Form.h:220: error: 'class QDoubleSpinBox' has no member named 'setInputMethodHints'
ui_DOF_Form.h:220: error: 'ImhDigitsOnly' is not a member of 'Qt'
ui_DOF_Form.h:220: error: 'ImhFormattedNumbersOnly' is not a member of 'Qt'


Am I being too ambitious or have I managed to misconfigure the libraries/got the wrong versions? What do I need to check or update?

Many thanks,
David