2011-06-17 59 views
1

当我尝试运行在了openFrameworks例如代码块audioOutputExample,我得到以下错误:我怎么解决`LD找不到-something`

在调试:

LD找不到-openframeworksDebug

在发布

LD找不到-openframeworks

我该如何解决这个问题?


最新通报 这是为什么我试过到现在:

使

cd apps/examples/audioOutputExample/ 
make 

[...]

compili NG做

启动应用程序

CD仓

./audioOutputExample

确定

cd bin 
./audioOutputExample 

./audioOutputExample:错误而 个装载共享库: libfmodex.so:无法打开共享 对象文件:没有这样的文件或目录

寻找openframeworksDebug

sudo updatedb 
[password] 
locate openframeworksDebug 

[觉得没有什么]

ldconfig

ldconfig 

/sbin/ldconfig.real:无法创建 临时缓存文件 /etc/ld.so。缓存〜:权限被拒绝

sudo ldconfig 

[输入密码]

[很快完成与没有任何输出】

+0

您是否尝试过'ldconfig'? – 2011-06-17 03:03:43

+0

@Gregory Hoerner:是的,我得到'ld config':'/sbin/ldconfig.real:无法创建临时缓存文件/etc/ld.so.cache~:Permission denied' then sudo ldconfig' [输入密码]'完成没有输出或错误' – Shawn 2011-06-17 03:09:19

回答

0

libfmodex.so库的位置先看看。它应该位于与您尝试启动的应用程序相同的目录中的libs路径中。 这样

someApp 
libs/libfmodex.so 

如果不是这种情况下,将其复制在那边(通常应该通过化妆来完成)。

如果仍然不行,请使用ldd。

ldd someApp 

这会告诉你,someApp在哪里寻找缺失的库。 下列选项现在向您提供:

  • 调整LD_LIBRARY_PATH包括一个目录,其中您的lib(.so文件)位于
  • 使用-l LDCONFIG /path/to/lib/libfmodex.so
1

,如果你是Linux可能这可以帮助: 运行从/脚本/ Linux的这两个脚本/以root权限:

./install_dependencies.sh 
./install_codeblocks.sh