Lib OPAL 编译错误

发布于 2025-01-01 00:14:59 字数 1070 浏览 2 评论 0原文

我想获得一些有关编译 OPAL lib 的帮助,以便从源代码构建 Ekiga。 我已经安装了Ptlib,好吧。但是当我尝试安装 OPAL 时,首先我

./configure --prefix=/usr

这样做就可以了,它会创建一个 Makefile。然后,我做了一个:

make

它告诉我:

test/signalCompare.o: In function `main':
signalCompare.c:(.text.startup+0x36a): undefined reference to `sin'
signalCompare.c:(.text.startup+0x8ed): undefined reference to `log10'
collect2: ld a retourné 1 code d'état d'exécution
make[4]: *** [signalcompare] Erreur 1
make[4]: quittant le répertoire « /home/edouard/Documents/wifi/opal-3.10.2/plugins/audio/SILK/SILK_SDK »
make[3]: *** [SILK_SDK] Erreur 2
make[3]: quittant le répertoire « /home/edouard/Documents/wifi/opal-3.10.2/plugins/audio/SILK »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire « /home/edouard/Documents/wifi/opal-3.10.2/plugins »
make[1]: *** [subdirs] Erreur 2
make[1]: quittant le répertoire « /home/edouard/Documents/wifi/opal-3.10.2 »
make: *** [opt] Erreur 2

所以,我知道他找不到math.h,如果它是一个简单的gcc file.cpp,我会添加-lm选项。但如何处理相当大的编译呢? 谢谢。

I would like to get some help about compiling OPAL lib in order to build Ekiga from source.
I've installed Ptlib, all right. But when I try installing OPAL, first I do

./configure --prefix=/usr

It's OK and it creates a Makefile. Then, I do a :

make

And it says me :

test/signalCompare.o: In function `main':
signalCompare.c:(.text.startup+0x36a): undefined reference to `sin'
signalCompare.c:(.text.startup+0x8ed): undefined reference to `log10'
collect2: ld a retourné 1 code d'état d'exécution
make[4]: *** [signalcompare] Erreur 1
make[4]: quittant le répertoire « /home/edouard/Documents/wifi/opal-3.10.2/plugins/audio/SILK/SILK_SDK »
make[3]: *** [SILK_SDK] Erreur 2
make[3]: quittant le répertoire « /home/edouard/Documents/wifi/opal-3.10.2/plugins/audio/SILK »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire « /home/edouard/Documents/wifi/opal-3.10.2/plugins »
make[1]: *** [subdirs] Erreur 2
make[1]: quittant le répertoire « /home/edouard/Documents/wifi/opal-3.10.2 »
make: *** [opt] Erreur 2

So, I understand that he can't find math.h, if it was a simple gcc file.cpp, I would add -lm option. But how to do with a quite big compilation ?
Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

煞人兵器 2025-01-08 00:14:59

您可以尝试像这样运行编译器...

/home/edouard/Documents/wifi/opal-3.10.2/plugins/audio/SILK/SILK_SDK$ gcc -L./ libSKP_SILK_SDK.a test/signalCompare.o -lSKP_SILK_SDK - o signalcompare -lm

区别在于数学库的参数 (-lm) 放置在命令末尾。

然后再次运行make。

You could try running the compiler like this...

/home/edouard/Documents/wifi/opal-3.10.2/plugins/audio/SILK/SILK_SDK$ gcc -L./ libSKP_SILK_SDK.a test/signalCompare.o -lSKP_SILK_SDK -o signalcompare -lm

The difference is that the parameter for the math library (-lm) is placed at the end of the command.

Then run make again.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文