Sweet Lord i hate being so ignorant, i figured that out before you answer (the problem with the executable) but the thing is that i still cannot make it work.
i have this in my .pro
INCLUDEPATH += "C:/Documents and Settings/home/Escritorio/Los taninos-killgabio/qextserialport/src"
INCLUDEPATH += "C:/Documents and Settings/home/Escritorio/Los taninos-killgabio/GestionVinoteca/include" //this has nothing to do
LIBS += -L"C:/Documents and Settings/home/Escritorio/Los taninos-killgabio/qextserialport/src/build"
INCLUDEPATH += "C:/Documents and Settings/home/Escritorio/Los taninos-killgabio/qextserialport/src"
INCLUDEPATH += "C:/Documents and Settings/home/Escritorio/Los taninos-killgabio/GestionVinoteca/include" //this has nothing to do
LIBS += -L"C:/Documents and Settings/home/Escritorio/Los taninos-killgabio/qextserialport/src/build"
To copy to clipboard, switch view to plain text mode
and in the folder specified i have:
* libqextserialportd1.a
* qextserialportd1.dll
i also copied that dll to the folder of my app just in case. The headers are being found because the moment i type "qex.." all the headers from src folder are suggested. But when i try to execute the code i get the same error (error: undefined reference to `_imp___ZN20QextSerialEnumerator8getPortsEv' )...sorry for wasting your time like this but im so loosing my head
Added after 42 minutes:
i changed the LIBS variable to this:
LIBS += -L"C:/Documents and Settings/home/Escritorio/Los taninos-killgabio/qextserialport/src/build" -lqextserialportd1
LIBS += -L"C:/Documents and Settings/home/Escritorio/Los taninos-killgabio/qextserialport/src/build" -lqextserialportd1
To copy to clipboard, switch view to plain text mode
Even though the library is called "libqextserialportd1.a" i can only compile the application by putting the way i just described.
So the program compiles with no errors BUT now i get this error:
The program has unexpectedly finished.
like a segmentation fault I dont really know while trying to do this:
qDebug () << "say hi!!";
QList<QextPortInfo> ports = QextSerialEnumerator::getPorts();
qDebug() << "List of ports:";
for (int i = 0; i < ports.size(); i++) {
qDebug() << "port name:" << ports.at(i).portName;
qDebug() << "friendly name:" << ports.at(i).friendName;
qDebug() << "physical name:" << ports.at(i).physName;
qDebug() << "enumerator name:" << ports.at(i).enumName;
qDebug
() <<
"vendor ID:" <<
QString::number(ports.
at(i
).
vendorID,
16);
qDebug
() <<
"product ID:" <<
QString::number(ports.
at(i
).
productID,
16);
qDebug() << "===================================";
}
qDebug () << "say hi!!";
QList<QextPortInfo> ports = QextSerialEnumerator::getPorts();
qDebug() << "List of ports:";
for (int i = 0; i < ports.size(); i++) {
qDebug() << "port name:" << ports.at(i).portName;
qDebug() << "friendly name:" << ports.at(i).friendName;
qDebug() << "physical name:" << ports.at(i).physName;
qDebug() << "enumerator name:" << ports.at(i).enumName;
qDebug() << "vendor ID:" << QString::number(ports.at(i).vendorID, 16);
qDebug() << "product ID:" << QString::number(ports.at(i).productID, 16);
qDebug() << "===================================";
}
To copy to clipboard, switch view to plain text mode
no words ""say hi!!" printed on the application output so i cannot figure what`s the real problem :S
Bookmarks