egui_overlay: Fails to build on MacOS

Cannot build latest version. Is cmake really a requirement? 😭

error: failed to run custom build command for `glfw-sys-passthrough v4.0.3+3.3.5`

Caused by:
  process didn't exit successfully: `/Users/mikalaichaliadzinau/Projects/SRCs/others/egui-ui/target/debug/build/glfw-sys-passthrough-747d6d24e0d81238/build-script-build` (exit status: 101)
  --- stdout
  CMAKE_TOOLCHAIN_FILE_aarch64-apple-darwin = None
  CMAKE_TOOLCHAIN_FILE_aarch64_apple_darwin = None
  HOST_CMAKE_TOOLCHAIN_FILE = None
  CMAKE_TOOLCHAIN_FILE = None
  CMAKE_GENERATOR_aarch64-apple-darwin = None
  CMAKE_GENERATOR_aarch64_apple_darwin = None
  HOST_CMAKE_GENERATOR = None
  CMAKE_GENERATOR = None
  CMAKE_PREFIX_PATH_aarch64-apple-darwin = None
  CMAKE_PREFIX_PATH_aarch64_apple_darwin = None
  HOST_CMAKE_PREFIX_PATH = None
  CMAKE_PREFIX_PATH = None
  CMAKE_aarch64-apple-darwin = None
  CMAKE_aarch64_apple_darwin = None
  HOST_CMAKE = None
  CMAKE = None
  running: cd "/Users/mikalaichaliadzinau/Projects/SRCs/others/egui-ui/target/debug/build/glfw-sys-passthrough-53d6cf408a3bcc1b/out/build" && CMAKE_PREFIX_PATH="" "cmake" "/Users/mikalaichaliadzinau/.cargo/registry/src/index.crates.io-6f17d22bba15001f/glfw-sys-passthrough-4.0.3+3.3.5/." "-DCMAKE_OSX_ARCHITECTURES=arm64" "-DGLFW_BUILD_EXAMPLES=OFF" "-DGLFW_BUILD_TESTS=OFF" "-DGLFW_BUILD_DOCS=OFF" "-DCMAKE_INSTALL_LIBDIR=lib" "-DGLFW_BUILD_WAYLAND=OFF" "-DCMAKE_INSTALL_PREFIX=/Users/mikalaichaliadzinau/Projects/SRCs/others/egui-ui/target/debug/build/glfw-sys-passthrough-53d6cf408a3bcc1b/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -arch arm64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -arch arm64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -arch arm64" "-DCMAKE_ASM_COMPILER=/usr/bin/cc" "-DCMAKE_BUILD_TYPE=Debug"

  --- stderr
  thread 'main' panicked at '
  failed to execute command: No such file or directory (os error 2)
  is `cmake` not installed?

  build script failed, must exit now', /Users/mikalaichaliadzinau/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cmake-0.1.50/src/lib.rs:1098:5
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 18 (9 by maintainers)

Most upvoted comments

@coderedart now the window is transparent!

Sorry, it is quite late here, I do not recall if I did both screenshots from the bottom screen 😅 Here is the video, I hope it makes sense (taken from bottom screen)

https://github.com/coderedart/egui_overlay/assets/32924456/1cbe949e-4845-4d1a-b7d5-1539e088f557

Btw I do not see any logs, should I set some flag to see them?

oh, i can see the problem. To make things easier, i added a new example called basic which should be platform neutral.

image

can you try using that example to see if your cursor position is right or wrong. When the cursor is on the bottom right corner, the position of cursor should be exactly window size / window scale

EDIT: apologies if my light theme in screenshot made anyone go blind. I sit right beside a window with lots of natural light, so i prefer light themes 😃

@mchaliadzinau can you test the latest commit.

Sure. It will take like 5 min