Comments (9)
From what I understand, this is only a 3 character fix. I understand that isn't a pressing issue like the others, but it is an issue nonetheless. So may I fix this?
from glfw.
I'm a bit busy at the moment so will just write up some quick info:
I do wish to make a contribution to fix this, but I'm not sure which branch I should base the PR on. Should I do base it off of 3.3-stable since this is the branch I encountered it on or is there a preferred branch for minute things like this?
All PRs should be based off master
.
And would a minor fix something like this warrant a change log entry and credits? If so awesome!
Normally yes, unless we think someone is Github credit farming.
Oh, and which branch should be used and what's the difference (or intent) behind master, latest, and 3.3-stable? It's always confused me.
We intend to document this but haven't' gotten around to it yet, here's a short summary:
master
(also calledmain
which we may switch to in future) this is the primary development branch and should be used as the base for all PRs.latest
gets updated to the most recent major, minor or patch release after each release.x.x-stable
branched from its release tag onmain
, receives cherry-picked bug fixes for patch releases in parallel with the next minor or major release.
So may I fix this?
We welcome PRs but they do take time to get merged as there is a lot of outstanding work.
from glfw.
Thanks so much for your response. Sorry I was a little impatient. I'll make the PR and have it close this issue :)
from glfw.
No problem - however do leave this issue open until the PR is merged or this issue is otherwise resolved.
from glfw.
This turned out to be a little more than I can handle considering I do not know cmake very well. I have decided to let the the GLFW team (or anyone else) work on this issue. This is as far as I've gotten:
@@ -9,16 +9,16 @@ string(REGEX REPLACE "\n" ";" files "${files}")
foreach (file ${files})
message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
if (EXISTS "$ENV{DESTDIR}${file}")
- exec_program("@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
- OUTPUT_VARIABLE rm_out
- RETURN_VALUE rm_retval)
+ execute_process(COMMAND CMAKE_COMMAND ARGS "-E rm \"$ENV{DESTDIR}${file}\""
+ OUTPUT_VARIABLE rm_out
+ RESULT_VARIABLE rm_retval)
if (NOT "${rm_retval}" STREQUAL 0)
MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
endif()
elseif (IS_SYMLINK "$ENV{DESTDIR}${file}")
- EXEC_PROGRAM("@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
- OUTPUT_VARIABLE rm_out
- RETURN_VALUE rm_retval)
+ execute_process(COMMAND CMAKE_COMMAND ARGS "-E rm \"$ENV{DESTDIR}${file}\""
+ OUTPUT_VARIABLE rm_out
+ RESULT_VARIABLE rm_retval)
if (NOT "${rm_retval}" STREQUAL 0)
message(FATAL_ERROR "Problem when removing symlink \"$ENV{DESTDIR}${file}\"")
endif()
And it fails to delete the files, exiting with exit code 2: "No such file or directory" although it still exists.
Sources I looked at while trying to get this to work:
- https://cmake.org/cmake/help/latest/command/execute_process.html
- https://cmake.org/cmake/help/latest/variable/CMAKE_COMMAND.html
- https://cmake.org/cmake/help/latest/manual/cmake.1.html#cmdoption-cmake-E-arg-remove
from glfw.
I no longer see who put the message up with code that solved the issue, but whoever it was, thank you :)
from glfw.
I just ran it and it got rid of the warnings, but the files remain.
from glfw.
I think this is the correct approach,
execute_process(COMMAND ${CMAKE_COMMAND} -E remove "$ENV{DESTDIR}${file}"
OUTPUT_VARIABLE rm_out
RESULT_VARIABLE rm_retval)
from glfw.
I can't try to figure it out right now, but I can try tomorrow and see if I have any success with it.
from glfw.
Related Issues (20)
- Update the minimum CMake version to 3.16
- Question: Potential issue with error mutex? HOT 2
- Can't link glfw application on mac HOT 9
- Likely memory leaks HOT 1
- allow creation on remote (X11) displays
- glfwWindowHint(GLFW_DOUBLEBUFFER, GL_FALSE); on Ubuntu22.04.4's libnvidia-egl-wayland1
- Documentation doesn't fully specify the expected GLFWreallocatefun behavior
- compile error version 3.4 HOT 1
- wctype.h file not found | required in glfw/src/win32_platform.h
- VkWin32SurfaceCreateInfoKHR not found nor is the function prototype PFN_vkCreateWin32SurfaceKHR
- GLFW_DECORATED set false cause vsync HOT 1
- Drastic decrease in performance when running full screen vs almost full screen
- GLFW Wayland Support HOT 8
- Crash on my computer HOT 3
- REDEFINES If include NULL HOT 3
- GLFW window crashes after copying/cutting data to clipboard on Hyprland Wayland compositor
- IS this a bug: sharing.c example, should resize of window independent to each other. HOT 5
- Ubuntu can't run glfwGetX11Display is null HOT 3
- Window triggers size callback setting the width and height to 0 when minimized on Windows 11 HOT 5
- Compatibility of glfw with the Apple software render in github CI HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glfw.