【发布时间】:2011-11-04 17:31:15
【问题描述】:
我正在尝试从(非 SVN)源(codeblocks-10.05-src.tar.bz2)安装 Code::Blocks 10.05。我的操作系统是 Ubuntu 11.04。我需要先下载并安装 wxWidgets(我现在有 wxGTK-2.8.12),这似乎可以工作。我根据这些说明编译它:
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux
然后我将 C::B 配置为
./configure --with-wx-config=/opt/wx/2.8/bin/wx-config
跑了
export LDFLAGS="-Wl,-R /opt/wx/2.8/lib"
make
sudo -i
make install
尝试运行 C::B 时,我收到以下错误:
codeblocks: error while loading shared libraries: libwx_gtk2u-2.8.so.0: cannot open shared object file: No such file or directory
这里问了同样的问题:error while loading shared libraries,但建议的解决方案(即将 wxWidgets 配置添加到传递给 configure 的选项中)对我不起作用。
wx-config --prefix 的输出是/opt/wx/2.8,
wx-config --libs 的输出是-L/opt/wx/2.8/lib -pthread -lwx_gtk2u-2.8,
which wx-config 是/opt/wx/2.8/bin/wx-config。
我查找了该库,发现 /opt/wx/lib/libwx_gtk2u-2.8.so.0 是同一文件夹中的 libwx_gtk2u-2.8.so.0.8.0 的链接。
这里可能有什么问题?
【问题讨论】:
标签: shared-libraries wxwidgets codeblocks ubuntu-11.04