PDA

View Full Version : Apps with libqxt-0.5.0



codeman
4th May 2009, 11:36
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


C:\libqxt-0.5.0\examples\qxtflowview>mingw32-make
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/libqxt-0.5.0/examples/qxtflowview'
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
main.cpp:5:23: QxtFlowView: No such file or directory
main.cpp: In function `int qMain(int, char**)':
main.cpp:22: error: `QxtFlowView' undeclared (first use this function)
main.cpp:22: error: (Each undeclared identifier is reported only once for each function it appears in.)
main.cpp:22: error: expected `;' before "w"
main.cpp:23: error: `w' undeclared (first use this function)
mingw32-make[1]: *** [debug/main.o] Error 1
mingw32-make[1]: Leaving directory `C:/libqxt-0.5.0/examples/qxtflowview'
mingw32-make: *** [debug] Error 2



anybody any idea???

codeman
4th May 2009, 11:50
The web example give this error:



C:\libqxt-0.5.0\examples\web>mingw32-make
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/libqxt-0.5.0/examples/web'
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
In file included from hello.cpp:1:
hello.h:4:28: QxtWebController: No such file or directory
In file included from hello.cpp:1:
hello.h:7: error: expected class-name before '{' token
hello.h:9: error: ISO C++ forbids declaration of `Q_OBJECT' with no type
hello.h:9: error: expected `;' before "public"
hello.h:11: error: expected `:' before "slots"
hello.h:12: error: expected primary-expression before "int"
hello.h:12: error: ISO C++ forbids declaration of `slots' with no type
hello.h:12: error: expected `;' before "int"
hello.cpp:3: error: definition of implicitly-declared `HelloWorld::HelloWorld()'
hello.cpp:3: error: declaration of `HelloWorld::HelloWorld()' throws different exceptions
hello.h:7: error: than previous declaration `HelloWorld::HelloWorld() throw ()'
hello.cpp: In constructor `HelloWorld::HelloWorld()':
hello.cpp:3: error: class `HelloWorld' does not have any field named `QxtWebController'
hello.cpp: At global scope:
hello.cpp:9: error: no `int HelloWorld::index()' member function declared in class `HelloWorld'
hello.cpp: In member function `int HelloWorld::index()':
hello.cpp:10: error: `echo' undeclared (first use this function)
hello.cpp:10: error: (Each undeclared identifier is reported only once for each function it appears in.)
mingw32-make[1]: *** [debug/hello.o] Error 1
mingw32-make[1]: Leaving directory `C:/libqxt-0.5.0/examples/web'
mingw32-make: *** [debug] Error 2


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

codeman
4th May 2009, 14:48
Or another question? Does anybody use this lib.

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

jpn
4th May 2009, 16:07
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.

codeman
5th May 2009, 11:14
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



C:\libqxt-0.5.0\examples\country>qmake
RCC: Error in 'country.qrc': Cannot find file '../../translations/qxt_de.qm'
RCC: Error in 'country.qrc': Cannot find file '../../translations/qxt_en.qm'
RCC: Error in 'country.qrc': Cannot find file '../../translations/qxt_es.qm'
RCC: Error in 'country.qrc': Cannot find file '../../translations/qxt_fr.qm'
RCC: Warning: No resources in 'country.qrc'.
RCC: Error in 'country.qrc': Cannot find file '../../translations/qxt_de.qm'
RCC: Error in 'country.qrc': Cannot find file '../../translations/qxt_en.qm'
RCC: Error in 'country.qrc': Cannot find file '../../translations/qxt_es.qm'
RCC: Error in 'country.qrc': Cannot find file '../../translations/qxt_fr.qm'
RCC: Warning: No resources in 'country.qrc'.


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

jpn
5th May 2009, 14:17
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.

codeman
6th May 2009, 10:21
Ok thanx a lot ;o))