I'll tried to use the syntax like explained on Linux, but it does not work. On Windows it is working fine.
Here's the code of my project file:
Qt Code:
unix { LIBS += -L../ -lIO \ -L../ -lDialogs }To copy to clipboard, switch view to plain text mode
The compiler just says:
What does the last line mean?cannot find -lIO
cannot find -lDialogs
collect2: Id returned 1 exit status
The files libIO.so and libDialogs.so are stored in the same directory as the project file. This is also the path where the compiler stores the binary files (I tested it without using the libraries).
It doesn't work if I remove the 'lib' before the libraries' filenames, too. When I compile the libraries, I also get some 'shortcuts' with version numbers of my *.so-file. Do I need them?
I'm also wondering, why the compiler stored the binary files directly in the project folder. When I compile the same project on Windows, the compiler stored the binary files in the debug/release-folder (which is in the project folder). I'm not using a shadow build to specify the output directory (on Windows and Linux).
Bookmarks