Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors on make #10

Closed
jxxcarlson opened this issue Sep 22, 2020 · 1 comment
Closed

Errors on make #10

jxxcarlson opened this issue Sep 22, 2020 · 1 comment

Comments

@jxxcarlson
Copy link

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
@jxxcarlson
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant