Boost-for-Android icon indicating copy to clipboard operation
Boost-for-Android copied to clipboard

Fails to build on Win7 x64 and Ndk r8

Open asloobq opened this issue 13 years ago • 10 comments

I am trying to build it on windows7 64 bit with Cygwin installed and Android-ndk-r8, but getting the following error message.

CONSOLE

admin@admin-PC /cygdrive/c/users/admin/Downloads/Boost-for-Android-master
$ sh build-android.sh
To follow build in another terminal, please use: tail -F /cygdrive/c/users/admin/Downloads/Boost-for-Android-master/logs/myst-log-2272.log
Building boost version: 1.53.0
Using AndroidNDKRoot = /cygdrive/c/android-ndk-r8
Detected Android NDK version 8
Building with TOOLSET=gcc-androidR8 CXXPATH=/cygdrive/c/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86/bin/arm-linux-androideabi-g++ CXXFLAGS=
Cannot find C++ compiler at: /cygdrive/c/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86/bin/arm-linux-androideabi-g++

Any help would be appreciated. Thanks

asloobq avatar Apr 18 '13 08:04 asloobq

Could you verify the path to the actual compiler? make sure ' /cygdrive/c/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/ windows-x86/bin/arm-linux-androideabi-g++' is valid

On Thu, Apr 18, 2013 at 10:47 AM, asloobq [email protected] wrote:

I am trying to build it on windows7 64 bit with Cygwin installed and Android-ndk-r8, but getting the following error message.

CONSOLE

admin@admin-PC /cygdrive/c/users/admin/Downloads/Boost-for-Android-master $ sh build-android.sh To follow build in another terminal, please use: tail -F /cygdrive/c/users/admin/Downloads/Boost-for-Android-master/logs/myst-log-2272.log Building boost version: 1.53.0 Using AndroidNDKRoot = /cygdrive/c/android-ndk-r8 Detected Android NDK version 8 Building with TOOLSET=gcc-androidR8 CXXPATH=/cygdrive/c/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86/bin/arm-linux-androideabi-g++ CXXFLAGS= Cannot find C++ compiler at: /cygdrive/c/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86/bin/arm-linux-androideabi-g++

Any help would be appreciated. Thanks

— Reply to this email directly or view it on GitHubhttps://github.com/MysticTreeGames/Boost-for-Android/issues/26 .

Moritz Wundke www.MysticTreeGames.com www.DarkCultureGames.com http://www.darkculturegames.com/

moritz-wundke avatar Apr 18 '13 09:04 moritz-wundke

This path is valid and a .exe file is present at the location

C:\android-ndk-r8\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bin\arm-linux-androideabi-g++.exe

I tested it using

admin@admin-PC ~
$  /cygdrive/c/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-g++.exe
arm-linux-androideabi-g++.exe: no input files

Thanks @moritz-wundke

asloobq avatar Apr 18 '13 09:04 asloobq

and if you just do: /cygdrive/c/android-ndk-r8/toolchains/arm-linux- androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-g++ without the extension I mean?

On Thu, Apr 18, 2013 at 11:09 AM, asloobq [email protected] wrote:

This path is valid and a .exe file is present at the location

C:\android-ndk-r8\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bin\arm-linux-androideabi-g++.exe

I tested it using

admin@admin-PC ~ $ /cygdrive/c/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-g++.exe arm-linux-androideabi-g++.exe: no input files

— Reply to this email directly or view it on GitHubhttps://github.com/MysticTreeGames/Boost-for-Android/issues/26#issuecomment-16565615 .

Moritz Wundke www.MysticTreeGames.com www.DarkCultureGames.com http://www.darkculturegames.com/

moritz-wundke avatar Apr 18 '13 09:04 moritz-wundke

Same response

admin@admin-PC ~
$  /cygdrive/c/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-g++
arm-linux-androideabi-g++.exe: no input files

asloobq avatar Apr 18 '13 09:04 asloobq

Jim Dovey has only very recently added support for 64bit NDKs, it hasn't been merged to this branch yet. I don't have neither windows nor 64bit system, so perhaps you could be among first ones to give it a go? This

http://github.com/readium/Boost-for-Android

is the branch where he's made the changes.

inetic avatar Apr 23 '13 13:04 inetic

Also, the paths don't seem to match:

/cygdrive/c/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows-x86/bin/arm-linux-androideabi-g++ /cygdrive/c/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-g++

(the first one is reported by the build-android.sh script and the second one is the one asloobq tried)

Looking at the patch from Jim Dovey, it appears it won't fully fix the problem on cygwin though.

inetic avatar Apr 23 '13 13:04 inetic

@inetic I tried building from http://github.com/readium/Boost-for-Android . It built successfully more or less, but I still got a few errors.

# ---------------
# Build using NDK
# ---------------
Building boost for android
/cygdrive/C/Users/admin/Downloads/readium-Boost-for-Android-master/Boost-for-Android-master/boost_1_53_0/tools/build/v2/tools/gcc.jam:78: in gcc.init from module gcc
error: toolset gcc initialization:
error: provided command 'arm-linux-androideabi-g++' not found
error: initialized from /cygdrive/C/Users/admin/Downloads/readium-Boost-for-Android-master/Boost-for-Android-master/boost_1_53_0/tools/build/v2/user-config.jam:85
/cygdrive/C/Users/admin/Downloads/readium-Boost-for-Android-master/Boost-for-Android-master/boost_1_53_0/tools/build/v2/build/toolset.jam:39: in toolset.using from module toolset
/cygdrive/C/Users/admin/Downloads/readium-Boost-for-Android-master/Boost-for-Android-master/boost_1_53_0/tools/build/v2/build/project.jam:898: in using from module project-rules
/cygdrive/C/Users/admin/Downloads/readium-Boost-for-Android-master/Boost-for-Android-master/boost_1_53_0/tools/build/v2/user-config.jam:85: in modules.load from module user-config
/cygdrive/C/Users/admin/Downloads/readium-Boost-for-Android-master/Boost-for-Android-master/boost_1_53_0/tools/build/v2/build-system.jam:257: in load-config from module build-system
/cygdrive/C/Users/admin/Downloads/readium-Boost-for-Android-master/Boost-for-Android-master/boost_1_53_0/tools/build/v2/build-system.jam:399: in load-configuration-files from module build-system
/cygdrive/C/Users/admin/Downloads/readium-Boost-for-Android-master/Boost-for-Android-master/boost_1_53_0/tools/build/v2/build-system.jam:555: in load from module build-system
/cygdrive/C/Users/admin/Downloads/readium-Boost-for-Android-master/Boost-for-Android-master/boost_1_53_0/tools/build/v2/kernel/modules.jam:283: in import from module modules
/cygdrive/C/Users/admin/Downloads/readium-Boost-for-Android-master/Boost-for-Android-master/boost_1_53_0/tools/build/v2/kernel/bootstrap.jam:142: in boost-build from module
/cygdrive/C/Users/admin/Downloads/readium-Boost-for-Android-master/Boost-for-Android-master/boost_1_53_0/boost-build.jam:17: in module scope from module

build-android.sh: line 318: [: !=: unary operator expected
Done!

Any ideas why?

asloobq avatar Apr 24 '13 10:04 asloobq

@asloobq, I made some modifications in this branch: https://github.com/inetic/Boost-for-Android

The changes probably won't fix the problem entirely but will log some information that might help. If you give it a go, do the following:

$ ./build-android.sh --clean $ ./build-android.sh

It should also create a file ./logs/myst-log-[SOME-NUMBER].log . If you look in that file, on first lines it should contain something like:

HOST_ARCH= HOST_OS= HOST_EXE= HOST_TAG= HOST_NUM_CPUS= BUILD_NUM_CPUS=

Please copy/paste those values here.

inetic avatar Apr 24 '13 12:04 inetic

Hi @inetic here are the values

HOST_ARCH=x86
HOST_OS=cygwin
HOST_EXE=.exe
HOST_TAG=windows
HOST_NUM_CPUS=4
BUILD_NUM_CPUS=8

asloobq avatar Apr 24 '13 13:04 asloobq

@asloobq, I tried to fix the path to the compiler in my branch https://github.com/inetic/Boost-for-Android

Could you give it a go (if so, include the cleaning step as well)? And let me know of any error you see.

Thanks.

inetic avatar Apr 24 '13 13:04 inetic