so take it in comments as I have written avbove
so take it in comments as I have written avbove
hey mazurekwrc i tried what you told but i get a error saying
So i added the path of the folder where qextserialport is "C:\qextserialport-1.1\qextserialport"Qt Code:
1>LINK : fatal error LNK1181: cannot open input file 'qextserialport.lib'To copy to clipboard, switch view to plain text mode
there is no qextserialport.lib file though.Now when i build the program again i get a new error
Qt Code:
>LINK : fatal error LNK1181: cannot open input file 'C:\qextserialport-1.1\qextserialport.obj'To copy to clipboard, switch view to plain text mode
even get a warningQt Code:
1>.\MessageWindow.cpp(90) : warning C4100: 'event' : unreferenced formal parameterTo copy to clipboard, switch view to plain text mode
Hey i don't find any qextserialport.lib file any where in the qextserialport folder.
add
CONFIG += staticlib
in qexterialport.pro file, then run qmake, nmake, go to example and run do the same
dheeraj (30th April 2008)
Hey mazurekwrc Thank you.finally after couple of weeks of breaking head got the output for the example. The GUI was displayed once the example was complied. I need to check if it works fine to send a message from one computer to another.
And i have a doubt what does the line in qexterialport.pro file actually do all the linker errors were removed. ?? Hey and do i need to qmake and nmake all the qexterialport programs in order to work. I am using Qt 4.3.3 integrated with VS2005.net. cause i don't do qmake and nmake for all the other programs which i have been doing all these dazz.
here you got about config += staticlib
http://doc.trolltech.com/4.3/qmake-c...ding-a-library
you asked also about qmake, it's used to create a platform-specific makefile from the project file, so if we changed .pro file we need to use it, and at the end we use nmake to build program
Hi wysota i think the problem is solved finally. I am able to run the qextserialport examples but with a few warnings. I even tested one example program on RS232 cable connected to two computer and it is working. mazurekwrc asked me to add " CONFIG += staticlib" to .pro file. I did it and finally worked. But i had to comment these two lines
only then it works . Hey do you have any extra serial communication example. So that i can learn how to send a Frame in a format like i asked in the first post.Qt Code:
msgTextEdit.append(dynamic_cast<MessageEvent::MessageEvent* >(event)->msg); To copy to clipboard, switch view to plain text mode
Thank You So much wysota
QExtSerialPort gives you access to the serial communication through the QIODevice API, so I suggest you start by taking a look at it.
Hi wysota i was able to run all the example programs. I started a new QtApplication Project i wanted to send a string of numbers through serial port on click of a OK button on the GUI form. But i get two linker errors i tried so much but cud't clear the error's pls help me with tthis problem. These are the error's
Qt Code:
select_spacecraft.obj : error LNK2019: unresolved external symbol "public: __thiscall QextSerialPort::QextSerialPort(class QString const &,enum QextSerialBase::QueryMode)" (??0QextSerialPort@@QAE@ABVQString@@W4QueryMode@QextSerialBase@@@Z) referenced in function "public: __thiscall select_spacecraft::select_spacecraft(class QWidget *)" (??0select_spacecraft@@QAE@PAVQWidget@@@Z) F:\lpsu_gui 8 RS232\Debug\lpsu_gui.exe : fatal error LNK1120: 1 unresolved externals Build log was saved at "file://f:\lpsu_gui 8 RS232\lpsu_gui\Debug\BuildLog.htm"To copy to clipboard, switch view to plain text mode
I have attached the .h and .cpp files also.
Hi friends can you pls tell me what is wrong in my program. I am trying to remove those linker errors but not able to clear them.![]()
Did you link with the library?
Ya i did link every thing but i have this error. !!All the example qextserialport programs
work perfectly but the one i created has these link error's.
Thank You
Could you show your project file? Does QExtSerialPort contain the constructor mentioned in the error? Also make sure you got the class name right. Is it QextSerialPort or QExtSerialPort?
Bookmarks