Fix library path issues

This commit is contained in:
RigoLigo
2021-07-02 21:17:45 +08:00
parent 9c080f8efb
commit 8991043127
4 changed files with 6 additions and 4 deletions

View File

@@ -104,4 +104,4 @@ endif()
target_link_libraries(${EXECUTABLE_NAME} ${REQUIRED_LIBS_QUALIFIED} ${LIBLINKING})
install(TARGETS ${EXECUTABLE_NAME} RUNTIME DESTINATION in)
install(TARGETS ${EXECUTABLE_NAME} RUNTIME DESTINATION bin)

View File

@@ -50,7 +50,6 @@ void SpkDialog::AddButton(QString text, SpkUi::SpkButtonStyle style)
case SpkUi::SpkButtonStyle::Warn:
b->setObjectName("spk_styling_warnbtn");
break;
case SpkUi::SpkButtonStyle::Normal:
default:
break;
}

View File

@@ -79,8 +79,11 @@ namespace SpkUi
void PrepareForDeepinDesktop()
{
#ifndef NDEBUG
// Normally it's installed to system library path
qApp->addLibraryPath(qApp->applicationDirPath() + "/plugin/dtkplugin");
#else
// You must `make install' before these work in release mode
qApp->addLibraryPath("/usr/local/lib");
qApp->addLibraryPath("/usr/lib");
#endif
QPluginLoader p("libspkdtkplugin");
if(p.load())