Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build on linux #9

Open
trymeouteh opened this issue Dec 20, 2019 · 2 comments
Open

Cannot build on linux #9

trymeouteh opened this issue Dec 20, 2019 · 2 comments

Comments

@trymeouteh
Copy link

Hello,

I tried to compiled the Linux mupen64plus-input-raphnetraw-1.1.0 on Manjaro and on Linux Mint 19.2. Here are the steps I have done...

Install Mupen64Plus

sudo apt-get install gcc make libhidapi-hidraw0 libhidapi-dev

Extract the mupen64plus-input-raphnetraw-1.1.0 file into your Downloads folder

cd /home/USERNAME/Downloads/mupen64plus-input-raphnetraw-1.1.0/mupen64plus-input-raphnetraw/projects/unix/
make all

When I enter make all I get the following error

Makefile:179: *** Mupen64Plus API header files not found! Use makefile parameter APIDIR to force a location.. Stop.

Is there a compiled version already available to download on Linux? Please help.

@raphnet
Copy link
Owner

raphnet commented Feb 20, 2020

Please look at the readme file included with the project, the "Directory Layout" section (right above the Compilation section) mentions that you need a mupen64plus-code checkout in the same directory as the mupen64plus-input-raphnetraw.

There is no compiled version for linux at the moment.

@inukaze
Copy link

inukaze commented Sep 2, 2020

Hi there for compile under GNU/Linux you can do the follow, for example i had compile under a custom path (/media/Compartido/Videojuegos/Linux/Emulador/mupen64plus/64Bits) :
First export variables

export TARGETDIR="/media/Compartido/Videojuegos/Linux/Emulador/mupen64plus/64Bits"
export PREFIX="$TARGETDIR"
export SHAREDIR="$TARGETDIR/share"
export LIBDIR="$TARGETDIR/lib"
export INCDIR="$TARGETDIR/include"
export APIDIR="$TARGETDIR/include"

Second get via git the latest version

cd /tmp
git clone https://github.com/raphnet/mupen64plus-input-raphnetraw

Third enter in the directory, set permissions and use release_src.sh, etc ...

cd mupen64plus-input-raphnetraw
chmod 777 -R *
mkdir there
./release_src.sh 1.1.0 there
cd there
mupen64plus-input-raphnetraw-1.1.0.tar.gz
tar xfz mupen64plus-input-raphnetraw-1.1.0.tar.gz
cd mupen64plus-input-raphnetraw-1.1.0/projects/unix

Four, you need one of two things
Option 1:
make a symbolic link of the file m64p_config.h and called it config.h

Option 2 :
The source code of the file "plugin_front.c" ( absolute path in this example -> /tmp/mupen64plus-input-raphnetraw/there/mupen64plus-input-raphnetraw-1.1.0/src/plugin_front.c )

In the line 43 is

#include "config.h"

And must be (or just delete it because the line 45 is the same) :

#include "m64p_config.h"

If you edit and save, you can compile it using
make all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants