From: Chuck R. <shi...@ro...> - 2007-12-21 02:51:53
|
Thanks, David, that seems to have me gotten past that hurdle. And now, on to another one! Where or how does one enable "asm" variables in a gumstix build? flacenc.c: In function `find_optimal_param': flacenc.c:465: error: `asm' undeclared (first use in this function) make[1]: *** [flacenc.o] Error 1 make[1]: Leaving directory `/usr/build_1161/ffmpeg-export-2007-12-06/ libavcodec' make: *** [lib] Error 2 Here's the culprit: #elif defined(ARCH_ARMV4L) # define FASTDIV(a,b) \ ({\ int ret,dmy;\ asm volatile(\ "umull %1, %0, %2, %3"\ :"=&r"(ret),"=&r"(dmy)\ :"r"(a),"r"(ff_inverse[b])\ );\ ret;\ }) I'm compiling ffmpeg with -std=c99. Shouldn't C99 "know" about asm variables? Thanks! Chuck On Dec 20, 2007, at 9:14 AM, David Cary wrote: > Dear Chuck Randall, > >> From: Chuck Randall >> Date: Wed, 19 Dec 2007 > ... >> On my intel ubuntu 7.04 linux system I'm trying to build ffmpeg for a >> connex, build 1161 (arm-linux-gcc) > ... >> also says to use "-std=c99" and "-lm" on the compile line. How do I >> add -std=c99 onto my ffmpeg ./configure line, or is that not the >> problem? >> >> ./configure --cross-compile --cc=arm-linux=gcc --arch=arm --extra- >> cflags=-lm > > I think you want > > ./configure --cross-compile --cc=arm-linux=gcc --arch=arm > --extra-cflags='-lm -std=c99' > > (Or was it supposed to be double-quotes?) > > -- > David Cary > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users |