diff --git a/CHANGELOG.md b/CHANGELOG.md index 29f0e14..1d68c05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,7 +37,7 @@ - (Change) Some icons - (Change) Move log tab to clipboard tab - (Change) Tooltip overlay default color - - (Improvement) Windows position for tool windows, sometimes framework can return negative values affecting positions, now limits to 0 (#387) + - (Improvement) Windows position for tool windows, sometimes framework can return negative values affecting positions, now limits to 0 (#426) - (Fix) Center image icon for layer action button - (Fix) Center image icon for save layer image button - **Tools:** diff --git a/README.md b/README.md index 3c94132..94e22f5 100644 --- a/README.md +++ b/README.md @@ -277,7 +277,7 @@ To run UVtools open it folder on a terminal and call one of: * Double-click UVtools file * `./UVtools` -* `sh UVtools.sh` +* `bash UVtools.sh` * `dotnet UVtools.dll` [For universal package only, requires dotnet-runtime] * As a pratical alternative you can create a shortcut on Desktop diff --git a/Scripts/libdl-solver.sh b/Scripts/libdl-solver.sh new file mode 100644 index 0000000..2d92fa6 --- /dev/null +++ b/Scripts/libdl-solver.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +# Attempts to create symbolic for libdl.so +# And to solve the OpenCV "unable to load shared library 'cvextern' or one of its dependencies" error +# Note: Run with sudo bash not sh! +# +# Author: Tiago Conceição +# Version: 1 +# + +##################### +## CONFIGURATION ## +##################### +libdlso="libdl.so" +libdlso2="libdl.so.2" + +directories="/lib" +directories="${directories} /usr/lib64" +directories="${directories} /lib/x86_64-linux-gnu" + +##################### +## DON'T TOUCH ## +##################### +checks=0 +links=0 +echo "Attempting to create symbolic from $libdlso2 to $libdlso on known path's" +for directory in $directories; do + let "checks++" + echo "Checking for $directory/$libdlso2" + if [[ -f "$directory/$libdlso2" && ! -f "$directory/$libdlso" ]]; then + echo "Match: Creating symbolic link to $libdlso" + ln -s "$directory/$libdlso2" "$directory/$libdlso" + let "links++" + fi +done + +echo "######## Results #########" +echo "File checks: $checks" +echo "Created links: $links" +echo "Finished!" +echo "##########################" \ No newline at end of file