nix-community / nix-environments

Repository to maintain out-of-tree shell.nix files (maintainer=@mic92)
MIT License
201 stars 32 forks source link

`Vitis_2024.1` not working properly #82

Open 0david0mp opened 1 week ago

0david0mp commented 1 week ago

Not realy sure if this is a wrong thing about the package, my specific installation or if it has somethign to do with a redeclaration issue (i have another version of xilinx installed), but when trying to run the command vitis or with any other flags -g, -w it just prints out the banner.

When inspecting the vitis bash script, i noticed the file $XILINX_VITIS/ide/electron-app/lnx64/vitisng-ide which states a missing library: /opt/Vitis/2024.1/ide/electron-app/lnx64/vitisng-ide: error while loading shared libraries: libxshmfence.so.1: cannot open shared object file: No such file or directory.

i've also tried launching it from the vivado ide (tools > launch vitis ide), but wouldnt work neither.

Any help or guidance? Thanks in advance

Mic92 commented 1 week ago

Would adding xorg.libxshmfence solve the issue? If so, please make a pull request.

0david0mp commented 1 week ago

I've got it to work with the --classic flag. Also, running ldd shows this output:

❯ ldd $XILINX_VITIS/ide/electron-app/lnx64/vitisng-ide
        linux-vdso.so.1 (0x00007ffe1bd13000)
        libffmpeg.so => /opt/Vitis/2024.1/ide/electron-app/lnx64/libffmpeg.so (0x00007f2623a00000)
        ...
        libgio-2.0.so.0 => /lib/libgio-2.0.so.0 (0x00007f2623600000)
        libnss3.so => not found
        libnssutil3.so => not found
        libsmime3.so => not found
        libnspr4.so => not found
        libatk-1.0.so.0 => not found
        libatk-bridge-2.0.so.0 => not found
        libdbus-1.so.3 => not found
        libdrm.so.2 => not found
        libgtk-3.so.0 => /lib/libgtk-3.so.0 (0x00007f2622c00000)
        libpango-1.0.so.0 => not found
        libcairo.so.2 => not found
        libgdk_pixbuf-2.0.so.0 => not found
        libm.so.6 => /lib/libm.so.6 (0x00007f2623519000)
        libX11.so.6 => /lib/libX11.so.6 (0x00007f2622ab4000)
        libXcomposite.so.1 => not found
        libXdamage.so.1 => not found
        libXext.so.6 => /lib/libXext.so.6 (0x00007f262c9ab000)
        libXfixes.so.3 => not found
        libXrandr.so.2 => not found
        libexpat.so.1 => not found
        libxcb.so.1 => /lib/libxcb.so.1 (0x00007f262c97d000)
        libxkbcommon.so.0 => not found
        libgbm.so.1 => not found
        libasound.so.2 => not found
        libatspi.so.0 => not found
        libcups.so.2 => not found
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f2623ddb000)
        ...

and i've not been able to find some of the missing libraries under nixpkgs, so probably will just try some different version until i found one that works. Have yo tried any version that do work @Mic92??

0david0mp commented 1 week ago

the missing libraries of 2023.2:

❯ ldd $XILINX_VITIS/ide/electron-app/lnx64/vitisng-ide | grep "not found"
    libnss3.so => not found
    libnssutil3.so => not found
    libsmime3.so => not found
    libnspr4.so => not found
    libatk-1.0.so.0 => not found
    libatk-bridge-2.0.so.0 => not found
    libdbus-1.so.3 => not found
    libdrm.so.2 => not found
    libpango-1.0.so.0 => not found
    libcairo.so.2 => not found
    libgdk_pixbuf-2.0.so.0 => not found
    libXcomposite.so.1 => not found
    libXdamage.so.1 => not found
    libXfixes.so.3 => not found
    libXrandr.so.2 => not found
    libexpat.so.1 => not found
    libxkbcommon.so.0 => not found
    libgbm.so.1 => not found
    libasound.so.2 => not found
    libatspi.so.0 => not found
    libcups.so.2 => not found

the last working version seems to be 2022.2. should i close this issue or you think you will try to fix this?