Skip to content

Some Linux build fixes#29

Open
CreativeCylon wants to merge 3 commits into
GPUOpen-Tools:masterfrom
CreativeCylon:dev/Build_fixes
Open

Some Linux build fixes#29
CreativeCylon wants to merge 3 commits into
GPUOpen-Tools:masterfrom
CreativeCylon:dev/Build_fixes

Conversation

@CreativeCylon
Copy link
Copy Markdown
Contributor

@CreativeCylon CreativeCylon commented May 29, 2026

Came across these while building with my system's Qt.

`RmtMutexCreate()` uses `new` in the non WIN32 path. Add the missing
include and fix the build error.
Normally `libicudata.so` should be pulled in transitively so no need
to `patchelf`, but if this was not done, only then `patchelf`.

This also avoid an issue when executing the binary since normally
the patchelf case would be avoided, also avoiding the hard-coded
libicudata.so.70 . Some systems might have a different/newer version
of the library pulled in transitively, but previously that was
being `patchelf`ed away with the hard-corded version.
Deprecated since Qt 6.9 so with `-Wall` this is a build error.
For Qt 6.7 and above `checkStateChanged()` should be used.
if (LINUX)
if (ICU_DATA_NEEDS_PATCHING)
message(WARNING "Qt6Core does not link libicudata. Manually adding libicudata.so.70.")
add_custom_command(TARGET ${target} POST_BUILD COMMAND patchelf --add-needed libicudata.so.70 $<TARGET_FILE:${target}>)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Maybe we can get rid of the patchelf fully. Not sure why this was needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant