Skip to content

[glew] Add public definition GLEW_NO_GLU [colmap] Remove feature cuda#43641

Closed
WangWeiLin-MV wants to merge 1 commit intomicrosoft:masterfrom
WangWeiLin-MV:ports/freetype-gl/system-dependency-message
Closed

[glew] Add public definition GLEW_NO_GLU [colmap] Remove feature cuda#43641
WangWeiLin-MV wants to merge 1 commit intomicrosoft:masterfrom
WangWeiLin-MV:ports/freetype-gl/system-dependency-message

Conversation

@WangWeiLin-MV
Copy link
Copy Markdown
Contributor

@WangWeiLin-MV WangWeiLin-MV commented Feb 5, 2025

Port freetype-gl failed with include/GL/glew.h:1219:14: fatal error: GL/glu.h: No such file or directory which found in when check #43363 (review)

Change

Checklist

  • Changes comply with the maintainer guide.
  • SHA512s are updated for each updated download.
  • The "supports" clause reflects platforms that may be fixed by this new version.
  • Any fixed CI baseline entries are removed from that file.
  • Any patches that are no longer applied are deleted from the port's directory.
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Only one version is added to each modified port's versions file.

Test

The port glew, freetype-gl, colmap installation tests pass with the following triplets:

  • x64-windows

@WangWeiLin-MV WangWeiLin-MV added info:internal category:port-update The issue is with a library, which is requesting update new revision labels Feb 5, 2025
@WangWeiLin-MV WangWeiLin-MV marked this pull request as ready for review February 6, 2025 02:21
@JonLiu1993 JonLiu1993 added the info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. label Feb 6, 2025
@WangWeiLin-MV WangWeiLin-MV changed the title [freetype-gl] Add message of system dependency libglu1-mesa-dev [glew] Add message of system dependency libglu1-mesa-dev Feb 6, 2025
@Osyotr
Copy link
Copy Markdown
Contributor

Osyotr commented Feb 6, 2025

GLEW doesn't use GLU.
https://github.com/nigels-com/glew/blob/3da315c23aa80b5727e51f21bbe33823bf4c0511/build/cmake/CMakeLists.txt#L61
This define should be minted in GLEW headers.

@WangWeiLin-MV WangWeiLin-MV removed the info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. label Feb 6, 2025
@WangWeiLin-MV WangWeiLin-MV marked this pull request as draft February 6, 2025 07:36
@WangWeiLin-MV WangWeiLin-MV changed the title [glew] Add message of system dependency libglu1-mesa-dev [glew] Add public definition GLEW_NO_GLU for glew_head.h Feb 6, 2025
@WangWeiLin-MV WangWeiLin-MV added category:port-bug The issue is with a library, which is something the port should already support and removed category:port-update The issue is with a library, which is requesting update new revision labels Feb 6, 2025
@dg0yt
Copy link
Copy Markdown
Contributor

dg0yt commented Feb 6, 2025

This define should be minted in GLEW headers.

i.e. not in CMake. Then you don't have to patch downstream ports.

@WangWeiLin-MV WangWeiLin-MV changed the title [glew] Add public definition GLEW_NO_GLU for glew_head.h [glew] Add public definition GLEW_NO_GLU for glew_head.h [colmap] Remove feature cuda Feb 8, 2025
@WangWeiLin-MV WangWeiLin-MV marked this pull request as ready for review February 8, 2025 02:32
@WangWeiLin-MV WangWeiLin-MV changed the title [glew] Add public definition GLEW_NO_GLU for glew_head.h [colmap] Remove feature cuda [glew] Add public definition GLEW_NO_GLU [colmap] Remove feature cuda Feb 8, 2025
@JonLiu1993 JonLiu1993 added the info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. label Feb 8, 2025
@dg0yt dg0yt mentioned this pull request Feb 8, 2025
@dg0yt
Copy link
Copy Markdown
Contributor

dg0yt commented Feb 8, 2025

Approved? Okay, suggestion implemented in #43695.

Copy link
Copy Markdown
Contributor

@dg0yt dg0yt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really don't see this as ready to merge.

${FREETYPE_LIBRARIES}
${MATH_LIBRARY}
- ${GLEW_LIBRARY}
+ GLEW::GLEW
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typical patch which will breaks users 💣

Comment on lines -54 to -66
"cuda": {
"description": "Build with CUDA.",
"dependencies": [
"cuda",
"glew"
]
},
"cuda-redist": {
"description": "Redistributable CUDA support for common supported compute architectures.",
"dependencies": [
"cuda"
]
},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nobody wants to remove CUDA from COLMAP. (Or back to 🧮?)

@JonLiu1993 JonLiu1993 removed the info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. label Feb 10, 2025
@WangWeiLin-MV
Copy link
Copy Markdown
Contributor Author

Convert to draft. Wait for the fix and discussion upstream that mentioned

@WangWeiLin-MV WangWeiLin-MV marked this pull request as draft February 11, 2025 08:28
@WangWeiLin-MV WangWeiLin-MV added the depends:upstream-changes Waiting on a change to the upstream project label Feb 11, 2025
@WangWeiLin-MV
Copy link
Copy Markdown
Contributor Author

Duplicate of #43695

@WangWeiLin-MV WangWeiLin-MV marked this as a duplicate of #43695 Feb 14, 2025
@WangWeiLin-MV WangWeiLin-MV deleted the ports/freetype-gl/system-dependency-message branch February 14, 2025 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:port-bug The issue is with a library, which is something the port should already support depends:upstream-changes Waiting on a change to the upstream project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants