ichi4096 / vivado-on-silicon-mac

Installs Vivado on M1/M2/M3 macs
Creative Commons Zero v1.0 Universal
277 stars 30 forks source link

[Tip] Launching Vitis #37

Open reteps opened 7 months ago

reteps commented 7 months ago

Hi there, I was able to launch Vitis by swapping libgdk to version 3. It appears there is a known incompatibility if libgdk version 2 and JavaFX are loaded simultaneously.

So my full script is:

#!/bin/bash
cd /home/user
export LD_PRELOAD="/lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libselinux.so.1 /lib/x86_64-linux-gnu/libz.so.1 /lib/x86_64-linux-gnu/libgdk-3.so.0"
export JAVA_TOOL_OPTIONS="-Dsun.java2d.xrender=false"
export JAVA_OPTS="-Dsun.java2d.xrender=false"
export DISPLAY="host.docker.internal:0"
/home/user/Xilinx/Vitis_HLS/*/settings64.sh
/home/user/Xilinx/Vitis_HLS/*/bin/vitis_hls

Note that I am using /lib/x86_64-linux-gnu/libgdk-3.so.0 instead of /lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0

CleanShot 2024-03-04 at 17 21 05@2x

ichi4096 commented 6 months ago

Nice! I have added libgtk2 because without preloading that Vivado crashes.

sapertuz commented 5 months ago

Are you also able to run the Vitis Unified IDE ?

reteps commented 5 months ago

I have not tried, but I assume no as it is not included in the installation package by default.

ichi4096 commented 2 months ago

Are you also able to run the Vitis Unified IDE ?

You can try to install it like You would on Linux otherwise (see the updated README). Make sure to install into the /home/user/Xilinx directory.

sapertuz commented 1 month ago

Has anyone have any luck with this? Vitis_hls is deprecated and Vitis Unified doesn't open but it also doesnt launch any errors or log so I dont have any way to debug.

ichi4096 commented 1 month ago

I haven't considered running software other than Vivado yet, however, if You want to run other programs and see their errors, You'll have better luck launching them from the terminal.

sapertuz commented 1 month ago

I do launch them from the terminal... it creates a .jou and .log files which are helpful for this. sadly Vitis doesnt create anything :(