이번에 구매한 usb3.0 확장 카드를 연결하고 케이블들을 낑낑대면서 연결하니 뜨긴 한다.

$ sudo dmesg
[  437.911262] pcieport 0000:00:1c.1: pciehp: Slot(1): Card present
[  437.911269] pcieport 0000:00:1c.1: pciehp: Slot(1): Link Up
[  438.044260] pci 0000:02:00.0: [1912:0015] type 00 class 0x0c0330
[  438.044330] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit]
[  438.044672] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[  438.044800] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:1c.1 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[  438.045216] pci 0000:02:00.0: BAR 0: assigned [mem 0xd0000000-0xd0001fff 64bit]
[  438.045250] pcieport 0000:00:1c.1: PCI bridge to [bus 02-22]
[  438.045256] pcieport 0000:00:1c.1:   bridge window [io  0x2000-0x3fff]
[  438.045263] pcieport 0000:00:1c.1:   bridge window [mem 0xd0000000-0xd3ffffff]
[  438.045269] pcieport 0000:00:1c.1:   bridge window [mem 0xbfb00000-0xbfcfffff 64bit pref]
[  438.045301] pci 0000:02:00.0: enabling device (0000 -> 0002)
[  438.064367] xhci_hcd 0000:02:00.0: failed to load firmware renesas_usb_fw.mem, fallback to ROM
[  438.064525] xhci_hcd 0000:02:00.0: xHCI Host Controller
[  438.064539] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 3
[  438.069936] xhci_hcd 0000:02:00.0: hcc params 0x014051cf hci version 0x100 quirks 0x0000001100000090
[  438.070598] xhci_hcd 0000:02:00.0: xHCI Host Controller
[  438.070606] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 4
[  438.070613] xhci_hcd 0000:02:00.0: Host supports USB 3.0 SuperSpeed
[  438.076171] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[  438.076179] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  438.076181] usb usb3: Product: xHCI Host Controller
[  438.076183] usb usb3: Manufacturer: Linux 5.15.0-113-generic xhci-hcd
[  438.076185] usb usb3: SerialNumber: 0000:02:00.0
[  438.076795] hub 3-0:1.0: USB hub found
[  438.076819] hub 3-0:1.0: 2 ports detected
[  438.077339] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[  438.077384] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[  438.077388] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  438.077391] usb usb4: Product: xHCI Host Controller
[  438.077393] usb usb4: Manufacturer: Linux 5.15.0-113-generic xhci-hcd
[  438.077395] usb usb4: SerialNumber: 0000:02:00.0
[  438.077862] hub 4-0:1.0: USB hub found
[  438.077883] hub 4-0:1.0: 2 ports detected
[  633.299719] usb 3-1: new high-speed USB device number 2 using xhci_hcd
[  633.451210] usb 3-1: New USB device found, idVendor=045e, idProduct=02d9, bcdDevice= 0.70
[  633.451228] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  633.451235] usb 3-1: Product: NuiSensor Adaptor      
[  633.451240] usb 3-1: Manufacturer: Microsoft Corporation  
[  633.454348] hub 3-1:1.0: USB hub found
[  633.454783] hub 3-1:1.0: 1 port detected
[  633.909291] usb 4-1: new SuperSpeed USB device number 2 using xhci_hcd
[  636.898560] usb 4-1: New USB device found, idVendor=045e, idProduct=02d9, bcdDevice= 0.73
[  636.898577] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  636.898584] usb 4-1: Product: NuiSensor Adaptor      
[  636.898590] usb 4-1: Manufacturer: Microsoft Corporation  
[  636.902320] hub 4-1:1.0: USB hub found
[  636.902758] hub 4-1:1.0: 1 port detected
[  637.392541] usb 4-1.1: new SuperSpeed USB device number 3 using xhci_hcd
[  637.421621] usb 4-1.1: New USB device found, idVendor=045e, idProduct=02d8, bcdDevice= 1.00
[  637.421649] usb 4-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=4
[  637.421654] usb 4-1.1: Product: Xbox NUI Sensor
[  637.421657] usb 4-1.1: Manufacturer: Microsoft
[  637.421661] usb 4-1.1: SerialNumber: 501441643042
[  637.493029] usbcore: registered new interface driver snd-usb-audio

 

일단.. 5Gbps로 USB3.0으로 잘 붙긴한데

