我正在尝试从(非 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
这里问了同样的问题:加载共享库时出错,但建议的解决方案(即将 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
这里可能有什么问题?