Dynamic Libraries Qt
-
Hi all,
in Windows and using dynamic link libraries. You just need to place the rights .dlls in the same folder as qt compiled .exe.
is it possible to achive the same goal in linux?
i tried place qt linux compiled executable with libQtCore.so or/and libQtCore.so.4.8.4 and libQtGui.so or/and libQtGui.so.4.8.4 and its not working.
am i missing any other *.so ?
is it going to work like it works in windows? or is there other way?
thx!
-
Hi,
No, linux is a completely different beast. What would you like to achieve ? Application distribution ? What flavor of linux are your running ?
-
its a university work. I just want to run in my tearchers virtual machine (which is a Fedora 11).
what should i do?
thx
-
If you are also building on a Fedora 11 system then simply give him the executable.
He probably already has Qt installed on his machine. -
in the virtual machine he gave us i had to install Qt e Qt development + qt creator.
I tried in the original version(without any modification) and the SO requested the libQtGui.so.4
-
i added all .so files neeeded(libQtGui.so.4, libQtCore.so.4) and i created a sh file with the following:
export LD_LIBRARY_PATH=$(pwd):$LD_LIBRARY_PATH
./myexecand worked!
thx...
-
It's one way to do it. I would however recommend that you ask him if you need to provide him with only the executable or a "package" that allows to start your application on a system without Qt installed.
I think the former would apply, but the question is worth asking.