[英]Compiling mp4v2 on Mac OS X
Anybody can help me with compiling mp4v2 on Mac OS X? 有人可以帮助我在Mac OS X上编译mp4v2吗? I've tried configuring and compiling as per the instructions but I got a lot of errors originating from the C++ headers.
我已经尝试按照说明进行配置和编译,但是由于C ++头文件出现了很多错误。 The configure command was
./configure --enable-ub
followed by plain make
at the Terminal. configure命令是
./configure --enable-ub
然后在终端上进行普通make
。
From the looks of the error messages, it seems that a number of header files are missing from my installation. 从错误消息的外观来看,我的安装似乎缺少许多头文件。 The problem is that I did not remove any header files and installed Xcode as-is from the installer DMG.
问题是我没有从安装程序DMG中删除任何头文件并按原样安装Xcode。
It seems that these files are required but not present in my from my Xcode installation: 看来这些文件是必需的,但在我的Xcode安装中不存在:
/usr/include/c++/4.2.1/bits/c++config.h
/usr/include/c++/4.2.1/bits/c++locale.h
/usr/include/c++/4.2.1/bits/c++io.h
/usr/include/c++/4.2.1/bits/ghtr.h
/usr/include/c++/4.2.1/bits/atomic_word.h
They are all included by the STL C++ headers provided by the system (all of the files that references to these missing files are in /user/include/c++/4.2.1
. 它们都包含在系统提供的STL C ++头文件中(所有引用这些丢失文件的文件都在
/user/include/c++/4.2.1
。
Anybody can help tell me where do I get these "missing" header files? 任何人都可以帮助告诉我在哪里可以得到这些“丢失的”头文件?
Here are the version details of each software involved: 以下是涉及的每个软件的版本详细信息:
The following are some excerpts of the error messages: 以下是错误消息的一些摘录:
g++ -DHAVE_CONFIG_H -arch i386 -arch x86_64 -arch ppc -arch ppc64 -I./include -I./include -I. -I. -Wall -Wformat -g -O2 -fvisibility=hidden -c libplatform/impl.h -o libplatform/impl.h.gch/static In file included from /usr/include/c++/4.2.1/ios:43, from /usr/include/c++/4.2.1/istream:44, from /usr/include/c++/4.2.1/fstream:45, from ./libplatform/platform_base.h:6, from ./libplatform/platform_posix.h:31, from ./libplatform/platform.h:24, from libplatform/impl.h:6: /usr/include/c++/4.2.1/iosfwd:44:28: error: bits/c++config.h: No such file or directory /usr/include/c++/4.2.1/iosfwd:45:29: error: bits/c++locale.h: No such file or directory /usr/include/c++/4.2.1/iosfwd:46:25: error: bits/c++io.h: No such file or directory In file included from /usr/include/c++/4.2.1/bits/ios_base.h:45, from /usr/include/c++/4.2.1/ios:48, from /usr/include/c++/4.2.1/istream:44, from /usr/include/c++/4.2.1/fstream:45, from ./libplatform/platform_base.h:6, from ./libplatform/platform_posix.h:31, from ./libplatform/platform.h:24, from libplatform/impl.h:6: /usr/include/c++/4.2.1/ext/atomicity.h:39:23: error: bits/gthr.h: No such file or directory /usr/include/c++/4.2.1/ext/atomicity.h:40:30: error: bits/atomic_word.h: No such file or directory In file included from /usr/include/c++/4.2.1/memory:54, from /usr/include/c++/4.2.1/string:48, from /usr/include/c++/4.2.1/bits/locale_classes.h:47, from /usr/include/c++/4.2.1/bits/ios_base.h:47, from /usr/include/c++/4.2.1/ios:48, from /usr/include/c++/4.2.1/istream:44, from /usr/include/c++/4.2.1/fstream:45, from ./libplatform/platform_base.h:6, from ./libplatform/platform_posix.h:31, from ./libplatform/platform.h:24, from libplatform/impl.h:6:
Thanks 谢谢
I finally got it right: 我终于正确了:
./configure --disable-gch --enable-ub=ppc,i386,x86_64
Refer to mp4v2 issue 58 . 请参阅mp4v2问题58 。
Furthermore there are additional steps required when you use Snow Leopard to build but you also want mp4v2 to be usable under Leopard . 此外,当您使用Snow Leopard进行构建时,还需要执行其他步骤,但是您还希望mp4v2在Leopard下可用 。
Thanks 谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.