ftsf / nimsynth

A modular synth and sequencer made with Nim
GNU General Public License v3.0
90 stars 7 forks source link

Compilation fails on osx #3

Open rncar opened 7 years ago

rncar commented 7 years ago

OSX Yosemite 10.10.5 Nim Compiler Version 0.16.1 (2017-04-02) [MacOSX: amd64]

Second time I compile a Nim program, maybe I am doing something stupid. Really cool project.

make osx

system [Processing]
Hint: main [Processing]
Hint: os [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: math [Processing]
Hint: algorithm [Processing]
Hint: times [Processing]
Hint: posix [Processing]
Hint: ospaths [Processing]
Hint: sdl2 [Processing]
Hint: macros [Processing]
Hint: unsigned [Processing]
Hint: pico [Processing]
Hint: basic2d [Processing]
Hint: joystick [Processing]
Hint: audio [Processing]
Hint: sequtils [Processing]
Hint: random [Processing]
pico.nim(212, 64) Warning: toLower is deprecated [Deprecated]
pico.nim(219, 10) Error: type mismatch: got (cint) but expected 'uint8'
        of SDL_HAT_LEFT:
           ^
make: *** [osx] Error 1
rncar commented 7 years ago

same error on linux.

ajhager commented 7 years ago

You actually need to use this fork https://github.com/ftsf/sdl2 of the SDL package. It should then work out of the box on Linux. There are a few things you'll need to comment and modify for the OSX build, since it is currently setup for cross compilation on @ftsf 's linux box. I will try to attach the needed modifications later.

rncar commented 7 years ago

Great, thanks.

Now trying to install sndfile package, the ftsf/nim-sndfile wrapper seems to be not compatible with nimble.

konradbartecki commented 7 years ago

I am struggling with a build on Windows. Can you please provide exact dependencies?

geneotech commented 7 years ago

@konradbartecki I second this. This program looks so much fun.

djbclark commented 4 years ago

Before I go into a time hole, wonder if anyone has gotten this to work on any modern system recently. It looks really cool, but not so cool I'm going to go reconstruct a development environment from years ago to get it to work :-/

ftsf commented 4 years ago

It compiles (and runs) as of yesterday on Windows and Linux (according to reports). I don't have a Mac build environment to test on Mac.