Skip to content

[windows with no admin] cannot find libclang.dll or one of its dependencies #362

@TymekBrunka

Description

@TymekBrunka

both libclang and clang are installed throuth python, setting absolute path doesnt help at all
errors (make -j14):

[ 6[6 %6]6 %B]u ilGenerating RSN Parser Headers...t                                                                                                                                                                                           target Diligent-Archiver-shared                                                                                                                                                                                                             [ 6[[ 66 [% 66]678 %%%]]B]  u BBiBuuluiitill ltttt  a ttrtaagarrerggtgee ettDt  i DHlDiLiilSgliLeig2ngeGtenLCntSot-Lr-TCeIeo-mxnsgtvtuueairrt                                                                                                etiLeco                                                                                                                                                                                                                                      ra                                                                                                                                                                                                                                           der                                                                                                                                                                                                                                          [ 6[9 %7]0 %B]u iBluti ltta rtgaertg eTtu tTourtioarli0a0l_1H5e_lMluolWtiinp3l2e                                                                                                                                                             Windows                                                                                                                                                                                                                                      [[  7700%%]]  BuBiulitl tt atragregte tD iDliilgiegnetn-tS-aAmspsleetBLaosaed                                                                                                                                                                er                                                                                                                                                                                                                                           Generate CXX -> BlendStateParser.hpp                                                                                                                                                                                                         [ 7[0 %[7] 0 7%0Processing shader C:/Users/Operator/Documents/rendering/moze-reaktory-2/DiligentEngine/DiligentFX/Shaders/PBR/private/OIT/ApplyOITAttenuation.psh]%                                                                           ] Processing shader C:/Users/Operator/Documents/rendering/moze-reaktory-2/DiligentEngine/DiligentFX/Shaders/PostProcess/SuperResolution/private/fsr1/ffx_fsr1.hProcessing shader C:/Users/Operator/Documents/rendering/moze-reaktory-2/DiligentEngine/DiligentFX/Shaders/Common/public/AtlasSampling.fxh                                                                                                                                                                                 [                                                                                                                                                                                                                                             [7[ [0 7[ 73%] Linking CXX executable Tutorial03_Texturing-C.exe                                                                                                                                                                            Traceback (most recent call last):                                                                                                                                                                                                             File "C:\Users\Operator\scoop\apps\python312\current\Lib\site-packages\clang\cindex.py", line 4057, in get_cindex_library                                                                                                                      library = cdll.LoadLibrary(self.get_filename())                                                                                                                                                                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                            File "C:\Users\Operator\scoop\apps\python312\current\Lib\ctypes\__init__.py", line 460, in LoadLibrary                                                                                                                                         return self._dlltype(name)                                                                                                                                                                                                                          ^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                                 File "C:\Users\Operator\scoop\apps\python312\current\Lib\ctypes\__init__.py", line 379, in __init__                                                                                                                                            self._handle = _dlopen(self._name, mode)                                                                                                                                                                                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                 FileNotFoundError: Could not find module 'libclang.dll' (or one of its dependencies). Try using the full path with constructor syntax.                                                                                                                                                                                                                                                                                                                                                    During handling of the above exception, another exception occurred:                                                                                                                                                                                                                                                                                                                                                                                                                       Traceback (most recent call last):                                                                                                                                                                                                             File "C:\Users\Operator\Documents\rendering\moze-reaktory-2\DiligentEngine\DiligentTools\RenderStateNotation\scripts\cxx_generator.py", line 62, in <module>                                                                                   main()                                                                                                                                                                                                                                     File "C:\Users\Operator\Documents\rendering\moze-reaktory-2\DiligentEngine\DiligentTools\RenderStateNotation\scripts\cxx_generator.py", line 54, in main                                                                                   %7[ [    generate_file(file, os.path.join(args.dir, generated_filename))                                                                                                                                                                     ]10[ 7   File "C:\Users\Operator\Documents\rendering\moze-reaktory-2\DiligentEngine\DiligentTools\RenderStateNotation\scripts\cxx_parser.py", line 167, in generate_file                                                                          index = Index.create()                                                                                                                                                                                                                              ^^^^^^^^^^^^^^                                                                                                                                                                                                                     File "C:\Users\Operator\scoop\apps\python312\current\Lib\site-packages\clang\cindex.py", line 2912, in create                                                                                                                              %% 737    return Index(conf.lib.clang_createIndex(excludeDecls, 0))                                                                                                                                                                                           ^^^^^^^^                                                                                                                                                                                                                      File "C:\Users\Operator\scoop\apps\python312\current\Lib\site-packages\clang\cindex.py", line 192, in __get__                                                                                                                                  value = self.wrapped(instance)                                                                                                                                                                                                                       ^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                             File "C:\Users\Operator\scoop\apps\python312\current\Lib\site-packages\clang\cindex.py", line 4030, in lib                                                                                                                                     lib = self.get_cindex_library()                                                                                                                                                                                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                            File "C:\Users\Operator\scoop\apps\python312\current\Lib\site-packages\clang\cindex.py", line 4064, in get_cindex_library                                                                                                                      raise LibclangError(msg)                                                                                                                                                                                                                 clang.cindex.LibclangError: Could not find module 'libclang.dll' (or one of its dependencies). Try using the full path with constructor syntax.. To provide a path to libclang use Config.set_library_path() or Config.set_library_file().   ]Linking CXX executable Tutorial02_Cube.exe7444] %%                                                                                                                                                                                          %[% make[2]: *** [DiligentTools\RenderSLinking CXX executable ImguiDemo.exe]Linking CXX executable Tutorial03_Texturing.exe] ]7tateNo                                                                                                        4                                                                                                                                                                                                                                            ]Linking CXX executable Tutorial04_Instancing.exe%Linking CXX executable NuklearDemo.exeBuilding CXX object DiligentSamples/Tutorials/Tutorial07_GeometryShader/CMakeFiles/Tutorial07_GeometryShader.dir/src/Tutorial07_GeometryShader.cpp.objt

(windows cmd has so unreadable (copying) formatting im sending screenshot too)

Image

and if im doing something wrong, what are '(or one of its dependencies)'?

(clang, python and cmake are installed throuth scoop bc no admin to use installers and unzipped manualy python cannot use pip propearly (prob bc of libssl.dll issue on machine at work (cannot verify certificate))

Ill be glad to know

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions