raphnet / mupen64plus-input-raphnetraw

Input plugin with direct N64 controller access for raphnet adapters
http://raphnet.net/programmation/mupen64plus-input-raphnetraw/index_en.php
GNU General Public License v2.0
14 stars 12 forks source link

Cannot build on linux #9

Open trymeouteh opened 4 years ago

trymeouteh commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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