Results 1 to 4 of 4

Thread: Qt on Mandriva big problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2007
    Posts
    117
    Thanks
    84
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Qt on Mandriva big problem

    I've freshly installed Mandriva 2007
    I've freshly installed Qt 4.3.1
    I followed step by step procedures in installing this. - "configure" then "make" - all seems well

    I'm trying to run my windows developed project in this Linux Distribution (Mandriva 2007)

    I tried to run qtdesigner, qtexamples and demos, qt assistant (success)
    I also tried to run demos and examples on "qtdemo" (success)
    Under konsole:
    I Typed "qt-project" on my project folder (success)
    I Typed "qmake" (sucess)
    I Typed "make" (hundreds of errors)

    The main error I get is QtGui has not been declared

    mainwindow.h:12:17: error: QtGui: No such file or directory
    mainwindow.h:13:17: error: QList: No such file or directory
    mainwindow.h:14:25: error: QPluginLoader: No such file or directory
    mainwindow.h:15:24: error: QtAlgorithms: No such file or directory

    and the ff

    i_mainwindow.h:574: error: ‘Qt’ has not been declared
    ui_mainwindow.h:575: error: ‘groupBoxParameter_5’ was not declared in this scope
    ui_mainwindow.h:575: error: expected type-specifier before ‘QGroupBox’
    ui_mainwindow.h:575: error: expected `;' before ‘QGroupBox’
    ui_mainwindow.h:576: error: ‘QString’ is not a class or namespace
    ui_mainwindow.h:578: error: ‘graphicsViewParameter_5’ was not declared in this scope
    ui_mainwindow.h:578: error: expected type-specifier before ‘QGraphicsView’
    ui_mainwindow.h:578: error: expected `;' before ‘QGraphicsView’
    ui_mainwindow.h:579: error: ‘QString’ is not a class or namespace
    ui_mainwindow.h:581: error: ‘btnParameter_5’ was not declared in this scope
    ui_mainwindow.h:581: error: expected type-specifier before ‘QPushButton’
    ui_mainwindow.h:581: error: expected `;' before ‘QPushButton’
    ui_mainwindow.h:582: error: ‘QString’ is not a class or namespace
    ui_mainwindow.h:584: error: ‘QString’ is not a class or namespace
    ui_mainwindow.h:585: error: ‘btnParameterDefine_5’ was not declared in this scope
    ui_mainwindow.h:585: error: expected type-specifier before ‘QPushButton’
    ui_mainwindow.h:585: error: expected `;' before ‘QPushButton’
    ui_m
    ui_mainwindow.h:727: error: ‘QApplication’ has not been declared
    ui_mainwindow.h:729: error: ‘btnFunctionRaw’ was not declared in this scope
    ui_mainwindow.
    Image Analysis Development Framework Using Qt (IADFUQ)

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt on Mandriva big problem

    Quote Originally Posted by sincnarf View Post
    I've freshly installed Mandriva 2007
    Too bad as Mandriva 2008 is coming out this/next week

    I Typed "qmake" (sucess)
    I Typed "make" (hundreds of errors)
    Try /usr/lib/qt4/bin/qmake and see if it works. If so, I suggest you create a softlink from the file to /usr/bin/qmake4 and call "qmake4" instead of qmake (the latter is probably qmake for Qt3 - run qmake -v to check it out).

  3. #3
    Join Date
    Apr 2007
    Posts
    117
    Thanks
    84
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt on Mandriva big problem

    typing qmake -v i get

    Qmake version: 1.07a (Qt 3.3.6)
    Qmake is free software from Trolltech AS.
    Ok, it's not my updated version.... how can I create a" softlink"? to qmake4?
    Image Analysis Development Framework Using Qt (IADFUQ)

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt on Mandriva big problem

    ln -s /usr/lib/qt4/bin/qmake /usr/bin/qmake4 (as root of course)

  5. The following user says thank you to wysota for this useful post:

    sincnarf (4th October 2007)

Similar Threads

  1. [QMYSQL] connection problem
    By chaos_theory in forum Installation and Deployment
    Replies: 5
    Last Post: 2nd July 2007, 09:52
  2. QTimer problem ... it runs but never triggs
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 12:54
  3. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45
  4. Problem with bitBlt
    By yellowmat in forum Newbie
    Replies: 1
    Last Post: 5th April 2006, 14:08
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.