mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 04:42:03 +08:00
Fix library path issues
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <QFile>
|
||||
#include "spkmsgbox.h"
|
||||
|
||||
int main (int argc, char *argv[])
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user