FWGS / hlsdk-portable

Portable Half-Life SDK. GoldSource and Xash3D. Crossplatform.
https://xash.su
Other
272 stars 125 forks source link

How to build it for android ? #168

Closed carl1234a closed 3 years ago

carl1234a commented 3 years ago

I have problem about built it for android first I write in terminal ndk-build but not working And i use xash project waf but it's say OSError: [Errno 2] no such file or directory 'sdk-tools,/build-tools' How to fix it ? plz plz i wait 5 mouth for waiting to answer it In addition i run again ndk-build but it's say Android Ndk: App_platform not set defaulting to minium support android-16 Android Ndk:. Your app_build_script point to an unknown file .../jni/Android.mk

nekonomicon commented 3 years ago

And i use xash project waf but it's say OSError: [Errno 2] no such file or directory 'sdk-tools,/build-tools'

There no recept for waf yet.

https://github.com/FWGS/xash3d-fwgs/issues/140

carl1234a commented 3 years ago

Dude i run ndk-build but it's say Android Ndk: App_platform not set defaulting to minium support android-16 Android Ndk:. Your app_build_script point to an unknown file .../jni/Android.mk

nekonomicon commented 3 years ago

For old engine you need to use ant and android NDK r10e.

carl1234a commented 3 years ago

Android Ndk r10e !!!

I use android Ndk r10 without Ndk r10e

nekonomicon commented 3 years ago

Android Ndk: App_platform not set defaulting to minium support android-16

Minimal app_platform for android ndk 10 is android-8. So you are doing something wrong.

a1batross commented 3 years ago

And i use xash project waf but it's say

You don't need to build Xash3D FWGS itself. We separated mods from engine for reasons.

Building mods isn't going to be easy. What basically you need to do is to take mod-sample(there is very simplistic howto) and modify it for your own needs.

nekonomicon commented 3 years ago

Minimal app_platform for android ndk 10 is android-8.

Oh, I forgot... You need to set APP_PLATFORM in application.mk. But you can just google it and read official documentation.

carl1234a commented 3 years ago

Bruh i wrote it again Ndk-build But it's say ndk-build :command not found

carl1234a commented 3 years ago

Oh sorry i fix it now is working thank you

ghost commented 3 years ago

Oh sorry i fix it now is working thank you

can we close this, they said it worked so..

carl1234a commented 3 years ago

Ok