sysgodmin / mupen64plus

Automatically exported from code.google.com/p/mupen64plus
0 stars 0 forks source link

Problems building on OpenBSD #440

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Attempting to do a default install of mupen64plus-1.99.4 on OpenBSD amd64. 
Several problems pop up:

- The m64p_*.sh scripts have #!/bin/bash shebangs. OpenBSD has bash installed 
at /usr/local/bin/bash (and it’s not installed by default). But these scripts 
work just fine with #!/bin/sh. A patch for this is attached.

- The m64p_*.sh scripts call make directly. The makefiles aren’t compatible 
with BSD make, and on OpenBSD GNU make is installed as gmake. It would be 
convenient to change the make variant with an environment variable or something.

- OS detection scripts fail because there is no OpenBSD entry. Things seemed to 
work okay if I just copied FreeBSD’s, but I’m not sure how good of an idea 
this is. A patch of what I did is attached.

- screenshot.cpp doesn’t see png.h, which is located at 
/usr/local/include/libpng/png.h. A workaround is setting 
CXXFLAGS=-I/usr/local/include/libpng before building.

- Running mupen64plus from the test/ directory doesn’t seem to work: I get a 
black screen. Then when I hit ^C a double free occurs. The output log is 
attached.

Original issue reported on code.google.com by anthonyj...@gmail.com on 13 Jun 2011 at 5:22

Attachments:

GoogleCodeExporter commented 8 years ago
Sorry, dupe of #414.

Original comment by anthonyj...@gmail.com on 25 Jun 2011 at 3:57

GoogleCodeExporter commented 8 years ago

Original comment by sven@narfation.org on 25 Jun 2011 at 6:39