I managed to compile this with QT creator installed on my RPI4
https://github.com/henrihallik/simple-cam-qt
It detects cameras when im trying to run it from terminal.
But when i try to run it from QT creator this is the error i get:
15:59:09: Starting /home/pi/Desktop/build-simple-cam-Desktop-Debug/simple-cam ...
[5:15:09.495898841] [4257] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[5:15:09.549464661] [4258] WARN CameraSensorProperties camera_sensor_properties.cpp:243 No static properties available for 'arducam_64mp'
[5:15:09.549611011] [4258] WARN CameraSensorProperties camera_sensor_properties.cpp:245 Please consider updating the camera sensor properties database
No cameras were identified on the system.
[5:15:09.612696470] [4258] ERROR IPAProxy ipa_proxy.cpp:149 Configuration file 'arducam_64mp.json' not found for IPA module 'raspberrypi'
[5:15:09.612852171] [4258] ERROR IPARPI raspberrypi.cpp:234 Could not create camera helper for arducam_64mp
[5:15:09.612896578] [4258] ERROR RPI raspberrypi.cpp:1352 Failed to load a suitable IPA library
[5:15:09.613289166] [4258] ERROR RPI raspberrypi.cpp:1277 Failed to register camera arducam_64mp 10-001a: -22
15:59:10: /home/pi/Desktop/build-simple-cam-Desktop-Debug/simple-cam exited with code 1
Any Ideas why this happens?
Anyways this is the log i get when running from command line:
pi@pi:~/Desktop/build-simple-cam-Desktop-Debug $ ./simple-cam
[5:14:26.195941752] [4248] INFO Camera camera_manager.cpp:299 libcamera v0.0.0+4225-74d023d8-dirty (2023-04-02T17:35:52+03:00)
[5:14:26.229480106] [4249] WARN CameraSensorProperties camera_sensor_properties.cpp:243 No static properties available for 'arducam_64mp'
[5:14:26.229594549] [4249] WARN CameraSensorProperties camera_sensor_properties.cpp:245 Please consider updating the camera sensor properties database
[5:14:26.300895981] [4249] WARN RPI raspberrypi.cpp:1357 Mismatch between Unicam and CamHelper for embedded data usage!
[5:14:26.302617793] [4249] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/arducam_64mp@1a to Unicam device /dev/media4 and ISP device /dev/media0
- 'arducam_64mp' (/base/soc/i2c0mux/i2c@1/arducam_64mp@1a)
Default viewfinder configuration is: 800x600-NV12
Validated viewfinder configuration is: 800x600-NV12
[5:14:26.306580817] [4248] INFO Camera camera.cpp:1028 configuring streams: (0) 800x600-NV12
[5:14:26.307654266] [4249] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/arducam_64mp@1a - Selected sensor format: 1280x720-SRGGB10_1X10 - Selected unicam format: 1280x720-pRAA
Allocated 4 buffers for stream
[5:14:26.777523511] [4249] INFO V4L2 v4l2_videodevice.cpp:1820 /dev/video0[17:cap]: Zero sequence expected for first frame (got 1)
Request completed: Request(0:C:0/1:0)
Brightness = 0.500000
ExposureTime = 59994
AfState = 0
AnalogueGain = 4.302521
AfPauseState = 0
FrameDuration = 60401
AeLocked = false
DigitalGain = 1.000000
Lux = 144.655487
ColourGains = [ 1.208474, 2.763039 ]
ColourTemperature = 3000
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 196
ColourCorrectionMatrix = [ 1.468876, -0.281766, -0.187110, -0.418329, 1.418347, -0.000029, -0.129076, -0.978665, 2.107742 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18867031117000
seq: 000007 timestamp: 18867031117000 bytesused: 480000/240000
Request completed: Request(1:C:0/1:0)
Brightness = 0.500000
ExposureTime = 59994
AfState = 0
SensorTimestamp = 18867091494000
ScalerCrop = (2704, 2032)/3840x2880
ColourCorrectionMatrix = [ 1.468858, -0.281753, -0.187105, -0.418295, 1.418375, -0.000089, -0.129075, -0.978468, 2.107542 ]
FocusFoM = 233
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
ColourTemperature = 3001
ColourGains = [ 1.208955, 2.762165 ]
AeLocked = false
Lux = 168.577850
FrameDuration = 60401
AnalogueGain = 4.231405
AfPauseState = 0
DigitalGain = 2.836183
seq: 000008 timestamp: 18867091494000 bytesused: 480000/240000
Request completed: Request(2:C:0/1:0)
Brightness = 0.500000
ExposureTime = 59994
AfState = 0
SensorTimestamp = 18867151864000
ScalerCrop = (2704, 2032)/3840x2880
ColourCorrectionMatrix = [ 1.468865, -0.281758, -0.187107, -0.418309, 1.418364, -0.000065, -0.129075, -0.978546, 2.107622 ]
FocusFoM = 190
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
ColourTemperature = 3001
ColourGains = [ 1.208894, 2.762268 ]
AeLocked = false
Lux = 128.782333
FrameDuration = 60401
AnalogueGain = 4.853081
AfPauseState = 0
DigitalGain = 2.472871
seq: 000009 timestamp: 18867151864000 bytesused: 480000/240000
Request completed: Request(3:C:0/1:0)
Brightness = 0.500000
ExposureTime = 59994
AfState = 0
SensorTimestamp = 18867212230000
ScalerCrop = (2704, 2032)/3840x2880
ColourCorrectionMatrix = [ 1.468872, -0.281763, -0.187109, -0.418321, 1.418354, -0.000042, -0.129076, -0.978621, 2.107697 ]
FocusFoM = 154
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
ColourTemperature = 3001
ColourGains = [ 1.208836, 2.762367 ]
AeLocked = false
Lux = 79.876762
FrameDuration = 60401
AnalogueGain = 4.248963
AfPauseState = 0
DigitalGain = 2.824464
seq: 000010 timestamp: 18867212230000 bytesused: 480000/240000
Request completed: Request(4:C:0/1:0)
ExposureTime = 59994
AfState = 0
AnalogueGain = 4.213992
AfPauseState = 0
FrameDuration = 60401
AeLocked = false
DigitalGain = 2.847903
Lux = 4.136447
ColourGains = [ 1.208781, 2.762460 ]
ColourTemperature = 3000
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 85
ColourCorrectionMatrix = [ 1.468878, -0.281768, -0.187110, -0.418333, 1.418344, -0.000020, -0.129077, -0.978692, 2.107769 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18867245535000
seq: 000011 timestamp: 18867245535000 bytesused: 480000/240000
Request completed: Request(5:C:0/1:0)
ExposureTime = 3039
AfState = 0
AnalogueGain = 1.000000
AfPauseState = 0
FrameDuration = 33333
AeLocked = false
DigitalGain = 4.000000
Lux = 33285.511719
ColourGains = [ 1.208729, 2.762549 ]
ColourTemperature = 3000
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 891
ColourCorrectionMatrix = [ 1.468884, -0.281773, -0.187111, -0.418345, 1.418334, 0.000000, -0.129077, -0.978759, 2.107836 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18867365871000
seq: 000012 timestamp: 18867365871000 bytesused: 480000/240000
Request completed: Request(6:C:0/1:0)
ExposureTime = 120006
AfState = 0
AnalogueGain = 5.988304
AfPauseState = 0
FrameDuration = 120404
AeLocked = false
DigitalGain = 1.001899
Lux = 141.543564
ColourGains = [ 1.208679, 2.762634 ]
ColourTemperature = 3000
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 492
ColourCorrectionMatrix = [ 1.468890, -0.281777, -0.187113, -0.418356, 1.418326, 0.000020, -0.129078, -0.978823, 2.107901 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18867481403000
seq: 000013 timestamp: 18867481403000 bytesused: 480000/240000
Request completed: Request(7:C:0/1:0)
ExposureTime = 115188
AfState = 0
AnalogueGain = 5.988304
AfPauseState = 0
FrameDuration = 115586
AeLocked = false
DigitalGain = 1.001944
Lux = 153.239243
ColourGains = [ 1.208632, 2.762714 ]
ColourTemperature = 3000
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 505
ColourCorrectionMatrix = [ 1.468896, -0.281781, -0.187114, -0.418366, 1.418317, 0.000039, -0.129078, -0.978884, 2.107962 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18867601731000
seq: 000014 timestamp: 18867601731000 bytesused: 480000/240000
Request completed: Request(8:C:0/1:0)
ExposureTime = 120006
AfState = 0
AnalogueGain = 5.988304
AfPauseState = 0
FrameDuration = 120404
AeLocked = false
DigitalGain = 1.001899
Lux = 147.110245
ColourGains = [ 1.208588, 2.762790 ]
ColourTemperature = 3000
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 513
ColourCorrectionMatrix = [ 1.468901, -0.281785, -0.187115, -0.418376, 1.418309, 0.000057, -0.129079, -0.978942, 2.108021 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18867722064000
seq: 000015 timestamp: 18867722064000 bytesused: 480000/240000
Request completed: Request(9:C:0/1:0)
ExposureTime = 120006
AfState = 0
AnalogueGain = 5.988304
AfPauseState = 0
FrameDuration = 120404
AeLocked = false
DigitalGain = 1.001899
Lux = 118.099564
ColourGains = [ 1.208545, 2.762862 ]
ColourTemperature = 3000
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 410
ColourCorrectionMatrix = [ 1.468906, -0.281789, -0.187117, -0.418385, 1.418301, 0.000073, -0.129079, -0.978997, 2.108076 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18867842402000
seq: 000016 timestamp: 18867842402000 bytesused: 480000/240000
Request completed: Request(10:C:0/1:0)
ExposureTime = 120006
AfState = 0
AnalogueGain = 5.988304
AfPauseState = 0
FrameDuration = 120404
AeLocked = false
DigitalGain = 1.001899
Lux = 117.870987
ColourGains = [ 1.208505, 2.762931 ]
ColourTemperature = 2999
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 412
ColourCorrectionMatrix = [ 1.468835, -0.281589, -0.187246, -0.418418, 1.418443, -0.000036, -0.129139, -0.979056, 2.108194 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18867938870000
seq: 000017 timestamp: 18867938870000 bytesused: 480000/240000
Request completed: Request(11:C:0/1:0)
ExposureTime = 96122
AfState = 0
AnalogueGain = 5.988304
AfPauseState = 0
FrameDuration = 96520
AeLocked = false
DigitalGain = 1.001892
Lux = 162.922485
ColourGains = [ 1.208467, 2.762997 ]
ColourTemperature = 2999
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 462
ColourCorrectionMatrix = [ 1.468735, -0.281308, -0.187426, -0.418459, 1.418644, -0.000195, -0.129222, -0.979115, 2.108336 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18868046006000
seq: 000018 timestamp: 18868046006000 bytesused: 480000/240000
Request completed: Request(12:C:0/1:0)
ExposureTime = 106798
AfState = 0
AnalogueGain = 5.988304
AfPauseState = 0
FrameDuration = 107196
AeLocked = false
DigitalGain = 1.001942
Lux = 155.687180
ColourGains = [ 1.208492, 2.762952 ]
ColourTemperature = 2999
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 482
ColourCorrectionMatrix = [ 1.468801, -0.281495, -0.187307, -0.418432, 1.418511, -0.000089, -0.129167, -0.979075, 2.108242 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18868159047000
seq: 000019 timestamp: 18868159047000 bytesused: 480000/240000
Request completed: Request(13:C:0/1:0)
ExposureTime = 112708
AfState = 0
AnalogueGain = 5.988304
AfPauseState = 0
FrameDuration = 113106
AeLocked = false
DigitalGain = 1.001895
Lux = 150.979065
ColourGains = [ 1.208517, 2.762910 ]
ColourTemperature = 2999
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 493
ColourCorrectionMatrix = [ 1.468865, -0.281672, -0.187193, -0.418405, 1.418384, 0.000011, -0.129114, -0.979038, 2.108153 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18868275349000
seq: 000020 timestamp: 18868275349000 bytesused: 480000/240000
Request completed: Request(14:C:0/1:0)
ExposureTime = 115967
AfState = 0
AnalogueGain = 5.988304
AfPauseState = 0
FrameDuration = 116365
AeLocked = false
DigitalGain = 1.001933
Lux = 149.529724
ColourGains = [ 1.208540, 2.762869 ]
ColourTemperature = 3000
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 498
ColourCorrectionMatrix = [ 1.468906, -0.281790, -0.187117, -0.418386, 1.418300, 0.000076, -0.129079, -0.979005, 2.108084 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18868393448000
seq: 000021 timestamp: 18868393448000 bytesused: 480000/240000
Request completed: Request(15:C:0/1:0)
ExposureTime = 117771
AfState = 0
AnalogueGain = 5.988304
AfPauseState = 0
FrameDuration = 118169
AeLocked = false
DigitalGain = 1.001941
Lux = 148.507477
ColourGains = [ 1.208562, 2.762831 ]
ColourTemperature = 3000
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 508
ColourCorrectionMatrix = [ 1.468904, -0.281788, -0.187116, -0.418381, 1.418304, 0.000067, -0.129079, -0.978976, 2.108056 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18868512546000
seq: 000022 timestamp: 18868512546000 bytesused: 480000/240000
Request completed: Request(16:C:0/1:0)
ExposureTime = 118770
AfState = 0
AnalogueGain = 5.988304
AfPauseState = 0
FrameDuration = 119168
AeLocked = false
DigitalGain = 1.001926
Lux = 147.453262
ColourGains = [ 1.208583, 2.762795 ]
ColourTemperature = 3000
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 506
ColourCorrectionMatrix = [ 1.468902, -0.281786, -0.187116, -0.418377, 1.418308, 0.000059, -0.129079, -0.978950, 2.108028 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18868631820000
seq: 000023 timestamp: 18868631820000 bytesused: 480000/240000
Request completed: Request(17:C:0/1:0)
ExposureTime = 118956
AfState = 0
AnalogueGain = 5.988304
AfPauseState = 0
FrameDuration = 119354
AeLocked = true
DigitalGain = 1.001912
Lux = 147.774902
ColourGains = [ 1.208602, 2.762760 ]
ColourTemperature = 3000
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 505
ColourCorrectionMatrix = [ 1.468899, -0.281784, -0.187115, -0.418373, 1.418311, 0.000051, -0.129079, -0.978924, 2.108003 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18868751576000
seq: 000024 timestamp: 18868751576000 bytesused: 480000/240000
Request completed: Request(18:C:0/1:0)
ExposureTime = 119422
AfState = 0
AnalogueGain = 5.988304
AfPauseState = 0
FrameDuration = 119820
AeLocked = true
DigitalGain = 1.001938
Lux = 147.518677
ColourGains = [ 1.208621, 2.762728 ]
ColourTemperature = 3000
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 507
ColourCorrectionMatrix = [ 1.468897, -0.281783, -0.187114, -0.418369, 1.418315, 0.000044, -0.129079, -0.978900, 2.107979 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18868871588000
seq: 000025 timestamp: 18868871588000 bytesused: 480000/240000
Request completed: Request(19:C:0/1:0)
ExposureTime = 119684
AfState = 0
AnalogueGain = 5.988304
AfPauseState = 0
FrameDuration = 120082
AeLocked = true
DigitalGain = 1.001910
Lux = 147.343307
ColourGains = [ 1.208639, 2.762697 ]
ColourTemperature = 3000
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 506
ColourCorrectionMatrix = [ 1.468895, -0.281781, -0.187114, -0.418365, 1.418318, 0.000037, -0.129078, -0.978877, 2.107955 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18868991750000
seq: 000026 timestamp: 18868991750000 bytesused: 480000/240000
Request completed: Request(20:C:0/1:0)
ExposureTime = 119828
AfState = 0
AnalogueGain = 5.988304
AfPauseState = 0
FrameDuration = 120226
AeLocked = true
DigitalGain = 1.001905
Lux = 147.228317
ColourGains = [ 1.208656, 2.762667 ]
ColourTemperature = 3000
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 510
ColourCorrectionMatrix = [ 1.468893, -0.281779, -0.187114, -0.418361, 1.418321, 0.000030, -0.129078, -0.978855, 2.107933 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18869112004000
seq: 000027 timestamp: 18869112004000 bytesused: 480000/240000
Request completed: Request(21:C:0/1:0)
ExposureTime = 119904
AfState = 0
AnalogueGain = 5.988304
AfPauseState = 0
FrameDuration = 120302
AeLocked = true
DigitalGain = 1.001930
Lux = 147.188660
ColourGains = [ 1.208672, 2.762639 ]
ColourTemperature = 3000
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 506
ColourCorrectionMatrix = [ 1.468891, -0.281778, -0.187113, -0.418357, 1.418324, 0.000024, -0.129078, -0.978834, 2.107912 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18869232280000
seq: 000028 timestamp: 18869232280000 bytesused: 480000/240000
Request completed: Request(22:C:0/1:0)
ExposureTime = 119947
AfState = 0
AnalogueGain = 5.988304
AfPauseState = 0
FrameDuration = 120345
AeLocked = true
DigitalGain = 1.001942
Lux = 147.154449
ColourGains = [ 1.208638, 2.762703 ]
ColourTemperature = 3000
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 506
ColourCorrectionMatrix = [ 1.468895, -0.281781, -0.187114, -0.418366, 1.418317, 0.000038, -0.129078, -0.978882, 2.107961 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18869352573000
seq: 000029 timestamp: 18869352573000 bytesused: 480000/240000
Request completed: Request(23:C:0/1:0)
ExposureTime = 119972
AfState = 0
AnalogueGain = 5.988304
AfPauseState = 0
FrameDuration = 120370
AeLocked = true
DigitalGain = 1.001932
Lux = 147.152390
ColourGains = [ 1.208605, 2.762764 ]
ColourTemperature = 3000
SensorBlackLevels = [ 4096, 4096, 4096, 4096 ]
FocusFoM = 503
ColourCorrectionMatrix = [ 1.468899, -0.281784, -0.187115, -0.418373, 1.418311, 0.000052, -0.129079, -0.978928, 2.108007 ]
ScalerCrop = (2704, 2032)/3840x2880
SensorTimestamp = 18869472894000
seq: 000030 timestamp: 18869472894000 bytesused: 480000/240000
Capture ran for 3 seconds and stopped with exit status: 0