簡體   English   中英

如何為iphone構建mp4v2

[英]how to build mp4v2 for iphone

我是ios開發的新手,我想使用mp4v2庫。 我已成功編譯為iphone模擬器,i386,但我在編譯iphone架構時遇到問題。 配置/制作i386非常簡單:

./configure --disable-gch --enable-ub=i386

但是,使用armv6 / 7作為標簽不起作用

./configure --disable-gch --enable-ub=armv6,armv7

配置工作時,make命令導致以下錯誤:

/bin/sh ./libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H   -arch i386 -arch armv6 -arch armv7 -I./include -I./include -I. -I.  -Wall -Wformat -g -O2 -fvisibility=hidden -c -o src/3gp.lo src/3gp.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -arch i386 -arch armv6 -arch armv7 -I./include -I./include -I. -I. -Wall -Wformat -g -O2 -fvisibility=hidden -c src/3gp.cpp  -fno-common -DPIC -o src/.libs/3gp.o
llvm-g++-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/arm-apple-darwin11-llvm-g++-4.2': execvp: No such file or directory
llvm-g++-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/arm-apple-darwin11-llvm-g++-4.2': execvp: No such file or directory
lipo: can't figure out the architecture type of: /var/folders/b6/vmqqncd55k79nb1nc4x30nwr0000gn/T//cctU2lnr.out
make: *** [src/3gp.lo] Error 1

我如何為iphone編譯?

我想這個錯誤是由於嘗試從系統根路徑/usr/bin/../llvm-gcc-4.2/bin/arm-apple-darwin11-llvm-g++-4.2而不是從Developer文檔中找到交叉編譯器引起的。 一個小愚蠢的解決方案是在系統根路徑/usr創建一個符號鏈接llvm-gcc-4.2 ,指向真實路徑。

我相信您可能需要驗證您的xcode-select(1)值,以便您的路徑包含新的xcode發布樹。 應該在/ Applications / xcode下找到最新版本的工具。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM