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

Problem in running "Maplibre-demo" in windows 10 #140

Closed
Shawn-Fan opened this issue Jun 24, 2022 · 4 comments
Closed

Problem in running "Maplibre-demo" in windows 10 #140

Shawn-Fan opened this issue Jun 24, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@Shawn-Fan
Copy link

Shawn-Fan commented Jun 24, 2022

C:\Users\Aa\Desktop\map\maplibre-rs> cargo run -p maplibre-demo
   Compiling prost-build v0.10.4
warning: constant is never used: `MUNICH_X` 
 --> maplibre\build.rs:8:1
  |
8 | const MUNICH_X: u32 = 17425;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: constant is never used: `MUNICH_Y`
 --> maplibre\build.rs:9:1
  |
9 | const MUNICH_Y: u32 = 11365;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `MUNICH_Z`
  --> maplibre\build.rs:10:1
   |
10 | const MUNICH_Z: u8 = 15;
   | ^^^^^^^^^^^^^^^^^^^^^^^^

warning: function is never used: `generate_type_def`
  --> maplibre\build.rs:16:4
   |
16 | fn generate_type_def() -> Option<u32> {
   |    ^^^^^^^^^^^^^^^^^

warning: `maplibre` (build script) generated 4 warnings
error: failed to run custom build command for `prost-build v0.10.4`

Caused by:
  process didn't exit successfully: `C:\Users\Aa\Desktop\map\maplibre-rs\target\debug\build\prost-build-1754dd19457489c8\build-script-build` (exit code: 101)       
  --- stdout
  cargo:rerun-if-changed=C:\Users\Aa\.cargo\registry\src\github.com-1ecc6299db9ec823\prost-build-0.10.4\third-party\protobuf\cmake
  CMAKE_TOOLCHAIN_FILE_x86_64-pc-windows-msvc = None
  CMAKE_TOOLCHAIN_FILE_x86_64_pc_windows_msvc = None
  HOST_CMAKE_TOOLCHAIN_FILE = None
  CMAKE_TOOLCHAIN_FILE = None
  CMAKE_GENERATOR_x86_64-pc-windows-msvc = None
  CMAKE_GENERATOR_x86_64_pc_windows_msvc = None
  HOST_CMAKE_GENERATOR = None
  CMAKE_GENERATOR = None
  CMAKE_PREFIX_PATH_x86_64-pc-windows-msvc = None
  CMAKE_PREFIX_PATH_x86_64_pc_windows_msvc = None
  HOST_CMAKE_PREFIX_PATH = None
  CMAKE_PREFIX_PATH = None
  CMAKE_x86_64-pc-windows-msvc = None
  CMAKE_x86_64_pc_windows_msvc = None
  HOST_CMAKE = None
  CMAKE = None
  running: "cmake" "C:\\Users\\Aa\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\prost-build-0.10.4\\third-party\\protobuf\\cmake" "-G" "Visual Studio 17 2022" "-Thost=x64" "-Ax64" "-Dprotobuf_BUILD_TESTS=OFF" "-DCMAKE_INSTALL_PREFIX=C:\\Users\\Aa\\Desktop\\map\\maplibre-rs\\target\\debug\\build\\prost-build-3f1fccf677fd4ea0\\out" "-DCMAKE_C_FLAGS= -nologo -MD -Brepro" "-DCMAKE_C_FLAGS_DEBUG= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS= -nologo -MD -Brepro" "-DCMAKE_CXX_FLAGS_DEBUG= -nologo -MD -Brepro" "-DCMAKE_ASM_FLAGS= -nologo -MD -Brepro" "-DCMAKE_ASM_FLAGS_DEBUG= -nologo -MD -Brepro" "-DCMAKE_BUILD_TYPE=Debug"
  -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
  --
  -- 3.19.4.0
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/Users/Aa/Desktop/map/maplibre-rs/target/debug/build/prost-build-3f1fccf677fd4ea0/out/build
  running: "cmake" "--build" "." "--target" "install" "--config" "Debug" "--parallel" "4"
  Microsoft (R) Build Engine version 17.2.1+52cd2da31 for .NET Framework
  Copyright (C) Microsoft Corporation. All rights reserved.

    libprotobuf-lite.vcxproj -> C:\Users\Aa\Desktop\map\maplibre-rs\target\debug\build\prost-build-3f1fccf677fd4ea0\out\build\Debug\libprotobuf-lited.lib
    gzip_stream.cc
  C:\msys64\mingw64\include\zconf.h(475,14): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [C:\Users\Acer\Desktop\map\maplibre-rs\target\debug\build\prost-build-3f1fccf677fd4ea0\out\build\libprotobuf.vcxproj]

  --- stderr
  thread 'main' panicked at '
  command did not execute successfully, got: exit code: 1

  build script failed, must exit now', C:\Users\Aa\.cargo\registry\src\github.com-1ecc6299db9ec823\cmake-0.1.48\src\lib.rs:975:5
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

🤔 Expected Behavior

😯 Current Behavior

💁 Possible Solution

🔦 Context

💻 Code Sample

🌍 Your Environment

  • Desktop
    • Operating System: Windows
@Shawn-Fan Shawn-Fan added the bug Something isn't working label Jun 24, 2022
@maxammann
Copy link
Collaborator

maxammann commented Jun 24, 2022

@Drabble did you have problems compiling prost?

@maxammann
Copy link
Collaborator

Could that be related? tokio-rs/prost#653

@maxammann
Copy link
Collaborator

@Shawn-Fan I'm compiling successfully on Windows. But I installed protoc instead of compiling it while running.

I did that with msys2 (see CI script).

Do you still have this problem?

@maxammann
Copy link
Collaborator

Closing because of inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants