Closed CrashBurnRepeat closed 5 years ago
What Julia version are you using? That build.jl
template is taken from BinaryProvider.jl
, I think. I make binaries only for Linux at first because I wanted to have something working soon. Creating binaries for other operating systems should be trivial, as long as Gmsh is compiling. We also should disable unnecessary parts (at least GUI) in the build process to reduce the size of the binary, it's over 100 MB now.
I knew there would be something obvious I'd miss; I'm using version 1.1.0 (2019-01-21). Since I have the Mac to validate on, is this something I could assist with? I'm trying to do a port of some electromagnetic code to Julia, so this would be a big help.
Everything should work with the newest versions. It seems that the problem is this line:
url, tarball_hash = choose_download(download_info)
choose_download
is returning nothing and unpacking to two variables is trying to iterate on that. Usually the function should return the tuple shown in download_info
, i.e.
("$bin_prefix/gmsh.v4.1.5.x86_64-linux-gnu.tar.gz", "b037e5376bbe9a381f5938936cbea4f99feafa7f3f1705357d1a5950cfe54061")
for Linux binaries. I think the problem finally is that there is no compiled binaries for OSX at the moment.
I copied the template from a mock package LibFoo.jl
, https://github.com/JuliaPackaging/BinaryProvider.jl/blob/master/test/LibFoo.jl/deps/build.jl#L37. Maybe @staticfloat knows is there any internal changes how choose_download
works or is it just me.
I'm anyway compiling the OSX binaries now so if everything goes like in movies soon this issue should vanish.
Ok, it looks that the structure of build.jl
has been changing. After PR #2 everything should be fine, also for OSX.
Also, it looks that 4.2.2 version has been released a couple of days ago, I also update binaries to that.
This package should be tagged so that it can be found from metadata as usual. Any ideas should this follow what version number, Gmsh or...? cc: @TeroFrondelius
Ok, now we should have support for OSX also. Have you considered doing electromagnetism using JuliaFEM? I would be happy to help with that. After all, we are aiming to be multiphysics and I'm interested to see what new challenges is electromagnetism is giving.
Yep, looks like you've figured it out. :)
I just got the chance to pull these updates on my Mac, and things seem to be good (at least I was able to pull the update and precompile). I also have access to a Windows machine and the correct error was shown when I pull the new code, although I don't need a Windows binary at this point.
@ahojukka5, much thanks for the speedy response, and I'll write you separately about the EM work I'm hoping to do.
When trying to build Gmsh for the first time on macOS, I get the following error:
Looking through the source code, it seems only Linux is supported at the moment, and there is logic for catching build errors on unsupported platforms, but it seems that this error is a different type than the one anticipated. Does this logic need to be revised to show the correct error, assuming this is an unsupported platform problem? Even better, is there a chance that binaries can be built for OSs other than Linux?
If there's more information that I can provide, please let me know.