BinDeps.jl icon indicating copy to clipboard operation
BinDeps.jl copied to clipboard

BuildProcess providers on Windows?

Open carlobaldassi opened this issue 11 years ago • 4 comments

I now have a working GLPK Windows installer in an experimental branch of GLPK.jl:

https://github.com/carlobaldassi/GLPK.jl/blob/309ab10f566239f77acedb3d179b518ec741b14c/deps/build.jl

However, I had to somehow force BinDeps to accept BuildProcess as a provider on Windows:

@windows_only push!(BinDeps.defaults, BuildProcess)

@BinDeps.install

@windows_only pop!(BinDeps.defaults)

The issue is that the compiled binaries come in a peculiar directory structure, so I have to manipulate them to install the library under usr/lib, and I couldn't find a way to do this with a Binary provider. Is this acceptable (i.e. could something go wrong with the above solution)? Is there a better way to do this?

carlobaldassi avatar Sep 17 '13 08:09 carlobaldassi

This might be better fixed by #36.

mlubin avatar Sep 17 '13 14:09 mlubin

Bump. Can we change this? I hit this doing https://github.com/timholy/Images.jl/pull/165 (@carlobaldassi, thanks for the solution).

ihnorton avatar Aug 20 '14 21:08 ihnorton

bump I don't understand why we have to use push!(BinDeps.defaults, BuildProcess) on windows, see e.g. ImageMagick?

why can't the default include BuildProcess on Windows?

musm avatar Jun 04 '17 14:06 musm

I opened a pr to change the default, however seems unlikely to be accepted, so the manual force seems like the only solution in this case. A cleaner solution should be possible either by including it as a default or via potentially another idea

musm avatar Jun 27 '17 03:06 musm