goattracker2 icon indicating copy to clipboard operation
goattracker2 copied to clipboard

How to compile this for Linux?

Open leonardoInf opened this issue 8 years ago • 4 comments

I tried make and got:

bme/datafile goattrk2.dat goattrk2.seq
make: bme/datafile: Command not found
makefile.common:46: recipe for target 'goattrk2.dat' failed
make: *** [goattrk2.dat] Error 127

leonardoInf avatar Aug 05 '17 11:08 leonardoInf

you should be able to run make from the src directory. Keep in mind this is my fork of the project, and not the official goattracker source

leafo avatar Aug 05 '17 13:08 leafo

How to use this repository to use your MIDI Keyboard in Goattracker 2

I was able to install it in Linux using the following steps:

  1. If you trust me then use this zip file which contains all the binaries that I've got after compilation: http://www.mediafire.com/file/ftepq481zxepxj5/goattracker.zip

  2. Make sure that you have the essential tools

sudo apt install build-essential g++ sudo yum groupinstall 'Development Tools'

  1. Install the jack development files

sudo apt install libjack0 libjack-dev sudo yum install jack-audio-connection-kit-devel

  1. Clone this repository

git clone https://github.com/leafo/goattracker2.git

  1. Install SDL 1

sudo apt install libsdl1.2-dev sudo yum install SDL* (probs to: https://stackoverflow.com/a/8102343)

  1. Compile dat2inc & datafile

cd goatracker2/src/bme && make

  1. Copy dat2inc and datafile to /usr/local/bin

sudo cp dat2inc datafile /usr/local/bin

  1. Create an empty linux directory (necessary for compilation)

mkdir ../../linux

  1. Compile in the src directory

cd ../src && make

  1. Install

sudo cp -a ../linux/. /usr/local/bin

Preparation for practical usage:

  1. Install the JACK Connection Toolkit Qt GUI and the JACK MIDI daemon for ALSA MIDI

Fedora: sudo yum install qjackctl a2jmidid Ubuntu: sudo apt install qjackctl a2jmidid

  1. Open qjackctl, start it and then open a2jmidid -e and go to patchbay.

  2. Make your connections

  3. Activate your plugboard (click on Activate - the button with the lightning)

Usage (this is what you'll always do when using goattrk2)

  1. Connect your MIDI Keyboard
  2. Start qjackctl: qjackctl
  3. Start a2jmidid: a2jmidid -e
  4. Start Goattracker: goattrk2

leonardoInf avatar Aug 09 '17 11:08 leonardoInf

If you have apt, you could have also just used apt-get install goattracker ;)

alexmyczko avatar Nov 15 '17 10:11 alexmyczko

No, because I wanted to have MIDI support

leonardoInf avatar Mar 24 '18 10:03 leonardoInf