$ lsusb -t -v
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/1p, 5000M
        ID 045e:02d9 Microsoft Corp. 
        |__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=, 5000M
            ID 045e:02d8 Microsoft Corp. 
        |__ Port 1: Dev 3, If 1, Class=Vendor Specific Class, Driver=, 5000M
            ID 045e:02d8 Microsoft Corp. 
        |__ Port 1: Dev 3, If 2, Class=Audio, Driver=snd-usb-audio, 5000M
            ID 045e:02d8 Microsoft Corp. 
        |__ Port 1: Dev 3, If 3, Class=Audio, Driver=snd-usb-audio, 5000M
            ID 045e:02d8 Microsoft Corp. 
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/1p, 480M
        ID 045e:02d9 Microsoft Corp. 
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
        ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
        |__ Port 4: Dev 3, If 0, Class=Video, Driver=uvcvideo, 480M
            ID 04f2:b242 Chicony Electronics Co., Ltd 
        |__ Port 4: Dev 3, If 1, Class=Video, Driver=uvcvideo, 480M
            ID 04f2:b242 Chicony Electronics Co., Ltd 
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
        ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
        |__ Port 4: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
            ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub"
        |__ Port 6: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 480M
            ID 049f:0081 Compaq Computer Corp. 

 

이전에 실행했던 녀석을 실행하니.. 어...?!

$ freenect-camtest 
No device found!

 

검색해보니 libfreenect2 라는걸 설치해야 하는 것 같은데..

일단 패키지 설치 안하고 하니 먼가 에러가 나서

-- Could NOT find TegraJPEG (missing: TegraJPEG_LIBRARIES TegraJPEG_INCLUDE_DIRS TegraJPEG_WORKS) 
CMake Error at /home/minimonk/.local/lib/python3.10/site-packages/cmake/data/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find TurboJPEG (missing: TurboJPEG_LIBRARIES
  TurboJPEG_INCLUDE_DIRS TURBOJPEG_WORKS)
Call Stack (most recent call first):
  /home/minimonk/.local/lib/python3.10/site-packages/cmake/data/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
  cmake_modules/FindTurboJPEG.cmake:66 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:243 (FIND_PACKAGE)

 

패키지들 왕창 설치!!

$ sudo apt-get install libusb-1.0-0-dev libturbojpeg0-dev libglfw3-dev libva-dev libjpeg-dev libopenni2-dev
$ pip3 install cmake

 

make 하는데 gcc 버전이 낮아서 안되는 듯...

귀찮으니 나중에 다시 시도.. 키넥트2 정리하기 귀찮은디.. ㅠㅠ

(다시보니 cuda 때문인데 cuda 지원을 뺄까?)

In file included from /usr/local/cuda/include/cuda_runtime.h:83,
                 from <command-line>:
/usr/local/cuda/include/crt/host_config.h:138:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
  138 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
      |  ^~~~~
CMake Error at cuda_compile_1_generated_cuda_depth_packet_processor.cu.o.RelWithDebInfo.cmake:220 (message):
  Error generating
  /home/minimonk/src/libfreenect2/build/CMakeFiles/cuda_compile_1.dir/src/./cuda_compile_1_generated_cuda_depth_packet_processor.cu.o


CMake Error at cuda_compile_1_generated_cuda_kde_depth_packet_processor.cu.o.RelWithDebInfo.cmake:220 (message):
  Error generating
  /home/minimonk/src/libfreenect2/build/CMakeFiles/cuda_compile_1.dir/src/./cuda_compile_1_generated_cuda_kde_depth_packet_processor.cu.o


make[2]: *** [CMakeFiles/freenect2.dir/build.make:87: CMakeFiles/cuda_compile_1.dir/src/cuda_compile_1_generated_cuda_depth_packet_processor.cu.o] 오류 1
make[2]: *** 끝나지 않은 작업을 기다리고 있습니다....
make[2]: *** [CMakeFiles/freenect2.dir/build.make:94: CMakeFiles/cuda_compile_1.dir/src/cuda_compile_1_generated_cuda_kde_depth_packet_processor.cu.o] 오류 1
make[1]: *** [CMakeFiles/Makefile2:148: CMakeFiles/freenect2.dir/all] 오류 2
make: *** [Makefile:136: all] 오류 2

[링크 : https://github.com/OpenKinect/libfreenect2]

[링크 : https://www.notaboutmy.life/posts/run-kinect-2-on-ubuntu-20-lts/]

 

[링크 : https://scazlab.github.io/kinect2_setup_guide.html]

 

+

-DENABLE_CUDA=OFF

[링크 : https://github.com/OpenKinect/libfreenect2/issues/1119]

'프로그램 사용 > kinect' 카테고리의 다른 글

libfreenect2 실행 실패  (0) 2024.07.14
libfreenect2 CUDA 끄고 빌드 성공  (0) 2024.07.13
xbox one S / 기본형?  (0) 2024.06.25
kinect for windows v2 설치  (0) 2024.06.24
kinect2 도착  (0) 2024.06.20
Posted by 구차니