Report any bugs here and we'll post fixes
Moderators: Sascha Willems, Thomas
by Julio Jerez » Fri Mar 27, 2020 11:03 am
I download this: android-ndk-r21-windows-x86_64.zip
but I do not really undertand how this works. ther is no install and I do no find any doc anywhere.
I see a Cmake thing but hwo do I use that?
I do not get it.
I find the google style of software engineering atrocious. all their tool are quite horrible.
anyway if you can point me at to how to get this. I see that visual studio has and arm configuration setting I wee if I can investigate how to set that up. but as if stand now I can't get anythong to compile, not even a vanilla function.
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Julio Jerez » Fri Mar 27, 2020 12:52 pm
I now have the visual studio arm configuration compiling.
-It only build the core libraries, because some of the thsi party library do really compile for arm.
-the plugins do not compile because they are x86 simd specific. I need to make a Neon specific plugin but that is trivial
-the dgVector for now resolve to the scalar version. the next step is to implement the neo version using the code provided by execomrt.
I will try over the weekend.
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Slick » Sun Mar 29, 2020 5:10 am
Julio Jerez wrote:I download this: android-ndk-r21-windows-x86_64.zip
but I do not really undertand how this works. ther is no install and I do no find any doc anywhere.
I see a Cmake thing but hwo do I use that?
I do not get it.
I find the google style of software engineering atrocious. all their tool are quite horrible.
anyway if you can point me at to how to get this. I see that visual studio has and arm configuration setting I wee if I can investigate how to set that up. but as if stand now I can't get anythong to compile, not even a vanilla function.
After you download the zip file just extract it to where you want it to be or extract and copy. For example mine is at S:\NDK-r21. There is no installer because it runs from a command prompt. The ndk-build command starts the build. There are docs on the ndk that you read to understand. You bascically need an android.mk and an application.mk which tells the build what source files to use; where the headers are; etc.
You need a few environment variables:
ANDROID_NDK S:\NDK-r21
NDK_PROJECT_PATH S:\And2020\Ogre (the project you are trying to build. Beneath this folder create a folder called jni and put the android.mk and application.mk files in there.)
You run the ndk-build from the folder above the jni folder so S:\And2020\Ogre in my example. You have to set the environment variables before opening the command prompt.
-
Slick
-
- Posts: 330
- Joined: Sat Feb 07, 2004 7:24 pm
- Location: LA last and France now
by Slick » Sun Mar 29, 2020 5:12 am
-
Slick
-
- Posts: 330
- Joined: Sat Feb 07, 2004 7:24 pm
- Location: LA last and France now
by Slick » Mon Apr 27, 2020 10:07 am
Just for fun (and I'm having some linking problems) I tried CMake again. Still no joy for an Android build.
I tried Cmake and set the generator to ninja (for cross compiling).
- Code: Select all
[7/222] Building CXX object sdk/dgCore/CMakeFiles/dgCore.dir/dgGeneralMatrix.cpp.o
FAILED: sdk/dgCore/CMakeFiles/dgCore.dir/dgGeneralMatrix.cpp.o
S:\NDK-r21\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi16 --gcc-toolchain=S:/NDK-r21/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=S:/NDK-r21/toolchains/llvm/prebuilt/windows-x86_64/sysroot -D_CRT_SECURE_NO_WARNINGS -D_POSIX_VER -I../sdk/dModel -I../sdk/dVehicle -I../sdk/dgMeshUtil -I../sdk/dCustomJoints -I../sdk/dVehicle/dPlayerController -I../sdk/dVehicle/dVehicleMultiBody -I../sdk/dgCore/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security -Oz -DNDEBUG -fPIC -fPIC -fpermissive -std=c++11 -MD -MT sdk/dgCore/CMakeFiles/dgCore.dir/dgGeneralMatrix.cpp.o -MF sdk\dgCore\CMakeFiles\dgCore.dir\dgGeneralMatrix.cpp.o.d -o sdk/dgCore/CMakeFiles/dgCore.dir/dgGeneralMatrix.cpp.o -c ../sdk/dgCore/dgGeneralMatrix.cpp
In file included from ../sdk/dgCore/dgGeneralMatrix.cpp:23:
In file included from ../sdk/dgCore/./dgGeneralMatrix.h:28:
In file included from ../sdk/dgCore/./dgVector.h:33:
../sdk/dgCore/./dgVectorScalar.h:414:10: error: invalid use of incomplete type 'dgBigVector'
return dgBigVector (m_w, m_x, m_y, m_z);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../sdk/dgCore/./dgTypes.h:297:7: note: forward declaration of 'dgBigVector'
class dgBigVector;
^
1 error generated.
[8/222] Building CXX object sdk/dgCore/CMakeFiles/dgCore.dir/dgConvexHull4d.cpp.o
FAILED: sdk/dgCore/CMakeFiles/dgCore.dir/dgConvexHull4d.cpp.o
S:\NDK-r21\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi16 --gcc-toolchain=S:/NDK-r21/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=S:/NDK-r21/toolchains/llvm/prebuilt/windows-x86_64/sysroot -D_CRT_SECURE_NO_WARNINGS -D_POSIX_VER -I../sdk/dModel -I../sdk/dVehicle -I../sdk/dgMeshUtil -I../sdk/dCustomJoints -I../sdk/dVehicle/dPlayerController -I../sdk/dVehicle/dVehicleMultiBody -I../sdk/dgCore/. -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security -Oz -DNDEBUG -fPIC -fPIC -fpermissive -std=c++11 -MD -MT sdk/dgCore/CMakeFiles/dgCore.dir/dgConvexHull4d.cpp.o -MF sdk\dgCore\CMakeFiles\dgCore.dir\dgConvexHull4d.cpp.o.d -o sdk/dgCore/CMakeFiles/dgCore.dir/dgConvexHull4d.cpp.o -c ../sdk/dgCore/dgConvexHull4d.cpp
In file included from ../sdk/dgCore/dgConvexHull4d.cpp:27:
In file included from ../sdk/dgCore/./dgGoogol.h:29:
In file included from ../sdk/dgCore/./dgVector.h:33:
../sdk/dgCore/./dgVectorScalar.h:414:10: error: invalid use of incomplete type 'dgBigVector'
return dgBigVector (m_w, m_x, m_y, m_z);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../sdk/dgCore/./dgTypes.h:297:7: note: forward declaration of 'dgBigVector'
class dgBigVector;
^
1 error generated.
ninja: build stopped: subcommand failed.
-
Slick
-
- Posts: 330
- Joined: Sat Feb 07, 2004 7:24 pm
- Location: LA last and France now
Return to Bugs and Fixes
Who is online
Users browsing this forum: No registered users and 16 guests