SoxPlayer icon indicating copy to clipboard operation
SoxPlayer copied to clipboard

Trouble compiling with Cygwin

Open unformatt opened this issue 13 years ago • 16 comments

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

unformatt avatar Dec 16 '11 18:12 unformatt

I testing this in Linux, without Cygwin. In Linux all works. I try to solve the problem. If you can - help!

Kyborg2011 avatar Dec 16 '11 18:12 Kyborg2011

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.

unformatt avatar Dec 16 '11 18:12 unformatt

Do I need to somehow compile sox/ffmpeg/libavformat\ and other related libs first?

unformatt avatar Dec 16 '11 19:12 unformatt

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.

Kyborg2011 avatar Dec 16 '11 19:12 Kyborg2011

And can you check this in Linux? In my computer (OS - Linux Fedora 16) all work...

Kyborg2011 avatar Dec 16 '11 19:12 Kyborg2011

I may be able to check on CentOS. I'll let you know.

unformatt avatar Dec 16 '11 19:12 unformatt

I finded error. Today I erase this error:)

Kyborg2011 avatar Dec 17 '11 08:12 Kyborg2011

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.

Kyborg2011 avatar Dec 17 '11 08:12 Kyborg2011

Just tried on Windows and still got lavformat error. I'll try Linux now.

unformatt avatar Dec 17 '11 18:12 unformatt

By the way, you download that i commit today?

Kyborg2011 avatar Dec 17 '11 18:12 Kyborg2011

Yea, I downloaded the new one

unformatt avatar Dec 17 '11 19:12 unformatt

Can you write all log, when you compile in Windows?

Kyborg2011 avatar Dec 17 '11 19:12 Kyborg2011

Compiles on CentOS with no problems

unformatt avatar Dec 18 '11 00:12 unformatt

Here's the Windows/Cygwin log: http://www.sendspace.com/file/bo9lfq

unformatt avatar Dec 18 '11 01:12 unformatt

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:)

Kyborg2011 avatar Dec 18 '11 07:12 Kyborg2011

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..

noelove avatar Jun 13 '13 03:06 noelove