ctypes error: libdc1394 error: Failed to initialize libdc1394

后端 未结 7 1627
攒了一身酷
攒了一身酷 2020-12-02 06:12

I\'m trying to compile my program to a shared library that I can use from within Python code using ctypes.

The library compiles fine using this command:



        
7条回答
  •  时光说笑
    2020-12-02 06:37

    Okay. I spent a entire day on it.

    Basically, the link between /dev/raw1394 and /dev/null is not permanent. You can bash into your VM, call ln /dev/null /dev/raw1394, but it will last only until you re-start your container.

    What I had to do, that seemed to be the simplest, but not the perfect approach, is to place the linking during the startup of the Container.

    I thought in Running it as a service, but seemed too much for a simple job.

    The way I finally came to work, (it's not pretty, but works), is by changing the CMD of the Dockerfile:

    CMD sh -c 'ln -s /dev/null /dev/raw1394';

提交回复
热议问题