nqpz / futswirl

Fun with IFS fractals :boom:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Errors on make

jxxcarlson opened this issue · comments

Error compiling code:

$ make run
/Library/Developer/CommandLineTools/usr/bin/make settings.fut settings_typecheck lib
cp settings_template.fut settings.fut

futhark pkg sync
PROGNAME=futswirl /Library/Developer/CommandLineTools/usr/bin/make --file=lib/github.com/diku-dk/lys/common.mk run
cat lib/github.com/diku-dk/lys/genlys.fut | sed 's/"lys"/"futswirl"/' > futswirl_wrapper.fut
futhark opencl --library futswirl_wrapper.fut
Warning at lib/github.com/athas/vector/vector.fut:118:19-19:
  Defaulting ambiguous type to i32.

Warning at lib/github.com/athas/vector/vector.fut:119:32-32:
  Defaulting ambiguous type to i32.
gcc -o futswirl_wrapper.o -c futswirl_wrapper.c -std=c11 -O
python3 lib/github.com/diku-dk/lys/gen_printf.py futswirl_printf.h futswirl_wrapper.c
Package sdl2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sdl2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sdl2' found
Package SDL2_ttf was not found in the pkg-config search path.
Perhaps you should add the directory containing `SDL2_ttf.pc'
to the PKG_CONFIG_PATH environment variable
No package 'SDL2_ttf' found
gcc lib/github.com/diku-dk/lys/liblys.c lib/github.com/diku-dk/lys/context_setup.c lib/github.com/diku-dk/lys/main.c -I. -DPROGHEADER='"futswirl_wrapper.h"' -DPRINTFHEADER='"futswirl_printf.h"' futswirl_wrapper.o -o futswirl -std=c11 -O  -Wall -Wextra -pedantic -DLYS_TTF -lm -lSDL2 -lSDL2_ttf -framework OpenCL
In file included from lib/github.com/diku-dk/lys/liblys.c:6:
lib/github.com/diku-dk/lys/liblys.h:8:10: fatal error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^~~~~~~~~~~~
1 error generated.
In file included from lib/github.com/diku-dk/lys/main.c:1:
lib/github.com/diku-dk/lys/liblys.h:8:10: fatal error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^~~~~~~~~~~~
1 error generated.
make[1]: *** [futswirl] Error 1
rm futswirl_wrapper.fut
make: *** [run] Error 2

Never mind! Got instructions from Troels on what was missing:

 brew install sdl2 sdl2_gfx sdl2_ttf

Also on Mac, had to change

  let enable_f64 = true

to

  let enable_f64 = false

in settings_template.fut