在 Mac OS X 上编译 mp4v2

发布于 2024-09-07 17:39:05 字数 3077 浏览 2 评论 0原文

有人可以帮我在 Mac OS X 上编译 mp4v2 吗?我已尝试按照说明进行配置和编译,但出现了许多源自 C++ 标头的错误。配置命令是 ./configure --enable-ub ,然后是终端上的普通 make

从错误消息的外观来看,我的安装中似乎缺少许多头文件。问题是我没有删除任何头文件并从安装程序 DMG 中按原样安装了 Xcode。

似乎这些文件是必需的,但在我的 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
  • (然后是一些)

它们都包含在内通过系统提供的 STL C++ 头文件(引用这些缺失文件的所有文件都在 /user/include/c++/4.2.1 中。

任何人都可以帮助告诉我从哪里获得这些文件“丢失”头文件?

以下是涉及的每个软件的版本详细信息:

  • Snow Leopard 10.6.4
  • Xcode 3.2.3(iOS SDK 4.0 附带的)
  • MP4v2 1.9.1
  • i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)

以下是错误消息的一些摘录:

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:

谢谢

Anybody can help me with compiling mp4v2 on Mac OS X? I've tried configuring and compiling as per the instructions but I got a lot of errors originating from the C++ headers. The configure command was ./configure --enable-ub followed by plain make at the Terminal.

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.

It seems that these files are required but not present in my from my Xcode installation:

  • /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
  • (and then some)

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.

Anybody can help tell me where do I get these "missing" header files?

Here are the version details of each software involved:

  • Snow Leopard 10.6.4
  • Xcode 3.2.3 (the one that came with iOS SDK 4.0)
  • MP4v2 1.9.1
  • i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)

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

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

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

发布评论

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

评论(1

深海夜未眠 2024-09-14 17:39:05

我终于弄对了:

./configure --disable-gch --enable-ub=ppc,i386,x86_64

请参阅 mp4v2 第 58 期

此外,当使用 Snow 时,还需要执行其他步骤Leopard 构建,但您还希望 mp4v2 在 Leopard 下可用

谢谢

I finally got it right:

./configure --disable-gch --enable-ub=ppc,i386,x86_64

Refer to mp4v2 issue 58.

Furthermore there are additional steps required when you use Snow Leopard to build but you also want mp4v2 to be usable under Leopard.

Thanks

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