Long suffered in the Android studio to launch nativeActivity projects using the Crystax NDK. However, I ran into assembly errors, and the project was never launched. Learning about the cross-platform Visual Studio 2015, I decided to move from the android studio to the visual. Oddly enough, the example was launched, already with the Crystax NDK. But when I got into the source code, and tried to use BOOST, the studio sent me to hell. She does not see this library, most likely as the rest of libpng ... How can you connect all the features of the Crystax NDK?
1 answer
Visual Studio does not use the NDK build system, so for it you need to set all paths in the project settings yourself. For example, for CrystaX NDK 10.3.1, you need to set the paths to the Boost header as $(VS_NdkRoot)\sources\boost\1.59.0\include , and also add copying of the Boost libraries to the Pre-link step by analogy with copying libcrystax: copy /b /y "$(VS_NdkRoot)\sources\boost\1.59.0\libs\$(TargetArchAbi)\gnu-5\libboost_*.a" "$(TargetDir)"
- Alas, but for some reason I registered the paths, but still do not want to use the boost commands. And in the root paths added, and in additional. Prescribed $ (VS_NdkRoot) \ sources \ boost \ 1.59.0 \ include in the settings of the VC ++ directories - Inclusion directories; also registered in additional directories of included files. The same trouble - Vetos
- Obviously, you are doing something wrong. All header files are there, libraries too. So, if you can not compile, or the path is specified incorrectly, or not in those places where necessary. I can answer more intelligently if you provide a full build log. - Dmitry Moskalchuk
- Many thanks to you, Dmitry, for the work done and for the help. Yes, I added it in the activation settings, but I needed it in the Library. - Vetos
|