GPUOpen-Tools / radeon_gpu_analyzer

The Radeon GPU Analyzer (RGA) is an offline compiler and code analysis tool for Vulkan, DirectX, OpenGL, and OpenCL.
MIT License
405 stars 53 forks source link

Compiling on Debian #87

Open vmx opened 2 years ago

vmx commented 2 years ago

In case someone wants to compile it on Debian testing, this made it compile for me:

diff --git a/build/prebuild.sh b/build/prebuild.sh
index 55d40b7..d7289b8 100755
--- a/build/prebuild.sh
+++ b/build/prebuild.sh
@@ -118,7 +118,7 @@ fi
 if [ "$NO_UPDATE" != "TRUE" ]; then
     echo ""
     echo "Updating Common..."
-    python $SCRIPT_DIR/fetch_dependencies.py
+    python3 $SCRIPT_DIR/fetch_dependencies.py

     if [ $? -ne 0 ]; then
         echo "Error: encountered an error while fetching dependencies. Aborting..."
diff --git a/build/util/linux/copy_post_build_gui.sh b/build/util/linux/copy_post_build_gui.sh
index e181b9f..d0a9b55 100755
--- a/build/util/linux/copy_post_build_gui.sh
+++ b/build/util/linux/copy_post_build_gui.sh
@@ -14,9 +14,9 @@ if [ -n "$QT_LIB_DIR" ]; then
   cp $QT_LIB_DIR/libQt5Gui.so.5 $OUTPUT_DIR/lib/
   cp $QT_LIB_DIR/libQt5Widgets.so.5 $OUTPUT_DIR/lib/
   cp $QT_LIB_DIR/libQt5XcbQpa.so.5 $OUTPUT_DIR/lib/
-  cp $QT_LIB_DIR/libicui18n.so.50 $OUTPUT_DIR/lib/
-  cp $QT_LIB_DIR/libicudata.so.50 $OUTPUT_DIR/lib/
-  cp $QT_LIB_DIR/libicuuc.so.50 $OUTPUT_DIR/lib/
+  cp $QT_LIB_DIR/libicui18n.so.* $OUTPUT_DIR/lib/
+  cp $QT_LIB_DIR/libicudata.so.* $OUTPUT_DIR/lib/
+  cp $QT_LIB_DIR/libicuuc.so.* $OUTPUT_DIR/lib/
   cp $QT_LIB_DIR/libQt5Svg.so.5 $OUTPUT_DIR/lib/
   cp $QT_PLUGINS_DIR/imageformats/libqsvg.so $OUTPUT_DIR/lib/platforms/imageformats/
   cp $QT_PLUGINS_DIR/platforms/libqxcb.so $OUTPUT_DIR/lib/platforms/

I ran CMake as cmake –DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS='-Wno-narrowing' ../