Results 1 to 20 of 24

Thread: QSerialDevice v 0.2.0 released

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Posts
    75
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QSerialDevice v 0.2.0 released

    Quote Originally Posted by mastupristi View Post
    I have the same problem, but also distcleaning the problem is still present.
    I am able to correclty compile the integrated library

    here is the project:
    http://dl.dropbox.com/u/7966431/testQSer.zip

    I run Ubuntu 9.10 64 bit, gcc 4.4.1, qt 4.5.2

    thanks


    Maybe I am wrong but I can check only tomorrow morning
    Unfortunately I must confirm the problem, even if I delete all generated files:

    the errors are:
    Qt Code:
    1. Running build steps for project testQSer...
    2. Starting: "/usr/bin/qmake-qt4" /home/POWERSOFT/massimiliano/prog/testQser/testQSer/testQSer.pro -r -spec linux-g++ CONFIG+=debug
    3. The process "/usr/bin/qmake-qt4" exited normally.
    4. Starting: "/usr/bin/make" -w
    5. make: ingresso nella directory «/home/POWERSOFT/massimiliano/prog/testQser/testQSer-build-desktop»
    6. g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../testQSer -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -I../testQSer -I. -o main.o ../testQSer/main.cpp
    7. /usr/bin/moc-qt4 -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../testQSer -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -I../testQSer -I. ../testQSer/myclass.h -o moc_myclass.cpp
    8. g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../testQSer -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -I../testQSer -I. -o moc_myclass.o moc_myclass.cpp
    9. /usr/bin/moc-qt4 -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../testQSer -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -I../testQSer -I. ../testQSer/seriale/serialdevicewatcher.h -o moc_serialdevicewatcher.cpp
    10. g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../testQSer -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -I../testQSer -I. -o moc_serialdevicewatcher.o moc_serialdevicewatcher.cpp
    11. moc_serialdevicewatcher.cpp:12:2: error: #error "The header file 'serialdevicewatcher.h' doesn't include <QObject>."
    12. In file included from moc_serialdevicewatcher.cpp:10:
    13. ../testQSer/seriale/serialdevicewatcher.h:29: error: expected class-name before ‘{’ token
    14. ../testQSer/seriale/serialdevicewatcher.h:30: error: ‘Q_OBJECT’ does not name a type
    15. ../testQSer/seriale/serialdevicewatcher.h:36: error: expected ‘)’ before ‘*’ token
    16. ../testQSer/seriale/serialdevicewatcher.h:41: error: ‘QStringList’ does not name a type
    17. ../testQSer/seriale/serialdevicewatcher.h:47: error: ISO C++ forbids declaration of ‘Q_DECLARE_PRIVATE’ with no type
    18. ../testQSer/seriale/serialdevicewatcher.h:48: error: expected ‘;’ before ‘Q_DISABLE_COPY’
    19. ../testQSer/seriale/serialdevicewatcher.h:50: error: expected ‘;’ before ‘}’ token
    20. ../testQSer/seriale/serialdevicewatcher.h:44: warning: non-static const member ‘SerialDeviceWatcherPrivate* const SerialDeviceWatcher::d_ptr’ in class without a constructor
    21. moc_serialdevicewatcher.cpp:20: error: expected constructor, destructor, or type conversion before ‘static’
    22. moc_serialdevicewatcher.cpp:46: error: ‘QMetaObject’ does not name a type
    23. moc_serialdevicewatcher.cpp:51: error: expected initializer before ‘*’ token
    24. moc_serialdevicewatcher.cpp:56: error: no ‘void* SerialDeviceWatcher::qt_metacast(const char*)’ member function declared in class ‘SerialDeviceWatcher’
    25. moc_serialdevicewatcher.cpp:64: error: ‘int SerialDeviceWatcher::qt_metacall’ is not a static member of ‘class SerialDeviceWatcher’
    26. moc_serialdevicewatcher.cpp:64: error: ‘QMetaObject’ has not been declared
    27. moc_serialdevicewatcher.cpp:64: error: expected primary-expression before ‘int’
    28. moc_serialdevicewatcher.cpp:64: error: expected primary-expression before ‘void’
    29. moc_serialdevicewatcher.cpp:64: error: initializer expression list treated as compound expression
    30. moc_serialdevicewatcher.cpp:65: error: expected ‘,’ or ‘;’ before ‘{’ token
    31. make: uscita dalla directory «/home/POWERSOFT/massimiliano/prog/testQser/testQSer-build-desktop»
    32. make: *** [moc_serialdevicewatcher.o] Errore 1
    33. The process "/usr/bin/make" exited with code %2.
    34. Error while building project testQSer (target: Desktop)
    35. When executing build step 'Make'
    To copy to clipboard, switch view to plain text mode 

    my test project has been updated:
    http://dl.dropbox.com/u/7966431/testQSer.zip

    any idea?

    thanks
    Last edited by mastupristi; 14th September 2010 at 08:44.

  2. #2
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSerialDevice v 0.2.0 released

    Try download current Git snapshot and rebuild library.
    Classes SerialDeviceWatcher and SerialDeviceInfo more is not supported (deprecated). Try class SerialDeviceEnumerator.

  3. #3
    Join Date
    Sep 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QSerialDevice v 0.2.0 released

    Hello, I´m using QT4.6.3 in conjunction with VS2008.... so i downloaded QSERIALDEVICE 2.0 and tried to compile the QserialDevice.Lib in the way documented in the file readme_en.txt....... so qmake BuildIntegr........... works fine....the when i type the command "make" ther appears the Error Message "makefile:83: *** missing separator. Stop" so the tree under the directory build stays nearly empty..... Do anyone have an Idea? Without the Lib there ist no way to try serial programming Thanks for every help -Ralf-

  4. #4
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSerialDevice v 0.2.0 released

    2 rmeeh

    1. Try download from Git : http://gitorious.org/qserialdevice
    2. The current version (Git) is not 0.2.0! (It is closer to 0.3.0).
    3. Do not use "readme_en.txt" and etc.
    4. To build the library, use only "BuildLibrary.pro":
    #qmake BuildLibrary.pro
    #make
    (Preset project to build DEBUG or RELEASE)

  5. #5
    Join Date
    Sep 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QSerialDevice v 0.2.0 released

    Thank´s for your mail.
    I don´t have a cvs system in use, so i´m not able to download the sources.
    Is there no way to get a ZIP or rar archive with an actual snapshot? Normaly i develop small projects for Amateur Radio (technical things) so i don´t need a cvs. This time i need a serial asyncronus communication to an ATMEGA Microcontroller which controlls an Axis.......and i´ve never used a CVS in my life ;-)
    best Regards, -Ralf-

  6. #6
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSerialDevice v 0.2.0 released

    2 rmeeh,

    You're not looking for and inconsiderate!

    Download here http://gitorious.org/qserialdevice/q...tarball/master

  7. #7
    Join Date
    Sep 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QSerialDevice v 0.2.0 released

    [QUOTE=kuzulis;158746]2 rmeeh,

    You're not looking for and inconsiderate!

    Thank´s very much, you´re right, how could i belive that you would not be prepeared..
    with a little trouble the library compiled using Visual Studio 2008
    Now the work will start understanding the classes.
    Have a nice weekend
    -Ralf-

Similar Threads

  1. QSerialDevice Problem
    By waynew in forum Qt Programming
    Replies: 8
    Last Post: 21st January 2010, 14:31
  2. QSerialDevice
    By clinisbut in forum Qt Programming
    Replies: 2
    Last Post: 23rd October 2009, 13:30
  3. [solved] QSerialDevice: How to set baudrate?
    By schlingel in forum Qt Programming
    Replies: 1
    Last Post: 14th October 2009, 11:52
  4. Library QSerialDevice v 0.1.0 released
    By kuzulis in forum Qt Programming
    Replies: 0
    Last Post: 15th September 2009, 06:47
  5. new library QSerialDevice
    By kuzulis in forum Qt Programming
    Replies: 2
    Last Post: 13th July 2009, 05:42

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.