NagyD / SDLPoP

An open-source port of Prince of Persia, based on the disassembly of the DOS version.
GNU General Public License v3.0
1.1k stars 141 forks source link

Error cross-compiling for ARMHF/V8 from Linux x86_64 (Debian 10) #201

Closed LuizRafael79 closed 4 years ago

LuizRafael79 commented 4 years ago

Linking C executable /root/Downloads/SDLPoP/prince CMakeFiles/prince.dir/seg009.c.o: In function window_resized': seg009.c:(.text+0x5d00): undefined reference toSDL_RenderSetIntegerScale' CMakeFiles/prince.dir/seg009.c.o: In function set_gr_mode': seg009.c:(.text+0x62a8): undefined reference toSDL_RenderSetIntegerScale' CMakeFiles/prince.dir/menu.c.o: In function turn_setting_on_off': menu.c:(.text+0x1308): undefined reference toSDL_RenderSetIntegerScale' collect2: error: ld returned 1 exit status make[2]: [CMakeFiles/prince.dir/build.make:384: /root/Downloads/SDLPoP/prince] Error 1 make[1]: [CMakeFiles/Makefile2:73: CMakeFiles/prince.dir/all] Error 2 make: *** [Makefile:84: all] Error 2

NagyD commented 4 years ago

SDL_RenderSetIntegerScale was added in SDL 2.0.5. Which version of SDL2 are you compiling with?

These errors occur should not occur with any SDL version, though, because we have added #if checks around all code which uses SDL_RenderSetIntegerScale to prevent these kinds of errors. (example) Maybe your SDL2 headers and SDL2 libraries are different versions? Could you check that?

LuizRafael79 commented 4 years ago

Sorry for It takes, but I don't know exactly what's going on, I'm using a toolchain to compile the code and then the final part came up, this problem occurred ... So I found out that I wasn't Pointing correctly to the libs and includes of the toolchain (target) but those of my system (host) but I didn't have time to deal with it again...

In time, i try to port this to PSC (Playstation Classic) and Now it's working, after I make the changes mentioned above

Thanks in advance and sorry for my mistake

NagyD commented 4 years ago

So can I close this issue?

LuizRafael79 commented 4 years ago

Yes i close It, thank you