Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pls How to start app if NDK and makefile is giving me erors? #94

Open
pavlogreat opened this issue Dec 22, 2024 · 14 comments
Open

pls How to start app if NDK and makefile is giving me erors? #94

pavlogreat opened this issue Dec 22, 2024 · 14 comments

Comments

@pavlogreat
Copy link

Cant go through this

➜ ~ cd rawdrawandroid
➜ rawdrawandroid git:(master) make keystore
Makefile:77: *** NDK directory not found. Stop.
➜ rawdrawandroid git:(master) cd rawdrawandroid
cd: no such file or directory: rawdrawandroid
➜ rawdrawandroid git:(master) cd
➜ ~ git clone https://github.com/lzhiyong/termux-ndk.git
Cloning into 'termux-ndk'...
remote: Enumerating objects: 597, done.
remote: Counting objects: 100% (151/151), done.
remote: Compressing objects: 100% (121/121), done.
remote: Total 597 (delta 26), reused 125 (delta 17), pack-reused 446 (from 1)
Receiving objects: 100% (597/597), 4.40 MiB | 14.59 MiB/s, done.
Resolving deltas: 100% (129/129), done.
➜ ~ cd rawdrawandroid/
➜ rawdrawandroid git:(master) make keystore
Makefile:77: *** NDK directory not found. Stop.
Знімок екрана 2024-12-22 221603

@chaosgoo
Copy link

You should set up your NDK path by exporting it to the environment variable, as shown below:

export ANDROID_NDK_HOME=$HOME/Android/Ndk/android-ndk-r27c

Additionally, you will also need to set the ANDROID_HOME environment variable, like this:

export ANDROID_NDK_HOME=$HOME/Android/Sdk

@pavlogreat
Copy link
Author

oh wow . it works now i have another problem!
and i think i need export build tools?
зображення_2024-12-23_213538819

@pavlogreat
Copy link
Author

okey waht is this now?!?!?!
зображення_2024-12-23_214144539

@chaosgoo
Copy link

I checked my NDK path, and it contains the aarch64-linux-android30-clang that you mentioned is missing in your error. Have you downloaded the NDK? Or is the extraction complete?

@pavlogreat
Copy link
Author

well ive installed andoid studio and in setting downloaded NDK . then type hte commnads taht you reccomended and CNlohr . and i dont know what to do. i so badly want to start this app or make my own app. but its so hard(((

@chaosgoo
Copy link

try cd /home/pavlo/Android/Ndk/android-ndk-r27c/toolchains/llvm/prebuilt/linux-x86_64/bin
and use ls, can you find aarch64-linux-android30-clang?

@pavlogreat
Copy link
Author

image
cd: no such file or directory: /home/pavlo/Android/Ndk/android-ndk-r27c/toolchains/llvm/prebuilt/linux-x86_64/bin

@chaosgoo
Copy link

Now that I'm certain the issue lies with your NDK path, you should check where Android Studio has downloaded the NDK. Additionally, I can see that your environment is WSL. Did you download the Windows version of Android Studio? Installing Android Studio on WSL is not straightforward, as you first need to set up a desktop environment within WSL.

If you're using WSL, you can install only the command-line tools from the Command line tools only section at the bottom of this page, instead of installing Android Studio. Then, use sdkmanager to manually install the Android SDK. Next, go to the NDK page to download the NDK. After extracting everything, export the environment variables, and then run make run.

@pavlogreat
Copy link
Author

i have dowloaded windows Andoid studio fully on windows.
tahnk you. i would highly appreaciate if you would give me the easy steps to do this on my own. or how to easely create something like this and klnow how to deploy it)

@pavlogreat
Copy link
Author

where should i install comand tools? in disc c? in root? or in AppData?

@chaosgoo
Copy link

where should i install comand tools? in disc c? in root? or in AppData?
Any path will do, as long as it's convenient for you to find.

@pavlogreat
Copy link
Author

ohhh. i cant understand what to do everything is now again giving errors. pls chaosgoo give the working easy steps to run this )))pls im beggin you.
from start
1 install ubuntu in MIcrosoft store
2 make it work etc.
3 git clone rawdraandroid?

@chaosgoo
Copy link

I noticed that the repository supports building using Docker. Here, I will summarize the content of the Docker file.

Enter your wsl environment. Follow these steps.

Download Android SDK

wget -c https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip -O ~/temp.zip

Set ANDROID_HOME Environment variable

export ANDROID_SDK_HOME=~/android-sdk

Unzip SDK files.

unzip -d ${ANDROID_SDK_HOME} temp.zip

Process Android SDK licenses

yes | $ANDROID_SDK_HOME/tools/bin/sdkmanager --sdk_root=${ANDROID_SDK_HOME} --licenses

Download requirement build toolchains.

$ANDROID_SDK_HOME/tools/bin/sdkmanager --sdk_root=${ANDROID_SDK_HOME} "build-tools;29.0.3" "cmake;3.10.2.4988404" "ndk;21.1.6352462" "platform-tools" "platforms;android-29" "tools"

Set ANDROID_NDK_HOME

export ANDROID_NDK_HOME=$ANDROID_SDK_HOME/ndk/21.1.6352462

Clone rawandroid, it is recommended to clone it to a location where you can easily find it, as we will need to use the constructed APK file later, and you wouldn't want to lose it.

git clone https://github.com/cnlohr/rawdrawandroid.git

cd dir

cd rawdrawandroid

I checked the downloaded NDK 21.1.6352462, and it supports up to Android Version 29, so we need to make a slight modification to the Makefile in the repository.

Find the line ANDROIDVERSION?=30 on line 21 and change it to ANDROIDVERSION?=29.

make keystore

At this point, there is a divergence depending on whether your Android device is directly connected to the PC via USB or if the Android device has remote debugging enabled.
If it is connected via USB, it will involve the issue of WSL using usbip to access the USB devices mounted by Windows.
If the device has remote debugging enabled, you can directly use adb connect deviceip.

Since I am not sure which method you are using, I will only build the APK file.

make makecapk.apk

As for installing the APK, I don't think it needs any introduction, does it?

@pavlogreat
Copy link
Author

nahhh. shit . doesnt work. seems like i failing.
can you pls like give me full fresh installation guide?like for me who dont understand.
Lets for example say , i have reinstalled fully windows, have no WSL (ubuntu) . What my steps in details would be?
for example. we have rawdrawandoid for example. but what if i will gonna code my own app? what steps do i need to run it like there. can you?
im sorry if my bothering you and stealing your time. but i have passion for this. i think i can build some simple apps for people)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants