openni niviewer問題彙總

smilestone322發表於2018-05-05

1)測試中如發現Niviewer顯示有問題,而用ImageJ看儲存的資料沒有問題,可能原因是niviewer渲染有問題,就要檢查系統的驅動有沒有安裝,比如windows下顯示卡驅動是否安裝,如在linux下虛擬機器也有這樣的問題,不支援解析度的切換;

2)linux如何檢視usb的裝置的資訊

After you have claimed the device, run this (where $ represents the terminal entry point):

$ sudo lsusb -v -d 16c0:05df

Where 16c0:05df are your vendor and product ids separated by a colon. (If you don't know these, type lsusb and figure out which device is yours by unplugging and re-running lsusb)

3)

sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so.6.10.1 /usr/lib/libfreetype.so.6 and now evince runs fine.
需要建立一個符號連結

I was able to fix this problem however I'm still not entirely sure why this was a problem in the first place.

After running strace, I saw open("/usr/local/lib/libfreetype.so.6", O_RDONLY|O_CLOEXEC) = -1 EACCES (Permission denied) which doesn't quite make sense since other programs (without sudo powers) which depended on libfreetype were able to run, and the permissions are set for read/write for all, also running evince under sudo didn't help either.

My apt-get of libfreetype placed the library in /usr/lib/x86_64-linux-gnu/libfreetype.so.6 but for some reason evince wasn't checking that folder (even though it was added to LD_LIBRARY_PATH). However I created a symbolic link to a folder which it does check sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so.6.10.1 /usr/lib/libfreetype.so.6 and now evince runs fine.


相關文章