PDA

View Full Version : How to compile "qextserialport-1.1.tar.gz" source in linux QT



pupqt
24th March 2011, 06:27
Hi there,,

am working in qt linux. I have to develop a serial comm program.
For this downloaded classes from net to facilitate this.

downloaded source is "qextserialport-1.1.tar.gz". I tried to compile this source to access classes from following steps:

1. Extract archive
2. copy qextserialport to src folder of QT setup in linux
3. give command " qmake qextserialport.pro" from terminal
4. gave make command

I want to know that before giving "qmake *.pro" command do i require to configure it??????

because errors are coming :(

BalaQT
24th March 2011, 07:46
u just need to crosscompile qesp.pro

because errors are coming
if u hav errors, can u post it here.

Bala

ChrisW67
25th March 2011, 02:52
I want to know that before giving "qmake *.pro" command do i require to configure it?????? because errors are coming :(
Nothing. What are the errors?



chrisw@newton /tmp $ ls -l qextserialport-1.1.tar.gz
-rw-r--r-- 1 chrisw users 194209 Mar 25 11:45 qextserialport-1.1.tar.gz
chrisw@newton /tmp $ tar xf qextserialport-1.1.tar.gz
chrisw@newton /tmp $ cd qextserialport
chrisw@newton /tmp/qextserialport $ qmake
chrisw@newton /tmp/qextserialport $ make
...
chrisw@newton /tmp/qextserialport $ ls -l build/
total 48
lrwxrwxrwx 1 chrisw users 26 Mar 25 11:49 libqextserialport.so -> libqextserialport.so.1.0.0
lrwxrwxrwx 1 chrisw users 26 Mar 25 11:49 libqextserialport.so.1 -> libqextserialport.so.1.0.0
lrwxrwxrwx 1 chrisw users 26 Mar 25 11:49 libqextserialport.so.1.0 -> libqextserialport.so.1.0.0
-rwxr-xr-x 1 chrisw users 38087 Mar 25 11:49 libqextserialport.so.1.0.0
drwxr-xr-x 2 chrisw users 4096 Mar 25 11:46 moc
drwxr-xr-x 2 chrisw users 4096 Mar 25 11:49 obj

Done, no errors.

markusr
21st November 2011, 02:57
The current download links for 'qextserialport' take you to the 'current' version which is 'qextserialport-1.2win-alpha.zip', but this version once unzipped does not compile as easily as 'qextserialport-1.1.tar.gz' sources.

qextserialport-1.2win-alpha resulted in the following error during make on my very simple linux system:


qextserialenumerator.cpp:9: fatal error: objbase.h: No such file or directory
compilation terminated.

qextserialport-1.1 files compiled without any errors, such as ChrisW67 explained.

This was on Linux Mint 10.

norobro
21st November 2011, 04:14
qextserialport-1.2win-alpha.zipThat's a Windows version hence the "win" in the file name. objbase.h is a Windows header.

I had no problems compiling v1.2 on Debian after cloning a copy with Mercurial as shown on the website (http://code.google.com/p/qextserialport/source/checkout):
hg clone https://code.google.com/p/qextserialport/