It's not part of Qt distribution but an external class. It's at sourceforge. If you can't find it, google for it.
It's not part of Qt distribution but an external class. It's at sourceforge. If you can't find it, google for it.
Found it and downloaded it.
It built and ran on MacOSX and Linux, but surprisingly enough it did not build on Windows.
In Version 1.1 the library built but not the example.
In Version 1.2 (newer, tuned for windows) it did not even build the library.
I have worked with it only a few hours so far, but not so good.
On Mac and Linux I only did a dryrun without actual ports attached, I will try it out tomorrow.
I am using Qt.4.4.0.
BN
MacOSX user dabbling with Linux and Windows.
I assure you it works fine on Windows.
I am happy to hear that it works for you.I assure you it works fine on Windows.
I just unpacked it, did "qmake" at the directory root, and then "qmake" at ./examples/qespta.
Here is a small part of the errors, I had to expand the WinXP Command Tool to 2000 lines:
I guess this has nothing to do with the serial port code, it looks like it does not link to Qt itself(?)C:\Documents and Settings\bnilsson\My Documents\Qt\qextserialport\examples\qespta>make
make -f Makefile.Debug
make[1]: Entering directory `C:/Documents and Settings/bnilsson/My Documents/Qt/qextserialport/examp
les/qespta'
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl
,-subsystem,windows -o debug\qespta.exe obj/main.o obj/MainWindow.o obj/MessageWindow.o obj/QespTest
.o obj/moc_MainWindow.o obj/moc_MessageWindow.o obj/moc_QespTest.o -L"..\..\build" -L"c:\Qt\4.4.0\l
ib" -lmingw32 -lqtmaind -lqextserialport -lQtGuid -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwi
nspool -lmsimg32 -lQtCored -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32
obj/main.o(.text+0x161): In function `Z5qMainiPPc':
C:/Documents and Settings/bnilsson/My Documents/Qt/qextserialport/examples/qespta/main.cpp:19: undef
ined reference to `_imp___ZN12QApplicationC1ERiPPci'
obj/main.o(.text+0x179):C:/Documents and Settings/bnilsson/My Documents/Qt/qextserialport/examples/q
espta/main.cpp:21: undefined reference to `_imp___Z18qInstallMsgHandlerPFv9QtMsgTypePKcE'
obj/main.o(.text+0x217):C:/Documents and Settings/bnilsson/My Documents/Qt/qextserialport/examples/q
espta/main.cpp:25: undefined reference to `_imp___ZN12QApplication4execEv'
obj/main.o(.text$_ZN10MainWindowD1Ev[MainWindow::~MainWindow()]+0x22): In function `ZN7QStringC1EPKc
':
c:/Qt/4.4.0/include/QtCore/../../src/corelib/arch/qatomic_windows.h: undefined reference to `_imp___
ZN11QMainWindowD2Ev'
I have other Qt projects that works, so my installation seems to be ok.
Here is the .pro file:
I know this is not your stuff, but it will probably take longer for me to contact the authors themselves, and you may have a simple solution.################################################## ####################
# QextSerialPort Test Application (QESPTA)
################################################## ####################
PROJECT = QESPTA
TEMPLATE = app
DEPENDPATH += .
INCLUDEPATH += ../..
QMAKE_LIBDIR += ../../build
OBJECTS_DIR = obj
MOC_DIR = moc
UI_DIR = uic
CONFIG += qt thread warn_on
HEADERS += MainWindow.h \
MessageWindow.h \
QespTest.h
SOURCES += main.cpp \
MainWindow.cpp \
MessageWindow.cpp \
QespTest.cpp
LIBS += -lqextserialport
unixEFINES = _TTY_POSIX_
win32EFINES = _TTY_WIN_ QWT_DLL QT_DLL
It will be essential for me to have access to a working example.
Thanks,
BN
MacOSX user dabbling with Linux and Windows.
I found the problem.
After changingtounixEFINES = _TTY_POSIX_
win32EFINES = _TTY_WIN_ QWT_DLL QT_DLL
it worked.unixEFINES = _TTY_POSIX_
win32EFINES = _TTY_WIN_
BN
MacOSX user dabbling with Linux and Windows.
Having looked through the latest version of QextSerialPort-1.2, it seems a very important feature, the QextSerialEnumerator, is not implemented for POSIX systems.
Is this not done because of any thecnical difficulties?
Or just lack of interest or time?
I would like to ecourage anybody with the required skill to do this, since without it this class may be a bit difficult to use.
BN
Last edited by bnilsson; 3rd July 2008 at 21:39.
MacOSX user dabbling with Linux and Windows.
I'm gathering time and motivation to take the ext serial port code and continue its development as it seems the original maintainer is not interested in it. Enumerating ports in POSIX systems is harder as there is no single way of determining what is and what is not a serial port. Even if you do it on one system (like Linux) it can be completely different on another (like Solaris).
thanks for doing that i think the repository on google projects is getting updated for other platforms like MAC OS X, the serial port lib on sourceforge compiles successfully, but I am facing problems in compiling the QESPTA example from the QT Creator, gives the following compiler output:
make: *** No rule to make target `\usr\local\Qt4.6\mkspecs\macx-g++\qmake.conf', needed by `Makefile'. Stop.
Qt Code:
Running build steps for project QESPTA... Starting: /usr/bin/qmake /Users/admin/Desktop/QT/qextserialport/examples/qespta/QESPTA.pro -spec macx-g++ -r CONFIG+=debug_and_release -win32 Exited with code 0. Starting: /usr/bin/make debug -w make: *** No rule to make target `\usr\local\Qt4.6\mkspecs\macx-g++\qmake.conf', needed by `Makefile'. Stop. make: Entering directory `/Users/admin/Desktop/QT/qextserialport/examples/qespta' make: Leaving directory `/Users/admin/Desktop/QT/qextserialport/examples/qespta' Exited with code 2. Error while building project QESPTA When executing build step 'Make'To copy to clipboard, switch view to plain text mode
Last edited by anupamgee; 9th February 2010 at 18:19. Reason: wrong use of CODE tag
Bookmarks