0
任何人都可以幫助我在Mac OS X上編譯mp4v2嗎?我嘗試過按照說明進行配置和編譯,但是我收到了很多來自C++頭文件的錯誤。配置命令是./configure --enable-ub
,然後是在終端的普通make
。在Mac OS X上編譯mp4v2
從錯誤消息的外觀看來,我的安裝中缺少一些頭文件。問題是我沒有刪除任何頭文件,並從安裝程序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
中。
任何人都可以幫助告訴我我在哪裏得到這些「缺少」頭文件?
這裏是所涉及的每個軟件的版本細節:
- 雪豹10.6.4
- 的Xcode 3.2.3
- i686的-蘋果darwin10-G ++ - 4.2.1(GCC)4.2.1(蘋果公司建立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:
感謝
你從MacPorts得到這個,或者你想直接從原始源代碼做到這一點嗎?如果後者嘗試前者。 – 2010-06-25 07:42:12
來自原始源代碼。最終目標是將圖書館嵌入到我的Leopard應用程序中。 – adib 2010-06-25 07:49:02