0

I have compiled ffmpeg for android ndk r7b in Ubuntu 11.10 and now I am trying to use it. I added to my jni directory include folder, which contains header files, and lib
directory which contains .so files of ffmpeg.
After ndk-build command I get expected '=', ',', ';', 'asm' or 'attribute' before 'secret' error. I read a lot of posts connected with this error and most of them insist that C compiler causes this error and they advice to use g++. I removed gcc compiler and installed g++, but the error doesn't disappear.

someUser
  • 965
  • 12
  • 24
  • Does http://stackoverflow.com/questions/990906/iphone-error-expected-asm-or-attribute-before-foo help you? – Konerak Feb 29 '12 at 13:05
  • Unfortunately no. I renamed my test.c to test.cpp and now I get SharedLibrary : libffmpeg.so Install : libffmpeg.so => libs/armeabi/libffmpeg.so make: *** No rule to make target `jni/test.cpp', needed by `obj/local/armeabi/objs/stream/test.o'. Stop. – someUser Feb 29 '12 at 13:15

0 Answers0