cocos2dx 3.11.1 андроид студия в windows

Привет я хочу использовать Cocos2DX Android Studio в Windows.

я скачал android-ndk-r12, андроид студию и apache-ant-1.9.7. cocos2dx 3.11.1

теперь я успешно создаю проект с помощью команды cocos.py new MyGame -p com.MyCompany.MyGame -l cpp -d I: \ Work \ cocos2dx.

Но где я использую cocos.py compile -p android —android-studio для компиляции, я получаю эту ошибку

[armeabi] «Компилировать ++ thumb»: «MyGame_shared <= AppDelegate.cpp «process_begin: CreateProcess (NULL, I: / Software / ProgramingSoftware / cocos2dx / android-ndk-r12 / build //../ toolchains / arm-linux-androideabi-4.9 / prebuilt / windows-x86_64 / bin / arm-linux-androideabi-g ++ -MMD -MP -MF ./obj/local/armeabi/objs-debug/MyGame_shared/hellocpp/ma
in.od -fpic -ffunction-section -funwind-tables -fstack-protector-strong -no-канонические-префиксы -g -march = armv5te -mtune = xscale -msoft-float -fno-исключения -fno-rtti -mthumb — O0 -UNDEBUG -Ijni /../../../ Классы -II: / Программное обеспечение / Программирование, Софт / cocos2dx / android
-ndk-r12 / build //../ sources / cxx-stl / gnu-libstdc ++ / 4.9 / include -II: / Программное обеспечение / Программное обеспечение для программирования / cocos2dx / android-ndk-r12 / build //../ sources / cxx- stl / gnu-libstdc ++ / 4.9 / libs / armeabi / include -II: / Программное обеспечение / Программное обеспечение для программирования / cocos2dx / android-ndk-r12 / build //../ sources / c
xx-stl / gnu-libstdc ++ / 4.9 / include / backward -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos / поддержка редактора / cocostudio / .. -II: / Work / cocos2dx / MyGame / proj.android-studio /../ cocos2d / cocos / поддержка редактора / cocosbuilder / .. -II: /Work/cocos2dx/MyGame/proj.an
droid-studio /../ cocos2d / cocos / 3d / .. -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos / поддержка редактора / spine / .. -II: / Работа / cocos2dx / MyGame / proj.android-studio /../ cocos2d / cocos / network -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos / audi
o / android /../ include -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos / ui /../ поддержка редактора -II: / Work / cocos2dx / MyGame / proj .android-studio /../ cocos2d / cocos / audio / android /../ включает -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / external / fl
atbuffers / .. -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / extensions /. -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / extensions / .. -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / extensions / GUI / CCControlExtension -II: / Работа / cocos2
dx / MyGame / proj.android-studio /../ cocos2d / extensions / GUI / CCScrollView -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos /. -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / Кокосовые /./. -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / сос
os /./ .. -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos /./../ external -II: /Work/cocos2dx/MyGame/proj.android-studio /../cocos2d/cocos/./../external/tinyxml2 -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos /./../ external / unzip -II: / Wo
rk / cocos2dx / MyGame / proj.android-studio /../ cocos2d / cocos /./../ external / chipmunk / include / chipmunk -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos /./../ external / xxhash -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos /./../ external / nslo
g -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos /./../ external / poly2tri -II: /Work/cocos2dx/MyGame/proj.android-studio/ .. /cocos2d/cocos/./../external/poly2tri/common -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos /./../ external / pol
y2tri / sweep -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos /./../ external / clipper -II: /Work/cocos2dx/MyGame/proj.android-studio/ ../cocos2d/external/websockets/prebuilt/android/../../include/android -II: /Work/cocos2dx/MyGame/proj.android-studio/ ..
/ cocos2d / external / Box2D / .. -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / external / bullet / .. -II: /Work/cocos2dx/MyGame/proj.android- studio /../ cocos2d / external / freetype2 / prebuilt / android /../../ include / android -II: /Work/cocos2dx/MyGame/proj.android-stud
io /../ cocos2d / external / freetype2 / prebuilt / android /../../ include / android / freetype2 -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / external / png /prebuilt/android/../../include/android -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / external / jpeg
/prebuilt/android/../../include/android -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / external / tiff / prebuilt / android /../../ include / android -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / external / webp / prebuilt / android /../../ include / android —
II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / external / chipmunk / prebuilt / android /../../ include -II: /Work/cocos2dx/MyGame/proj.android-studio /../cocos2d/external/zlib/prebuilt/android/../../include -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos
2d / external / recast / .. -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos / платформа / android -II: / Программное обеспечение / ПрограммированиеSoftware / cocos2dx / android-ndk-r12 / сборка //../ sources / android / cpufeatures -Ijni -DANDROID -DUSE_FILE32API -Wa, — noexecstack -Wformat -Wer
ror = безопасность формата -Wno-устаревшие-объявления -Wno-extern-c-compat -D__STDC_LIMIT_MACROS = 1 -Wno-extern-c-compat -fexceptions -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION = 1 -std = c ++ 11 -figned -DCOCOS2D_DEBUG = 1 -система I: / Программное обеспечение / Программирование, ПО / cocos2dx
/android-ndk-r12/build//../platforms/android-19/arch-arm/usr/include -c jni / hellocpp / main.cpp -o ./obj/local/armeabi/objs-debug/MyGame_shared /hellocpp/main.o, …) не удалось.
make (e = 2): система не может найти указанный файл.
делать: * [obj / local / armeabi / objs-debug / MyGame_shared / hellocpp / main.o] Ошибка 2
делать: *
В ожидании незавершенных работ ….
process_begin: CreateProcess (NULL, I: / Software / ProgramingSoftware / cocos2dx / android-ndk-r12 / build //../ набор инструментов / arm-linux-androideabi-4.9 / prebuilt / windows-x86_64 / bin / arm-linux-androideabi -g ++ -MMD -MP -MF ./obj/local/armeabi/objs-debug/MyGame_shared//// Cl
asses / AppDelegate.od -fpic -ffunction-section -funwind-tables -fstack-protector-strong -no-канонический-префиксы -g -march = armv5te -mtune = xscale -msoft-float -fno-exceptions -fno-rtti — mthumb -O0 -UNDEBUG -Ijni /../../../ Классы -II: / Программное обеспечение / Программирование, Софт / c
ocos2dx / android-ndk-r12 / build //../ sources / cxx-stl / gnu-libstdc ++ / 4.9 / include -II: / Software / ProgramingSoftware / cocos2dx / android-ndk-r12 / build //../ sources /cxx-stl/gnu-libstdc++/4.9/libs/armeabi/include -II: / Программное обеспечение / Программное обеспечение для программирования / cocos2dx / android-ndk-r12 / buil
d //../ sources / cxx-stl / gnu-libstdc ++ / 4.9 / include / backward -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos / поддержка редактора / cocostudio / .. -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos / поддержка редактора / cocosbuilder / .. -II: / Work / cocos2dx
/MyGame/proj.android-studio/../cocos2d/cocos/3d/ .. -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos / редактор-поддержка / spine /. . -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos / network -II: /Work/cocos2dx/MyGame/proj.android-studio /../ coc
os2d / cocos / audio / android /../ include -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos / ui /../ поддержка редактора -II: / Work / cocos2dx /MyGame/proj.android-studio/../cocos2d/cocos/audio/android/../include -II: /Work/cocos2dx/MyGame/proj.android-studio /../ coco
s2d / external / flatbuffers / .. -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / extensions /. -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / extensions / .. -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / extensions / GUI / CCControlExtension —
II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / extensions / GUI / CCScrollView -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos /. -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / Кокосовые /./. -II: /Work/cocos2dx/MyGame/proj.android-studio
/../cocos2d/cocos/./ .. -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos /./../ external -II: / Work / cocos2dx / MyGame /proj.android-studio/../cocos2d/cocos/./../external/tinyxml2 -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos /./../ экстерна
l / unzip -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos /./../ external / chipmunk / include / chipmunk -II: / Work / cocos2dx / MyGame / proj. android-studio /../ cocos2d / cocos /./../ external / xxhash -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos /./.
./external/nslog -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos /./../ external / poly2tri -II: /Work/cocos2dx/MyGame/proj.android- studio /../ cocos2d / cocos /./../ external / poly2tri / common -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos /./
../external/poly2tri/sweep -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos /./../ external / clipper -II: / Work / cocos2dx / MyGame / proj .android-studio /../ cocos2d / external / websockets / prebuilt / android /../../ include / android -II: /Work/cocos2dx/MyGame/proj.an
droid-studio /../ cocos2d / external / Box2D / .. -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / external / bullet / .. -II: / Работа / cocos2dx / MyGame / proj.android-studio /../ cocos2d / external / freetype2 / встроенный / android /../../ include / android -II: / Work / cocos2dx / MyGame / pr
oj.android-studio /../ cocos2d / external / freetype2 / prebuilt / android /../../ include / android / freetype2 -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d /external/png/prebuilt/android/../../include/android -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2
d / external / jpeg / prebuilt / android /../../ include / android -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / external / tiff / prebuilt / android / .. /../include/android -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / external / webp / prebuilt / android /../../ in
clude / android -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / external / chipmunk / prebuilt / android /../../ include -II: / Work / cocos2dx / MyGame / proj .android-studio /../ cocos2d / external / zlib / prebuilt / android /../../ include -II: /Work/cocos2dx/MyGame/proj.android-
studio /../ cocos2d / external / recast / .. -II: /Work/cocos2dx/MyGame/proj.android-studio /../ cocos2d / cocos / платформа / android -II: / Программное обеспечение / Программирование Software / cocos2dx / android -ndk-r12 / build //../ sources / android / cpufeatures -Ijni -DANDROID -DUSE_FILE32API -Wa, — noexecstac
k -Wformat -Werror = формат-безопасность -Wno-устаревшие-объявления -Wno-extern-c-compat -D__STDC_LIMIT_MACROS = 1 -Wno-extern-c-compat -fexceptions -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION = 1 -std c ++ -fsigned-char -DCOCOS2D_DEBUG = 1 -система I: / Программное обеспечение / Программирование
ftware / cocos2dx / android-ndk-r12 / build //../ платформы / android-19 / arch-arm / usr / include -c jni /../../../ Classes / AppDelegate.cpp -o. / объект / местные / armeabi / OBJS-отлаживать / MyGame_shared /
///Classes/AppDelegate.o, …) не удалось.
make (e = 2): система не может найти указанный файл.
make: *** [obj / local / armeabi / objs-debug / MyGame_shared ///__/Classes/AppDelegate.o] Ошибка 2
make: выход из каталога `I: /Work/cocos2dx/MyGame/proj.android-studio/app ‘
Ошибка при выполнении команды, код возврата: 2.

0

Решение

Эта команда сделала все у меня работает:

кокос скомпилировать -p android —android-studio —app-abi armeabi

Но это только скомпилирует его для архитектуры abi armeabi.

0

Другие решения

Других решений пока нет …

По вопросам рекламы [email protected]