How to run sdl2 app from command line in cxxdroid app ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to run sdl2 app from command line in cxxdroid app ?

I am using this command clang++ `sdl2-config --cflags --libs` -o main main.cpp test.cpp but it gives an error sdl2-config not found or inaccessible . What am i doing wrong here ? And if this isn't how sdl2 program is compiled then what command does cxxdroid app actually uses ? Fyi :sdl2 programs work fine on cxxdroid if you take a look at one of the sample programs. There is a test.h file as well.

23rd Jul 2021, 10:28 AM
Abhay
Abhay - avatar
2 Answers
+ 3
A.S. but cxxdroid app is able to run the sdl2 programs and i can do it as well but i don't want to mix all the header and implementation file in just the main one. And i am pretty sure that for those people who can't buy a pc ,mobile based solution will be perfect!
29th Jul 2021, 5:44 PM
Abhay
Abhay - avatar
+ 1
I dont think its possible to run sdl in android u can use codeblock or Visual studio code for pc
27th Jul 2021, 9:54 AM
A S Raghuvanshi
A S Raghuvanshi - avatar