PDA

View Full Version : static linking issue



ashwini
29th May 2006, 05:20
Hi All,
I am using Qt 4.1.2 on linux and have developed a executable using Qt designer.
now i want to deploy this application to other Systems who do not have Qt installed.
i tried out all the steps for static linking on the following page but it doesnt seem to help me out.
http://doc.trolltech.com/4.1/deployment-x11.html
I have built Qt statically and have libQtGui.a and libQtCore.a in my bin directory.
Then i carried out following steps.
make clean
PATH=/path/to/Qt/bin:$PATH
export PATH
qmake -config release
make

and when i run the executable it gives me Sementation fault.
Plz help me out...

Thanks

wysota
29th May 2006, 07:52
Could you debug your app to see what causes the crash? Also, did you remember to force static linkage? Those .a files should be in the lib/ directory and not bin/, shouldn't they?

ashwini
29th May 2006, 12:40
Hi,
I had a query that i have my own serial library using which i send commands from the GUI to the serial port.I have compiled and linked the serial library while i created my executable,now while i port this application to different linux system (used static Qt linking) do i have to port my serial library or not???

Thanks...