Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question libcuda.so is not found

Discussion in 'Unity Render Streaming' started by cloudending, Dec 6, 2021.

  1. cloudending

    cloudending

    Joined:
    Mar 25, 2019
    Posts:
    15
    My system is ubuntu 18.04. I create a new unity 2020.3 project and import com.unity.webrtc with tag 2.4.0-exp.4. It will crash when `Begin MonoManager ReloadAssembly`.
    And I follow the https://github.com/Unity-Technologies/com.unity.webrtc/blob/develop/Plugin~/README.md to build native plugins with of 2.4.0-exp.4. I can build native plugin successfully. But the project still can not open
    Here is the Editor logfile.
    main error is `implib-gen: libcuda.so: failed to load library: libcuda.so: cannot open shared object file: No such file or directory`
    And I can find libcuda.so in /usr/local/cuda/targets/x86_64-linux/lib/stubs/libcuda.so
     

    Attached Files:

  2. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    803
    Is this log when occurring the crash the editor?
    It might be the bug and we need more information for solving.
     
  3. cloudending

    cloudending

    Joined:
    Mar 25, 2019
    Posts:
    15
    yes,this editor.log is the crash,and I solve it by write the absolute path of libcuda.so in libcuda.so.init.c.
    Code (CSharp):
    1.   lib_handle = dlopen("/usr/local/cuda/lib64/stubs/libcuda.so", RTLD_LAZY | RTLD_GLOBAL);
    It it wierd that I add blew line in .bashrc but not working.
    Code (CSharp):
    1. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64/stubs