我使用 kubuntu,编译了 qtcurve 的源代码并安装(结果显示在最后)。之后,我转到System Settings -> Application Appearance -> Style -> Applications -> Widget Style
,但那里没有qtcurve
选择。如果我使用sudo apt-get install qtcurve
,则有qtcurve
选择。我猜问题是 qtcurve 安装到了不同的位置,但我不知道如何解决这个问题。
[ 0%] Built target kstyle_qtcurve_config_automoc
[ 23%] Built target kstyle_qtcurve_config
[ 23%] Built target translations
[ 23%] Built target kwin3_qtcurve_automoc
[ 43%] Built target kwin3_qtcurve
[ 43%] Built target kwin_qtcurve_config_automoc
[ 52%] Built target kwin_qtcurve_config
[100%] Built target qtcurve
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /usr/local/lib/kde4/kstyle_qtcurve_config.so
-- Set runtime path of "/usr/local/lib/kde4/kstyle_qtcurve_config.so" to "/usr/local/lib"
-- Installing: /usr/local/share/apps/QtCurve/QtCurveui.rc
-- Installing: /usr/local/share/apps/QtCurve/Agua.qtcurve
-- Installing: /usr/local/share/apps/QtCurve/Agua_II.qtcurve
-- Installing: /usr/local/share/apps/QtCurve/Curve.qtcurve
-- Installing: /usr/local/share/apps/QtCurve/Flat.qtcurve
-- Installing: /usr/local/share/apps/QtCurve/Human.qtcurve
-- Installing: /usr/local/share/apps/QtCurve/Inverted.qtcurve
-- Installing: /usr/local/share/apps/QtCurve/Klearlooks.qtcurve
-- Installing: /usr/local/share/apps/QtCurve/Milk.qtcurve
-- Installing: /usr/local/share/apps/QtCurve/Murrine.qtcurve
-- Installing: /usr/local/share/apps/QtCurve/Ozone.qtcurve
-- Installing: /usr/local/share/apps/QtCurve/Plastic.qtcurve
-- Installing: /usr/local/share/apps/QtCurve/Silk.qtcurve
-- Installing: /usr/local/share/apps/color-schemes/QtCurve.colors
-- Installing: /usr/local/share/apps/color-schemes/QtCurveAgua.colors
-- Installing: /usr/local/share/locale/zh_TW/LC_MESSAGES/qtcurve.mo
-- Installing: /usr/local/share/locale/zh_HK/LC_MESSAGES/qtcurve.mo
-- Installing: /usr/local/share/locale/tr/LC_MESSAGES/qtcurve.mo
-- Installing: /usr/local/share/locale/uk/LC_MESSAGES/qtcurve.mo
-- Installing: /usr/local/share/locale/ru/LC_MESSAGES/qtcurve.mo
-- Installing: /usr/local/share/locale/zh_CN/LC_MESSAGES/qtcurve.mo
-- Installing: /usr/local/share/locale/ko/LC_MESSAGES/qtcurve.mo
-- Installing: /usr/local/lib/kde4/kwin3_qtcurve.so
-- Set runtime path of "/usr/local/lib/kde4/kwin3_qtcurve.so" to "/usr/local/lib"
-- Installing: /usr/local/share/apps/kwin/qtcurve.desktop
-- Installing: /usr/local/lib/kde4/kwin_qtcurve_config.so
-- Set runtime path of "/usr/local/lib/kde4/kwin_qtcurve_config.so" to "/usr/local/lib"
-- Installing: /usr/local/share/apps/kstyle/themes/qtcurve.themerc
-- Installing: /usr/local/lib/kde4/plugins/styles/qtcurve.so
-- Set runtime path of "/usr/local/lib/kde4/plugins/styles/qtcurve.so" to "/usr/local/lib"
答案1
我认为前缀路径有问题 - 必须是 /usr,而不是 /usr/local(这是默认值)。
正如我所见,你的源代码使用 cmake 程序进行编译,所以不要忘记添加
-DCMAKE_INSTALL_PREFIX:PATH=/usr
运行 cmake 时。