hrydgard / ppsspp

A PSP emulator for Android, Windows, Mac and Linux, written in C++. Want to contribute? Join us on Discord at https://discord.gg/5NJB6dD or just send pull requests / issues. For discussion use the forums at forums.ppsspp.org.
https://www.ppsspp.org
Other
11.18k stars 2.17k forks source link

getting this errors while importing PPSSPP in android studio in fresh windows #18390

Open DinMin0 opened 11 months ago

DinMin0 commented 11 months ago

Game or games this happens in

-

What area of the game / PPSSPP

[CXX1429] error when building with cmake using D:\Ppsspp_android\CMakeLists.txt: C++ build system [configure] failed while executing: @echo off "C:\Users\hidte\AppData\Local\Android\Sdk\cmake\3.22.1\bin\cmake.exe" ^ "-HD:\AAA_PSP_android" ^ "-DCMAKE_SYSTEM_NAME=Android" ^ "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON" ^ "-DCMAKE_SYSTEM_VERSION=16" ^ "-DANDROID_ABI=arm64-v8a" ^ "-DCMAKE_ANDROID_ARCH_ABI=arm64-v8a" ^ "-DANDROID_NDK=C:\Users\hidte\AppData\Local\Android\Sdk\ndk\21.4.7075529" ^ "-DCMAKE_ANDROID_NDK=C:\Users\hidte\AppData\Local\Android\Sdk\ndk\21.4.7075529" ^ "-DCMAKE_TOOLCHAIN_FILE=C:\Users\hidte\AppData\Local\Android\Sdk\ndk\21.4.7075529\build\cmake\android.toolchain.cmake" ^ "-DCMAKE_MAKE_PROGRAM=C:\Users\hidte\AppData\Local\Android\Sdk\cmake\3.22.1\bin\ninja.exe" ^ "-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=D:\AAA_PSP_android\android\build\intermediates\cxx\Debug\615868t2\obj\arm64-v8a" ^ "-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=D:\AAA_PSP_android\android\build\intermediates\cxx\Debug\615868t2\obj\arm64-v8a" ^ "-DCMAKE_BUILD_TYPE=Debug" ^ "-BD:\AAA_PSP_android\android\.cxx\Debug\615868t2\arm64-v8a" ^ -GNinja ^ "-DANDROID=true" ^ "-DANDROID_PLATFORM=android-16" ^ "-DANDROID_TOOLCHAIN=clang" ^ "-DANDROID_STL=c++_static" ^ "-DANDROID_ARM_NEON=TRUE" from D:\AAA_PSP_android\android

What should happen

even installed ndk 21.4.7075529 and cmake perfectly then still getting same errors

Logs

No response

Platform

Android

Mobile phone model or graphics card

-

PPSSPP version affected

v1.16.6

Last working version

No response

Graphics backend (3D API)

Vulkan

Checklist

anr2me commented 11 months ago

Which version of android studio did you use?

And, you didn't forget to install Python 3, right?

PS: usually you just need to open ppsspp folder as a project instead of importing it.

DinMin0 commented 11 months ago

Android studio giraffe 2022.3.1 patch 2 and python 3.12.0, imported ppsspp using git url

LunaMoo commented 11 months ago

Check https://github.com/hrydgard/ppsspp/wiki/Build-instructions#download-the-source-code again in case you forgot about submodules like most newbies do, don't import it inside android studio, use git to get everything properly and then open the PPSSPP folder as a project in android studio.

DinMin0 commented 11 months ago

What Necessary things to install before installing Android studio

On Tue, Oct 31, 2023, 3:10 PM LunaMoo @.***> wrote:

Check https://github.com/hrydgard/ppsspp/wiki/Build-instructions#download-the-source-code again in case you forgot about submodules like most newbies do, don't import it inside android studio, use git to get everything properly and then open the PPSSPP folder as a project in android studio.

— Reply to this email directly, view it on GitHub https://github.com/hrydgard/ppsspp/issues/18390#issuecomment-1786852274, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDUMG5GYHKOZWIYJU6OSWKDYCDBPPAVCNFSM6AAAAAA6XI77H6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBWHA2TEMRXGQ . You are receiving this because you authored the thread.Message ID: @.***>

DinMin0 commented 11 months ago

What are prerequisites for building in Android studio

anr2me commented 11 months ago

The link from LunaMoo should answer your questions.

Anyway, if you haven't download the submodules required by PPSSPP, you can run git submodule update --init --recursive from within ppsspp folder (ie. Ppsspp_android folder in your case)

Also, Use "Open" and select the ppsspp folder, don't use "Import" image

hidte9 commented 7 months ago

After importing Ppsspp project in Android studio then Cpp folder show empty IMG_20240223_112943