编译时一些路径问题

心之所在 | 2010/12/20

KDE-Apps 东西是多,上面常见的是编译时抱怨东西安装到了 /user/local 中,原因是 cmake 时候忘了加参数

-DCMAKE_INSTALL_PREFIX=/usr
因为通常 /usr/local 是在用户的程序路径,但不在 KDE path 中,有时会导致能跑程序但找不到它资源的情况。(我都是装/usr,没遇到过该情况)。

查看 kde patch 的命令:

kde4-config --path data
qii@qii-K40IN:~$ kde4-config --path data
/home/qii/.kde/share/apps/:/usr/share/kubuntu-default-settings/kde4-profile/default/share/apps/:/usr/share/kde4/apps/
最好的方法是把 /usr/local 也添加进 kde patch,这样就脱离包管理器安装,也剩编译参数。 这样做,编辑 /etc/kde4rc 文件:
[Directories-default]
prefixes=/usr/local
via sharpley

    泰达希尔-德鲁伊
    Tags:

    ONE FEEDBACK

    1. csslayer

      archlinux的aur真爽啊真爽啊……嗯= =b。

      话说deb直接用checkinstall好点吧。

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    Note: Commenter is allowed to use '@User+blank' to automatically notify your reply to other commenter. e.g, if ABC is one of commenter of this post, then write '@ABC '(exclude ') will automatically send your comment to ABC. Using '@all ' to notify all previous commenters. Be sure that the value of User should exactly match with commenter's name (case sensitive).

    This site uses Akismet to reduce spam. Learn how your comment data is processed.