[SOLVED] Cannot find: lQt5ExtSerialPort
-
I am trying to do a simple read and write using QextSerialPort.
However, the compiler gives the above error.Please help.
-
Hi,
Just to be sure, are you using QSerialPort or QextSerialPort ?
Also which version of Qt ? -
I am using QextSerialPort since QSerialPort is not supported by Qt 4.7.
I am using QT 5.0.2. However, I want to run it on my Sitara kit which supports Qt 4.7.*I have copied the library file to the Qt installation directory.
Yet, the error persists. -
Are you sure that the lib file is found ? Did you add the path to it ?
Also since you are going to use it with two different major version of Qt, you should rather include it in your project and compile it there.
-
I checked the library. It is broken. How do I fix it?
I have included it in my project. What do I specify in INCLUDEPATH? -
What do you mean by "it's broken" ?
-
In the file properties, it shows me the following:
link (broken) (inode/symlink)Please guide me on how to include a library in Qt.
-
As i proposed earlier, you should rather build qextserial port along your project like described "here":http://code.google.com/p/qextserialport/wiki/QextSerialPort_1_2_RC
-
Thank you.
I can now see the library file as a part of my project.Still, I am getting the following errors:
moc_qextserialport.cpp: In static member function 'static void QextSerialPort::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)':
moc_qextserialport.cpp:153:30: error: invalid use of incomplete type 'class QextSerialPortPrivate'
In file included from moc_qextserialport.cpp:9:0:
../serial_using_qextserial/qextserialport.h:167:7: error: forward declaration of 'class QextSerialPortPrivate'
make: *** [moc_qextserialport.o] Error 1
15:29:18: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project serial_using_qextserial (kit: Desktop Qt 5.0.2 GCC 32bit)
When executing step 'Make'.Please could you help me out.
-
Are you using QextSerialPort 1.2 ?
-
bq. I am using QextSerialPort since QSerialPort is not supported by Qt 4.7.
I am using QT 5.0.2. However, I want to run it on my Sitara kit which supports Qt 4.7.You can just try do some small modifications (related to QElapsedTimer and so on), and then QSerialPort will be work on Qt 4.7.x
-
I spent a few days adapting QSerialPort for Qt 4.7 to no avail.
I think I'll try my luck with QextSerialPort for some more days and then possibly revert to QSerialPort. -
Yes. I am using QextSerialPort 1.2.
-
SGaist,
Thanks a million.
I am able to build my project successfully. I had forgotten to disable 'Shadow Build'.