nimsynth icon indicating copy to clipboard operation
nimsynth copied to clipboard

Compilation fails on osx

Open rncar opened this issue 8 years ago • 7 comments

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 avatar Apr 06 '17 17:04 rncar

same error on linux.

rncar avatar Apr 12 '17 15:04 rncar

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.

ajhager avatar Apr 12 '17 23:04 ajhager

Great, thanks.

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

rncar avatar Apr 13 '17 09:04 rncar

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

konradbartecki avatar May 19 '17 21:05 konradbartecki

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

geneotech avatar May 23 '17 15:05 geneotech

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 :-/

djbclark avatar Jul 30 '20 02:07 djbclark

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.

ftsf avatar Jul 30 '20 02:07 ftsf