diff --git src/gui/qgslibloader.cpp src/gui/qgslibloader.cpp
index 007d049..f9212af 100644
|
|
int GSLibFunctions::loadLibrary(const QString& location, QString& last_error) { |
259 | 259 | gsapi_revision_t rv; |
260 | 260 | /* Try to load the library */ |
261 | 261 | if (location == "") { |
262 | | #ifdef Q_WS_X11 |
263 | | #if defined(__x86_64__) || defined(__ppc64__) || defined (__s390x__) || defined (__sparc64__) |
264 | | // try 64 bit libraries on 64 bit system |
265 | | tryLocationLoop("/usr/lib64"); |
266 | | tryLocationLoop("/usr/local/lib64"); |
267 | | #endif // 64 bit |
268 | | tryLocationLoop("/usr/lib"); |
269 | | tryLocationLoop("/usr/local/lib"); |
270 | | #endif // Q_WS_X11 |
271 | | #ifdef Q_WS_MAC |
272 | | tryLocation("/usr/lib/libgs.dylib"); |
273 | | tryLocation("/usr/local/lib/libgs.dylib"); |
274 | | #endif |
| 262 | tryLocation("@@PREFIX@@/lib/libgs.dylib"); |
275 | 263 | } else { |
276 | 264 | m_LibGSLocation = location; |
277 | 265 | QString libloc = location; |