Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I compile lame as static library(.a) for armv6 and armv7 of iPhone?
    text
    copied!<p>LAME(http://lame.sourceforge.net/) is a library written in c language. It can convert PCM sound files to MP3 files. I use it to convert sound files to MP3 files on iPhone. The source PCM sound files is recorded by microphone.</p> <p>In order to include the LAME into my XCode Project, I need to compile the LAME to 3 static libraries(.a), for i386(IOS Simulator), armv6 and armv7.</p> <p>After a lot of search, I have complied a static library for i368 version(iOS Simulator) successfully. Here is commands:</p> <pre><code>./configure \ CFLAGS="-isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk" \ CC="/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -arch i386" \ --prefix=/Volumes/Data/test/i386 \ --host="arm-apple-darwin9" make &amp;&amp; make install </code></pre> <p>The problem is I can not compile for armv6 and armv7. I have tried this commands but it report an error. Is there anybody have solutions? </p> <pre><code>./configure \ CFLAGS="-isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk" \ CC="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -arch armv6" \ --prefix=/Volumes/Data/test/arm6 \ --host="arm-apple-darwin9" make &amp;&amp; make install </code></pre> <p>The error is:</p> <pre><code>console.c:25:21: error: curses.h: No such file or directory console.c:27:20: error: term.h: No such file or directory console.c: In function ‘get_termcap_string’: console.c:92: warning: implicit declaration of function ‘tgetstr’ console.c:92: warning: assignment makes pointer from integer without a cast console.c: In function ‘get_termcap_number’: console.c:102: warning: implicit declaration of function ‘tgetnum’ console.c: In function ‘apply_termcap_settings’: console.c:115: warning: implicit declaration of function ‘tgetent’ make[2]: *** [console.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 </code></pre> <p>When I install ncurses, It reported this:</p> <pre><code>../curses.h:60:25: error: ncurses_dll.h: No such file or directory In file included from console.c:25: ../curses.h:250: warning: return type defaults to ‘int’ ../curses.h: In function ‘NCURSES_EXPORT_VAR’: ../curses.h:250: error: expected declaration specifiers before ‘acs_map’ ../curses.h:340: error: storage class specified for parameter ‘SCREEN’ ../curses.h:341: error: storage class specified for parameter ‘WINDOW’ ../curses.h:343: error: storage class specified for parameter ‘attr_t’ ../curses.h:388: warning: empty declaration ../curses.h:401: error: expected specifier-qualifier-list before ‘attr_t’ ../curses.h:443: warning: empty declaration ../curses.h:542: error: storage class specified for parameter ‘NCURSES_OUTC’ ../curses.h:551: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘addch’ ../curses.h:552: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘addchnstr’ ../curses.h:553: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘addchstr’ ../curses.h:554: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘addnstr’ </code></pre> <p>Is there somebody can give me a way to compile LAME to static library(.a) for the armv6 and armv7?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload