revery-ui / esy-sdl2

Esy-enabled build for SDL2
zlib License
5 stars 9 forks source link

No rule to make target 'build/SDL.lo' #12

Closed taylon closed 4 years ago

taylon commented 4 years ago

Hi,

I have been trying to compile Oni2 in ArchLinux but I keep getting the following error:

make: *** No rule to make target 'build/SDL.lo', needed by 'build/libSDL2.la'. Stop.

Here is the output of esy build which includes the output of ./configure and make.

I have everything listed here installed and I'm suspecting it is not a missing dependency because I'm able to compile it using cmake (the official Arch package is also built using cmake)

I'm pretty sure I'll figure it out eventually but I appreciate if anyone has any leads

mephistopheles-8 commented 4 years ago

This may be an issue with the SDL2 ./configure script on Linux or Arch-like distros. The generated Makefile omits the $(objects) directory on a bunch of *.lo targets. I could get this to build by editing the package.json file to use cmake for Linux.

taylon commented 4 years ago

Yeah, that is what I was about to suggest and send a PR for, although I'm not sure if that could cause issues in other distros...