I’m teaching myself programming because I want to eventually make my own game. As part of my efforts, I downloaded the test-advanced folder, brought the files into Eclipse, and tried to compile them. Specifically, I brought in libretro.h and libretro-test.c by copying the code into new files, and I generated a new project that was supposed to create a .so file. I must be doing something wrong, because I get this error when I try to build using the makefile from the same Git folder as the two source files:
No rule to make target ‘libretro-test.o’, needed by ‘advanced_tests_libretro.so’.
When I try to build with “generate makefiles automatically” I instead get this error:
./src/libretro-test.o: relocation R_X86_64_PC32 against symbol `pixels’ can not be used when making a shared object; recompile with -fPIC
This may seem obvious to more experienced coders, but how do I get this thing to compile?