Cannot start rhodes sample application

I installed the Android version of sdk and Andorid ndk. Using the Android SDK and AVD Manager, I installed the Plaform SDK Android 2.2, API8, rev3 and 1.6, API4, revsion3

When I try to use rake run: android I received an error message

D:/Android_ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-android eabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: crtbegin_so.o: No such file: No such file or directory collect2: ld returned 1 exit status 

Any suggestion would be helpful

+3
source share
3 answers

An error appears in version 6b of the NDK. Go back to version 6 (the Mac version is here http://dl.google.com/android/ndk/android-ndk-r6-darwin-x86.tar.bz2 , Windows and Linux will be similar). Unzip it, place it somewhere, then run the rhodes configuration utility and tell me where the new NDK is located - you should be good to go.

+10
source

The problem also arises in NDK r7c (linux).

I found that the tool chain ignores the location of the platform ($ NDK_ROOT / platform / android-8 / arch-arm / usr / lib /) and looks for it in the tool chain path, which is incorrect.

However, since toolchain is also looking for a file in the current directory, one solution is to link the correct platform crtbegin_so.o and crtend_so.o to the source directory:

cd src && ln -s NDK_ROOT/platforms/android-8/arch-arm/usr/lib/crtbegin_so.a

cd src && ln -s NDK_ROOT/platforms/android-8/arch-arm/usr/lib/crtend_so.a

NOTE 1: This answer does not apply to rhodes

NOTE 2: It is assumed that the code compiles for API8 (Android 2.2). Please change the path to the correct platform according to your requirement.

NOTE 3: Configuring the flags used:

 ./configure \ --host=arm-linux-androideabi \ CC=arm-linux-androideabi-gcc \ CPPFLAGS="-I$NDK_ROOT/platforms/android-8/arch-arm/usr/include/" \ CFLAGS="-nostdlib" \ LDFLAGS="-Wl,-rpath-link=$NDK_ROOT/platforms/android-8/arch-arm/usr/lib/ -L$NDK_ROOT/platforms/android-8/arch-arm/usr/lib/" \ LIBS="-lc" 
+2
source

Not sure if I will point you in the right direction, but it looks like your Rhodes application is looking for files like SDK and AVD and cannot find them.

First, make sure the build.yml file in your project points to your folder in Rhodes. By default, sample-api is not installed correctly.

Also, in the Rhodes folder, make sure rhobuild.yml has the correct location for your SDK and AVD. There is an example in this folder that shows you what it should look like.

If this does not help, I suggest you show more tracing that will lead to this error. Any further information is appreciated since what you gave is not much to work with.

0
source

Source: https://habr.com/ru/post/893924/


All Articles