Abdallah-Hesham99 / kinectV2_ros2

A ros2 wrapper for the libk4w2 that publishes rgb and depth data into the ros2 system along with camera_info
GNU General Public License v2.0
2 stars 0 forks source link

Colcon build error #1

Open Reinaldo-Kn opened 1 month ago

Reinaldo-Kn commented 1 month ago

Hello, I'm new to the ROS world and I'm using Kinect V2 to learn more

When I try to build your package, I get the following error.

Screenshot from 2024-07-16 15-40-28

I tried the solution seen in this comment but the build still gives an error

Screenshot from 2024-07-16 15-49-44

If you can help me it would be great, I'm using Ubuntu 22.04 and Humble

Abdallah-Hesham99 commented 1 month ago

Hello, thanks for your message, have you installed OpenCV and Cv_bridge? You can try sudo apt install ros-humble-cv* to get all packages related to cv, which should include cv_bridge and then try again

On Tue, 16 Jul 2024, 21:52 Reinaldo-Kn, @.***> wrote:

Hello, I'm new to the ROS world and I'm using Kinect V2 to learn more

When I try to build your package, I get the following error.

Screenshot.from.2024-07-16.15-40-28.png (view on web) https://github.com/user-attachments/assets/f53bda64-02a5-4e25-b40c-9b5bf7b1ef66

I tried the solution seen in this comment https://github.com/ros-navigation/navigation2/issues/3455#issuecomment-1459775822 but the build still gives an error

Screenshot.from.2024-07-16.15-49-44.png (view on web) https://github.com/user-attachments/assets/ddc3c507-97a1-4e5e-9502-0b4d985abcc2

If you can help me it would be great, I'm using Ubuntu 22.04 and Humble

— Reply to this email directly, view it on GitHub https://github.com/Abdallah-Hesham99/kinectV2_ros2/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASDOTVJN265ZYPGS7AP5C5DZMVTXRAVCNFSM6AAAAABK7FGI56VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYTCOBTGU2DQNA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Reinaldo-Kn commented 1 month ago

I have installed the packages mentioned but the error still appears

` Starting >>> camera_publisher --- stderr: camera_publisher
/usr/bin/ld: cannot find -lk4w2: No such file or directory /usr/bin/ld: cannot find -lk4w2: No such file or directory collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status gmake[2]: [CMakeFiles/camera_publisher.dir/build.make:191: camera_publisher] Error 1 gmake[2]: [CMakeFiles/pub.dir/build.make:191: pub] Error 1 gmake[1]: [CMakeFiles/Makefile2:139: CMakeFiles/camera_publisher.dir/all] Error 2 gmake[1]: Waiting for unfinished jobs.... gmake[1]: [CMakeFiles/Makefile2:165: CMakeFiles/pub.dir/all] Error 2 gmake: [Makefile:146: all] Error 2

Failed <<< camera_publisher [1.10s, exited with code 2]

Summary: 0 packages finished [1.46s] 1 package failed: camera_publisher 1 package had stderr output: camera_publisher

`

I think it's a problem with lk4w2 but I haven't found a solution yet

Abdallah-Hesham99 commented 3 weeks ago

Have you installed the lk4w2 library?