Hey! raylib forum is closing!
After a year with not much movement in the forum I decided to close it.
The cost of maintaining the hosting is a bit high for the usage of the platform, updating the forum and managing it is also a bit cumbersome and the truth is that I'm already trying to maintain multiple other networks pretty more active than this forum.
I'll recommend you to move to the other raylib networks:
- For a forum style, use Reddit: https://www.reddit.com/r/raylib/
- For direct messaging and questions, use Discord: https://discord.gg/VkzNHUE
- To report issues, use GitHub: https://github.com/raysan5/raylib
- Also, remember you can contact me personally on Twitter: https://twitter.com/raysan5
or directly by mail to ray[at]raylib.com
If you feel generous, you can also contribute to the project on my Patreon: https://www.patreon.com/raylib
Thanks to you all for joining the project and help to improve it with your questions. Keep it up! :)
PD. Closing will be effective by October 31th.
Hello everyone and thank you Ray for making this great library.
Everything works great with C on Android, but I cannot get the apk to work with C++ on android.
I managed to get it to make the apk but it crashes on launch. Same source game1.c and my includes works fine on desktop. I compiled with g++ and used these flags:
GP = $(ANDROID_TOOLCHAIN)/bin/arm-linux-androideabi-g++
added my header only includes to INCLUDE_PATHS
# Compile native_app_glue code as static library: obj/libnative_app_glue.a
$(CC) -c $(RAYLIB_PATH)/src/external/android/native_app_glue/android_native_app_glue.c -o $(PROJECT_BUILD_PATH)/obj/native_app_glue.o $(CFLAGS)
$(AR) rcs $(PROJECT_BUILD_PATH)/obj/libnative_app_glue.a $(PROJECT_BUILD_PATH)/obj/native_app_glue.o
# Compile project code into a shared library: lib/lib$(PROJECT_LIBRARY_NAME).so
$(GP) -std=gnu++14 -o $(PROJECT_BUILD_PATH)/lib/armeabi-v7a/lib$(PROJECT_LIBRARY_NAME).so $(OBJS) -shared $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS)
# Compile all .c files required into object (.o) files
# NOTE: Those files will be linked into a shared library
$(GP) -std=gnu++14 -c $^ -o $@ $(INCLUDE_PATHS) $(CFLAGS) --sysroot=$(ANDROID_TOOLCHAIN)/sysroot
By the way the templates\advance_game\Makefile.Android did not work for me in the latest dev branch.
It works if i copy/replace it with templates\simple_game\Makefile.Android wich works fine.
Also would be nice to add after install section to avoid extra clicks
$(ANDROID_PLATFORM_TOOLS)/adb shell monkey -p com.$(APP_COMPANY_NAME).$(APP_PRODUCT_NAME) 1