SoxPlayer
SoxPlayer copied to clipboard
Trouble compiling with Cygwin
Thanks for the awesome code.
Firstly, I got this error:
cannot find -lGLESv1_CM
Which is apparently because ndk was not targeting the correct Android version. So I had to add this to Application.mk:
APP_PLATFORM := android-8
I chose 8 because Android 2.2 is very common.
I'm now stuck at this error:
cannot find -lavformat
I testing this in Linux, without Cygwin. In Linux all works. I try to solve the problem. If you can - help!
I'm not experienced with compiling C. I know that the source is in jni\sox\ffmpeg\libavformat\ but I guess it's not being compiled?
I also tried dropping in a libavformat.a that I downloaded but it didn't make a difference.
Do I need to somehow compile sox/ffmpeg/libavformat\ and other related libs first?
No. You must only check a name of folder with libs in file Application.mk and run ndk-build.
Tomorrow I will install Cygwin and check all.
And can you check this in Linux? In my computer (OS - Linux Fedora 16) all work...
I may be able to check on CentOS. I'll let you know.
I finded error. Today I erase this error:)
The problem was in the file jni /sox /vorbis/vorbisfile/Android.mk. I solved this problem. Now it should work. Try first on Linux, and then on Windows, if everything is OK - I close the issue.
Just tried on Windows and still got lavformat error. I'll try Linux now.
By the way, you download that i commit today?
Yea, I downloaded the new one
Can you write all log, when you compile in Windows?
Compiles on CentOS with no problems
Here's the Windows/Cygwin log: http://www.sendspace.com/file/bo9lfq
Ok, So I will try in the near future to put Cygwin and solve problem. The main thing is that in linux everything is normal:)
How to run command line on Android:
sox -m music_a.mp3 music_b.mp3 mixed.mp3
Can you help me! Thank you very much..