Results 1 to 7 of 7

Thread: Apps with libqxt-0.5.0

  1. #1
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Apps with libqxt-0.5.0

    Hello friends,

    after succesfully compiling and installing libqxt it is not possible to compile the example from libxt . For example when I try to compile the flowview example I get
    Qt Code:
    1. C:\libqxt-0.5.0\examples\qxtflowview>mingw32-make
    2. mingw32-make -f Makefile.Debug
    3. mingw32-make[1]: Entering directory `C:/libqxt-0.5.0/examples/qxtflowview'
    4. g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Qt\4.5.0\include\QtCore" -I"c:\Qt\4.5.0\include\QtGui" -I"c:\Qt\4.5.0\include" -I"c:\Qt\4.5.0\include\ActiveQt" -I"debug" -I"." -I"c:\Qt\4.5.0\mkspecs\win32-g++" -o debug\main.o main.cpp
    5. main.cpp:5:23: QxtFlowView: No such file or directory
    6. main.cpp: In function `int qMain(int, char**)':
    7. main.cpp:22: error: `QxtFlowView' undeclared (first use this function)
    8. main.cpp:22: error: (Each undeclared identifier is reported only once for each function it appears in.)
    9. main.cpp:22: error: expected `;' before "w"
    10. main.cpp:23: error: `w' undeclared (first use this function)
    11. mingw32-make[1]: *** [debug/main.o] Error 1
    12. mingw32-make[1]: Leaving directory `C:/libqxt-0.5.0/examples/qxtflowview'
    13. mingw32-make: *** [debug] Error 2
    To copy to clipboard, switch view to plain text mode 

    anybody any idea???

  2. #2
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Re: Apps with libqxt-0.5.0

    The web example give this error:

    Qt Code:
    1. C:\libqxt-0.5.0\examples\web>mingw32-make
    2. mingw32-make -f Makefile.Debug
    3. mingw32-make[1]: Entering directory `C:/libqxt-0.5.0/examples/web'
    4. g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQXT_WEB_LIB -DQXT_NETWORK_LIB -DQXT_CORE_LIB -DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Qt\4.5.0\include\QtCore" -I"c:\Qt\4.5.0\include\QtNetwork" -I"c:\Qt\4.5.0\include\QtGui" -I"c:\Qt\4.5.0\include" -I"c:\Qt\4.5.0\include\QxtCore" -I"c:\Qt\4.5.0\include\QxtNetwork" -I"c:\Qt\4.5.0\include\QxtWeb" -I"." -I"c:\libqxt\include\Qxt" -I"c:\libqxt\include\Qxt\QxtWeb" -I"c:\libqxt\include\Qxt\QxtNetwork" -I"c:\libqxt\include\Qxt\QxtCore" -I"c:\Qt\4.5.0\include\ActiveQt" -I"debug" -I"." -I"c:\Qt\4.5.0\mkspecs\win32-g++" -o debug\hello.o hello.cpp
    5. In file included from hello.cpp:1:
    6. hello.h:4:28: QxtWebController: No such file or directory
    7. In file included from hello.cpp:1:
    8. hello.h:7: error: expected class-name before '{' token
    9. hello.h:9: error: ISO C++ forbids declaration of `Q_OBJECT' with no type
    10. hello.h:9: error: expected `;' before "public"
    11. hello.h:11: error: expected `:' before "slots"
    12. hello.h:12: error: expected primary-expression before "int"
    13. hello.h:12: error: ISO C++ forbids declaration of `slots' with no type
    14. hello.h:12: error: expected `;' before "int"
    15. hello.cpp:3: error: definition of implicitly-declared `HelloWorld::HelloWorld()'
    16. hello.cpp:3: error: declaration of `HelloWorld::HelloWorld()' throws different exceptions
    17. hello.h:7: error: than previous declaration `HelloWorld::HelloWorld() throw ()'
    18. hello.cpp: In constructor `HelloWorld::HelloWorld()':
    19. hello.cpp:3: error: class `HelloWorld' does not have any field named `QxtWebController'
    20. hello.cpp: At global scope:
    21. hello.cpp:9: error: no `int HelloWorld::index()' member function declared in class `HelloWorld'
    22. hello.cpp: In member function `int HelloWorld::index()':
    23. hello.cpp:10: error: `echo' undeclared (first use this function)
    24. hello.cpp:10: error: (Each undeclared identifier is reported only once for each function it appears in.)
    25. mingw32-make[1]: *** [debug/hello.o] Error 1
    26. mingw32-make[1]: Leaving directory `C:/libqxt-0.5.0/examples/web'
    27. mingw32-make: *** [debug] Error 2
    To copy to clipboard, switch view to plain text mode 

    I don´t understand it cause I set set env variables: to LIB I add:"C:\libqxt\lib"
    and to INCLUDE : "C:\libqxt\include"

  3. #3
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Re: Apps with libqxt-0.5.0

    Or another question? Does anybody use this lib.

    How can I use one class from libqxt in my existing qt project??????

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Apps with libqxt-0.5.0

    You have to INSTALL the library first. You are supposed to run qmake in the examples folder AFTER the installation, because the example project files depend on the installed qmake feature file.
    J-P Nurmi

  5. #5
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Re: Apps with libqxt-0.5.0

    ahaa ok hmm dear nurmi I have installed it yet.

    I copy the libs into qt now it rocks but some of the examples are not compilable
    like here

    Qt Code:
    1. C:\libqxt-0.5.0\examples\country>qmake
    2. RCC: Error in 'country.qrc': Cannot find file '../../translations/qxt_de.qm'
    3. RCC: Error in 'country.qrc': Cannot find file '../../translations/qxt_en.qm'
    4. RCC: Error in 'country.qrc': Cannot find file '../../translations/qxt_es.qm'
    5. RCC: Error in 'country.qrc': Cannot find file '../../translations/qxt_fr.qm'
    6. RCC: Warning: No resources in 'country.qrc'.
    7. RCC: Error in 'country.qrc': Cannot find file '../../translations/qxt_de.qm'
    8. RCC: Error in 'country.qrc': Cannot find file '../../translations/qxt_en.qm'
    9. RCC: Error in 'country.qrc': Cannot find file '../../translations/qxt_es.qm'
    10. RCC: Error in 'country.qrc': Cannot find file '../../translations/qxt_fr.qm'
    11. RCC: Warning: No resources in 'country.qrc'.
    To copy to clipboard, switch view to plain text mode 

    it seems that during the building of the lib the *.qm files are not generated....

  6. #6
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Apps with libqxt-0.5.0

    Quote Originally Posted by codeman View Post
    I copy the libs into qt now it rocks but some of the examples are not compilable
    like here
    This is why the country example is commented out from examples.pro. The maintainer has been inactive lately. I'm looking forward to getting it fixed in Qxt 0.5.1.
    J-P Nurmi

  7. #7
    Join Date
    Apr 2009
    Posts
    206
    Thanks
    34
    Thanked 2 Times in 2 Posts

    Default Re: Apps with libqxt-0.5.0

    Ok thanx a lot ;o))

Similar Threads

  1. LibQxt
    By jpn in forum Qt-based Software
    Replies: 10
    Last Post: 9th October 2009, 22:20

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.