JuliaGeo / Proj.jl

Julia wrapper for the PROJ cartographic projections library
MIT License
48 stars 9 forks source link

Problem with building Proj4 package #55

Closed yodefiar closed 2 years ago

yodefiar commented 3 years ago

Hi, I'm having problem building Proj4 package, it kept returning the error below:

(@v1.6) pkg> build Proj4

    Building Proj4 → `C:\Users\Yodefia Rahmad\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\6a52f9d893b6ad6f15760990ea8adbabd7b64aa7\build.log`
ERROR: Error building `Proj4`:
ERROR: LoadError: ArgumentError: Will not install a tarball of platform x86_64-w64-mingw32-gcc7 on a system of platform x86_64-w64-mingw32-gcc8-cxx11 unless `ignore_platform` is explicitly set to `true`., override this by setting `ignore_platform`
Stacktrace:
 [1] install(tarball_url::String, hash::String; prefix::Prefix, tarball_path::String, force::Bool, ignore_platform::Bool, verbose::Bool)
   @ BinaryProvider C:\Users\Yodefia Rahmad\.julia\packages\BinaryProvider\U2dKK\src\Prefix.jl:294
 [2] top-level scope
   @ C:\Users\Yodefia Rahmad\.julia\packages\Proj4\RgJ8T\deps\build.jl:83
 [3] include(fname::String)
   @ Base.MainInclude .\client.jl:444
 [4] top-level scope
   @ none:5
in expression starting at C:\Users\Yodefia Rahmad\.julia\packages\Proj4\RgJ8T\deps\build.jl:81

I'm using Julia 1.6.2 on Windows 10. Can anyone help me with this? Thanks!

visr commented 3 years ago

I don't fully understand, pre-built binaries are provided through our dependency on PROJ_jll. There is no need to run build in the package manager. Quite a while ago it was needed, but not anymore. Which Proj4.jl version are you using?

This is the help for the build command:

(Proj4) pkg> ?build
  build [-v|--verbose] pkg[=uuid] ...

  Run the build script in deps/build.jl for pkg and all of its dependencies in depth-first recursive order. If no
  packages are given, run the build scripts for all packages in the manifest. The -v/--verbose option redirects build
  output to stdout/stderr instead of the build.log file. The startup.jl file is disabled during building unless julia
  is started with --startup-file=yes.

As you can see in this repo there is no deps/build.jl in this repository.

Does pkg> test Proj4 work?