Re: Sofa-framework: Again QT help needed
The patch files.
Compilation works but I cannot
- compile the PluginSample (seems to be buggy)
- install using make install
Explaination:
When porting Qt3 to Qt4 you need to add
QT += qt3support
but **also**
DEFINES += QT3_SUPPORT
Read doc:
http://doc.qt.nokia.com/4.7/porting4.html
after introduction : "To port code from Qt 3 to Qt 4:" -> Paragraph 3.
Give them a try and tell me.
Eric
*** ./sofa-1.0-rc1/applications/sofa/gui/qt/qt.pro 2011-12-13 10:42:07.000000000 +0100
--- ./sofa-1.0-rc1_patched/applications/sofa/gui/qt/qt.pro 2012-01-01 23:00:16.339090498 +0100
***************
*** 11,17 ****
contains(DEFINES, SOFA_QT4) {
CONFIG += qt uic uic3
! QT += opengl qt3support xml
FORMS3 += GUI.ui
FORMS3 += BaseGenGraphForm.ui
--- 11,18 ----
contains(DEFINES, SOFA_QT4) {
CONFIG += qt uic uic3
! QT *= opengl qt3support xml
! DEFINES *= QT3_SUPPORT
FORMS3 += GUI.ui
FORMS3 += BaseGenGraphForm.ui
*** ./sofa-1.0-rc1/applications/projects/Modeler/exec/exec.pro 2011-12-13 10:42:07.000000000 +0100
--- ./sofa-1.0-rc1_patched/applications/projects/Modeler/exec/exec.pro 2012-01-01 22:59:48.787091268 +0100
***************
*** 8,13 ****
--- 8,18 ----
INCLUDEPATH += $$BUILD_DIR/../lib/$$UI_DIR # HACK: some uic generated headers are generated in another .pro
DEPENDPATH += $$BUILD_DIR/../lib/$$UI_DIR # HACK: some uic generated headers are generated in another .pro
+ contains (DEFINES, SOFA_QT4) {
+ QT *= qt3support
+ DEFINES *= QT3_SUPPORT
+ }
+
macx : {
CONFIG +=app_bundle
RC_FILE = Modeler.icns
*** ./sofa-1.0-rc1/applications/projects/Modeler/lib/lib.pro 2011-12-13 10:42:07.000000000 +0100
--- ./sofa-1.0-rc1_patched/applications/projects/Modeler/lib/lib.pro 2012-01-01 22:59:40.583091497 +0100
***************
*** 41,48 ****
QCategoryTreeLibrary.cpp \
QComponentTreeLibrary.cpp
! CONFIG += qt uic uic3
! QT += qt3support xml
FORMS3 += Modeler.ui
FORMS3 += DialogAddPreset.ui
FORMS3 += ../../../sofa/gui/qt/PluginManager.ui
--- 41,50 ----
QCategoryTreeLibrary.cpp \
QComponentTreeLibrary.cpp
! CONFIG += qt uic uic3
! QT *= qt3support xml
! DEFINES *= QT3_SUPPORT
!
FORMS3 += Modeler.ui
FORMS3 += DialogAddPreset.ui
FORMS3 += ../../../sofa/gui/qt/PluginManager.ui
*** ./sofa-1.0-rc1/Sofa.pro 2011-12-13 10:41:54.000000000 +0100
--- ./sofa-1.0-rc1_patched/Sofa.pro 2012-01-02 00:44:19.882805682 +0100
***************
*** 10,16 ****
# Enable plugins in addition of the standard Sofa libraries
########################################################################
! usePlugin(PluginExample)
contains(DEFINES, SOFA_HAVE_SENSABLE) {
usePlugin(Sensable)
--- 10,16 ----
# Enable plugins in addition of the standard Sofa libraries
########################################################################
! #usePlugin(PluginExample)
contains(DEFINES, SOFA_HAVE_SENSABLE) {
usePlugin(Sensable)
Reply to: