Rockbox Development > Starting Development and Compiling
troubles building Android App using Windows/Cygwin
nieroster:
Hello,
I can compile for the iRiver targets without problems, but so far I did not succed compiling an android app. This is the output I get:
Using source code root directory: /cygdrive/h/Programming/rockbox/source
(404)arm-linux-androideabi-gcc 4.4.3
is not of the recommendeder arm-linux-androideabi-gcc 4.4.3
WARNING: version 4.4.3!
WARNING: This may cause your build to fail since it may be a version
WARNING: that isn't functional or known to not be the best choice.
WARNING: If you suffer from build problems, you know that this is
WARNING: a likely source for them...
Using arm-linux-androideabi-ld 2.19
Created Makefile
arm-linux-androideabi-gcc.exe: /cygdrive/h/Programming/rockbox/source/firmware/S
OURCES: No such file or directory
arm-linux-androideabi-gcc.exe: warning: '-x c' after last input file has no effe
ct
arm-linux-androideabi-gcc.exe: no input files
arm-linux-androideabi-gcc.exe: /cygdrive/h/Programming/rockbox/source/lib/skin_p
arser/SOURCES: No such file or directory
arm-linux-androideabi-gcc.exe: warning: '-x c' after last input file has no effe
ct
...
First I do not understand the WARNNG above. v 4.4.3 is recommended and that's exactly what I use, so why does it show this warning?
Second: I had to add the path of the cross compiler to the path manually just adding the lines:
export ANDROID_SDK_PATH=C:\Android\SDK
export ANDROID_NDK_PATH=C:\Android\NDK
to the build script is not suffucient, because the directory structure of the linux-NDK and the windows-NDK are slightly different (linux-x86/bin vs. windows/bin).
What I do not understand next is the line:
arm-linux-androideabi-gcc.exe: /cygdrive/h/Programming/rockbox/source/firmwar
e/SOURCES: No such file or directory
Of course there is a file called: "H:\Programming\rockbox\source\firmware\SOURCES"
Well, I'm stuck here... if anybody can help I would appreciate it.
Regards,
Franz
saratoga:
--- Quote from: nieroster on June 07, 2011, 05:29:38 PM ---First I do not understand the WARNNG above. v 4.4.3 is recommended and that's exactly what I use, so why does it show this warning?
--- End quote ---
The recommended version is 4.4.4 IIRC.
bluebrother:
--- Quote from: saratoga on June 07, 2011, 06:07:32 PM ---The recommended version is 4.4.4 IIRC.
--- End quote ---
configure checks for 4.4.3. That is not the problem however -- the problem is something completely different: nobody did build Rockbox for Android on Cygwin before, and therefore it's likely to be broken.
--- Quote from: nieroster on June 07, 2011, 05:29:38 PM ---Second: I had to add the path of the cross compiler to the path manually just adding the lines:
export ANDROID_SDK_PATH=C:\Android\SDK
export ANDROID_NDK_PATH=C:\Android\NDK
to the build script is not suffucient, because the directory structure of the linux-NDK and the windows-NDK are slightly different (linux-x86/bin vs. windows/bin).
--- End quote ---
Please be very careful with separating DOS and Unix path separators. You need to export that in the Cygwin environment, so it should be a Cygwin path: export ANDROID_SDK_PATH=/cygdrive/c/Android/SDK. Second, what does uname on Cygwin return?
--- Quote ---What I do not understand next is the line:
arm-linux-androideabi-gcc.exe: /cygdrive/h/Programming/rockbox/source/firmwar
e/SOURCES: No such file or directory
--- End quote ---
Carefully check the capitalization of the path *from Cygwin*. "Programming" and "programming" are the same on Windows but two completely different folders on Cygwin.
nieroster:
First of all thank you for your quick answer!
The current NDK is r5 and it comes with cross compiler version 4.4.3. Where do I get the recommended v4.4.4 compiler?
I have changed the environment variables to cygwin notation:
export ANDROID_SDK_PATH=/cygdrive/c/Android/SDK
export ANDROID_NDK_PATH=/cygdrive/c/Android/NDK
but this does not change anything at all.
This is what uname returns on cygwin:
$ uname
CYGWIN_NT-6.1-WOW64
it is not 'windows' as assumed by tools/configure
I still keep getting messages like these:
arm-linux-androideabi-gcc.exe: /cygdrive/h/Programming/rockbox/source/firmware/S
OURCES: No such file or directory
arm-linux-androideabi-gcc.exe: warning: '-x c' after last input file has no effe
ct
Maybe the cross compiler behaves differntly depending on the host system?
What else can I do?
Regards,
Franz
bluebrother:
--- Quote from: nieroster on June 08, 2011, 03:43:52 AM ---The current NDK is r5 and it comes with cross compiler version 4.4.3. Where do I get the recommended v4.4.4 compiler?
--- End quote ---
You don't get it. You use 4.4.3. That's the recommended version for Android since it's the latest version with the current NDK.
--- Quote ---I have changed the environment variables to cygwin notation:
export ANDROID_SDK_PATH=/cygdrive/c/Android/SDK
export ANDROID_NDK_PATH=/cygdrive/c/Android/NDK
but this does not change anything at all.
--- End quote ---
is that the base path of the NDK, i.e. the path that contains the file ndk-build?
--- Quote ---it is not 'windows' as assumed by tools/configure
--- End quote ---
configure doesn't assume that to be windows, it doesn't handle that case.
--- Quote ---arm-linux-androideabi-gcc.exe: /cygdrive/h/Programming/rockbox/source/firmware/S
OURCES: No such file or directory
arm-linux-androideabi-gcc.exe: warning: '-x c' after last input file has no effe
ct
--- End quote ---
How did you check out? Did you use the Cygwin svn client?
--- Quote ---Maybe the cross compiler behaves differntly depending on the host system?
--- End quote ---
If that would be the case it would be impossible to compile Rockbox on Windows at all. As I said in a different thread, nobody did adjust the Android parts of the build system to work on Cygwin yet so it doesn't surprise it doesn't work. Either fix the problems or wait until someone else does.
Navigation
[0] Message Index
[#] Next page
Go to full version