View Single Post
Posts: 63 | Thanked: 106 times | Joined on Mar 2017
#4
Hi Radu,

I've had a quick go, but like I say, I'm just playing, and don't really know what I'm doing...

It didn't seem to like:

#ifndef _WIN32
mkdir(config_path, (S_IRWXU|S_IRWXG|S_IRWXO));
#else
mkdir(config_path);
#endif

and gave

main.c: In function 'get_configh_path':
main.c:287:23: error: 'S_IRWXU' undeclared (first use in this function)
mkdir(config_path, (S_IRWXU|S_IRWXG|S_IRWXO));
^
main.c:287:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:287:31: error: 'S_IRWXG' undeclared (first use in this function)
mkdir(config_path, (S_IRWXU|S_IRWXG|S_IRWXO));
^
main.c:287:39: error: 'S_IRWXO' undeclared (first use in this function)
mkdir(config_path, (S_IRWXU|S_IRWXG|S_IRWXO));
^

So, I changed it to '#ifdef _WIN32' just to see what would happen, and it then compiled with:
gcc main.c -lSDL2 -I/usr/include/SDL2 -lm

When I run it, it brings up an options screen in portrait and because my device is only 540 x 960, a lot of it was cut off the edge of the screen.

But most importantly, I wasn't able to interact with it. Touching the buttons and controls didn't do anything, and I don't know if it has any keyboard options? When I compiled ffplay, it didn't have any touch controls and was controlled by the keyboard, so maybe touch stuff doesn't work? Perhaps someone who knows more about it can advise...
 

The Following 2 Users Say Thank You to moodroid For This Useful Post: