Ancurio / mkxp

Free Software implementation of the Ruby Game Scripting System (RGSS)
GNU General Public License v2.0
515 stars 131 forks source link

SDL_sound development package not found when building on Linux #188

Closed rainefall closed 6 years ago

rainefall commented 6 years ago

Hi, I'm trying to build mkxp on Linux, since the latest prebuilt binary for Linux is the 2015 one. Unfortunately, even after installing the SDL_sound port, I've been unable to get it to build due to both qmake and cmake being unable to find it.

hanetzer commented 6 years ago

You have to use the patched SDL_sound package which is modified to work with SDL2. Ancurio/SDL_sound

rainefall commented 6 years ago

I have that. I stated that in the original post, but it probably wasn't clear enough.

hanetzer commented 6 years ago

Well, could you provide a log of qmake/cmake trying to find it? There is probably a switch to turn on verbose error reporting for either. In any case, afk for a bit, nap.

rainefall commented 6 years ago

Here's the console output . And CMakeOutput.log as well.

Ancurio commented 6 years ago

https://askubuntu.com/a/210235

rainefall commented 6 years ago

Okay, so now that I've done that, and ran cmake/qmake, what do I do? I'm not really experienced with building things so I don't really know what's supposed to happen.

Ancurio commented 6 years ago

Would it be easier if I just updated the prebuilt binaries for Linux? Building mkxp is really only recommended for people experienced with compiling software from scratch.

rainefall commented 6 years ago

There's a couple of things I wanted to modify in the source code though. It would be easier if I knew how to compile it so that I didn't need to get someone else to do it every time I made a change.

hanetzer commented 6 years ago

@sukoshijon not sure about qmake, but after cmake you would run make (unless you specified a different cmake generator [I like ninja; builds very fast, much faster than gnu make usually])

rainefall commented 6 years ago

Yeah, I ran make and it threw [ 1%] Generating XXD for assets/icon.png make[2]: XXD_EXE-NOTFOUND: Command not found make[2]: *** [CMakeFiles/mkxp.dir/build.make:162: icon.png.xxd] Error 127 make[1]: *** [CMakeFiles/Makefile2:67: CMakeFiles/mkxp.dir/all] Error 2 make: *** [Makefile:84: all] Error 2 at me.

hanetzer commented 6 years ago

@sukoshijon ah, you need vim installed (unless whatever distro you are using packages xxd separately). Query you distro support channels or package manager to find out. Basically xxd turns a binary asset into a c-style header file which can be #include'd into a program.

rainefall commented 6 years ago

Okay, now it can't find SDL_sound when I run make

Ancurio commented 6 years ago

I updated the prebuilt Linux binaries

rainefall commented 6 years ago

While that helps some of the issue, I can't change the prebuilt binaries. On the subject of make not being able to find SDL_sound, I think I installed SDL_sound wrong (I put SDL_sound.pc into the pkgconfig folder), because changing the path didn't work.

Ancurio commented 6 years ago

You might also try the dependency kit mentioned in the Readme (you might have to add -D_GLIBCXX_USE_CXX11_ABI=0 to the defines if you're using a newer version of gcc)

rainefall commented 6 years ago

That worked! Thank you for the help, it is much appreciated.