I have been using the suggested solution - providing the full location in the pro file - yet.
The problem is that I have to distinguish between the 64-bit and the 32-bit versions then. To avoid that I was using the subdirs project (according to ChrisW67 suggestion in the last thread) which works very well for my own libraries.
I think there is no other way then using the code to determine the target architecture he added later in the last thread (I'm using the Linux version on Windows because I'm using MinGW instead of msvc):
win32 {
win32-g++:QMAKE_TARGET.arch = $$QMAKE_HOST.arch
win32-g++-32:QMAKE_TARGET.arch = x86
win32-g++-64:QMAKE_TARGET.arch = x86_64
contains(QMAKE_TARGET.arch, x86_64):{
LIBS += -L../../openssl-mingw_amd64/lib/ -lcrypto
} else {
LIBS += -L../../openssl-mingw_i386/lib/ -lcrypto
}
} else
# ...
win32 {
win32-g++:QMAKE_TARGET.arch = $$QMAKE_HOST.arch
win32-g++-32:QMAKE_TARGET.arch = x86
win32-g++-64:QMAKE_TARGET.arch = x86_64
contains(QMAKE_TARGET.arch, x86_64):{
LIBS += -L../../openssl-mingw_amd64/lib/ -lcrypto
} else {
LIBS += -L../../openssl-mingw_i386/lib/ -lcrypto
}
} else
# ...
To copy to clipboard, switch view to plain text mode
Of course this works, but now I'm needing the target architecture again which ChrisW67 advised me to avoid (that's why I was asking for a global place to install the libs like it is possible on Linux).
I think the problem is solved, but if there's a better solution I'm still interested.
Bookmarks