Hi,

I have a static application that is missing functionality.

I have managed to build and install Qt ( qt-x11-opensource-src-4.5.0.tar.gz ) on ubuntu 8.04 following this tutorial :
http://wiki.qtcentre.org/index.php?t...ic_Qt_on_Linux

The application is a simple sniffer that uses libpcap .After i build the application with "qmake" and "make", I tested it on another system but the application doesn't seem to capture anything,other functions seem fine. Therefore suspect the problem lies with libpcap.

The following is the steps i used:
Qt Code:
  1. 1. Install libpcap files with "sudo apt-get install libpcap0.8-dev"
  2.  
  3. 2. Building Qt static
  4.  
  5. sudo apt-get install libx11-dev libfreetype6-dev libavahi-gobject-dev libSM-dev libXrender-dev libfontconfig-dev libXext-dev
  6. (* I can only get pass the ./configure step after I've installed the above......)
  7.  
  8. ./configure -static -release -nomake demos -nomake examples -nomake tools
  9. make
  10. sudo make install
  11.  
  12. 3. Building the application:
  13.  
  14. add to .pro file:
  15. CONFIG += static
  16. LIBS += -L/usr/lib -lpcap
  17.  
  18. export PATH="$PATH:/usr/local/Trolltech/Qt-4.5.0/bin"
  19. qmake
  20. make
To copy to clipboard, switch view to plain text mode 

everything seems fine..no errors noticed...but I can't figure out what went wrong.....

Is there any solution or something that I've missed?

Please advice...