sanette / bogue

GUI library for ocaml based on SDL2
http://sanette.github.io/bogue/Principles.html
Other
189 stars 15 forks source link

unable to install bogue using opam #4

Closed RodrigoVillar closed 2 years ago

RodrigoVillar commented 2 years ago

whenever i try to install bogue using opam install bogue, i get the following error message:

(base) peru@MacBook-Pro-4 CamlCoin % opam install bogue
[NOTE] It seems you have not updated your repositories for a while. Consider updating them with:
       opam update

The following actions will be performed:
  βˆ— install conf-sdl2-image 1        [required by tsdl-image]
  βˆ— install tsdl-image      0.3.0    [required by bogue]
  βˆ— install bogue           20210917
===== βˆ— 3 =====
Do you want to continue? [Y/n] y

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫 
⬇ retrieved tsdl-image.0.3.0  (cached)
⬇ retrieved bogue.20210917  (cached)
[ERROR] The compilation of conf-sdl2-image.1 failed at "pkg-config SDL2_image".

#=== ERROR while compiling conf-sdl2-image.1 ==================================#
# context     2.1.0 | macos/x86_64 | ocaml-base-compiler.4.12.0 | https://opam.ocaml.org#a77320e3
# path        ~/.opam/caml-coin-switch/.opam-switch/build/conf-sdl2-image.1
# command     ~/.opam/opam-init/hooks/sandbox.sh build pkg-config SDL2_image
# exit-code   1
# env-file    ~/.opam/log/conf-sdl2-image-61409-3bb6cf.env
# output-file ~/.opam/log/conf-sdl2-image-61409-3bb6cf.out

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫 
β”Œβ”€ The following actions failed
β”‚ Ξ» build conf-sdl2-image 1
└─ 
╢─ No changes have been performed
sanette commented 2 years ago

The problem is with the package conf-sdl2-image which is supposed to tell opam how to install the SDL2_image library on your system. You can have a look at the output file ~/.opam/log/conf-sdl2-image-61409-3bb6cf.out You can also try opam update; opam upgrade and then opam install conf-sdl2-image. If this still fails, you would have to install SDL2 manually.

sanette commented 2 years ago

conf-sdl2-image was recently updated, could you try again?

sanette commented 2 years ago

I'm closing this because I think the issue is solved in current version. Feel free to reopen if necessary.