User forums > Using Code::Blocks

How to set up C::B for Android NDK compiler?

(1/9) > >>

amarty:
I try to set up Code::Blocks with Mentor Graphics CodeSourcery ARM GCC - this works fine.
In the same manner I try to set up Code::Blocks for Android NDK ARM GCC and got an error:

"Project - debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!].
Probably the toolchain path within the compiler options is not setup correctly?! Skipping...

Summary information about my NDK installation:

NDK root        : D:\android-ndk-r8b
arm-linux-androideabi-g++.exe and others are in
                   : D:\android-ndk-r8b\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bin
make.exe is in: D:\android-ndk-r8b\prebuilt\windows\bin\

My Code::Blocks setting is:

1) Compiler's installation directory (the 'bin' removed fom path)
     - D:\android-ndk-r8b\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows
2) Additional paths
     - D:\android-ndk-r8b\prebuilt\windows\bin
     - D:\android-ndk-r8b\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bin

I try to set 1 and 2 in varios ways, but result is the same - error. I can't understand, is it my fail, or it is some bug or misconfiguration in C::B or NDK?

Can anybody help me?

MortenMacFly:

--- Quote from: amarty on November 15, 2012, 02:20:07 am ---arm-linux-androideabi-g++.exe and others are in

--- End quote ---
Did you name the compiler's executables names like that?

The algorithm is very simple:
C::B searches for all given tools (i.e. "g++.exe") in either the main or "bin" sub-folder and any additional provided folders.

So either the names of your tools are wrong, or the path's.

amarty:

--- Quote from: MortenMacFly on November 15, 2012, 09:29:23 am ---
--- Quote from: amarty on November 15, 2012, 02:20:07 am ---arm-linux-androideabi-g++.exe and others are in

--- End quote ---
Did you name the compiler's executables names like that?

--- End quote ---
Yes, compiler executables have such names. CodeSourcery Tollset compiler has name "arm-none-linux-gnueabi-g++.exe", but it works fine.


--- Quote from: MortenMacFly on November 15, 2012, 09:29:23 am ---So either the names of your tools are wrong, or the path's.

--- End quote ---

I checked all names and paths more than ten times

amarty:
 May be, the problem is that the NDK under Windows requires Cygwin or MSYS, and, when I compiling code in Eclipse, all paths seems like unix style path: windos path "D:\android-ndk-r8b\toolchains" looks like /d/android-ndk-r8b/toolchains. If it is true, my problem has no solution ;(

Jenna:
Do you have a valid executable in the C-compiler field ?
If not you get this error, if I remember correctly.

If no C-compiler is available, you should additionally put the C++-compiler in the C-compiler field.

Navigation

[0] Message Index

[#] Next page

Go to full version