Move to the working folder.
$ cd ~/catkin_ws/src
Download and build.
$ git clone https://github.com/TheImagingSource/tiscamera.git
$ cd tiscamera
$ mkdir build
Following the official procedure, the next time I tried to install the dependencies and cmake tiscamera, I got an error.
$ ./scripts/install-dependencies.sh --runtime --compilation
$ cd build
$ cmake ..
The message after the command is as follows.
CMake Error at /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:415 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:593 (_pkg_check_modules_internal)
cmake/modules/FindGObjectIntrospection.cmake:39 (pkg_check_modules)
src/gobject/CMakeLists.txt:20 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/hogehoge /catkin_ws/src/tiscamera/build/CMakeFiles/CMakeOutput.log".
When I look it up,
$ ./scripts/install-dependencies.sh --runtime --compilation
I found a strange message at the time of execution.
Some packages could not be installed. Probably possible
Did you request no situation?(I'm using an unstable distribution
If)Required packages have not been created yet or moved from Incoming
It is possible that it has not been moved.
The following information may help resolve this issue:
The following packages have unmet dependencies:
libudev-dev :Dependence: libudev1 (= 237-3ubuntu10.42)But 237-3ubuntu10.43 is about to be installed
E:Unable to solve the problem. I have a broken change-protected package.
It seems that an error occurred around find_package of cmake because the package called libudev could not be installed.
In a situation where even configure cannot be done due to cmake error. Judging from the message, it seems that the cause is the incompatibility between the ubuntu environment at build time and the required packages (although I'm not sure). Therefore, downgrade to the version that matches the package. * It is unknown whether it applies to other people. If it goes smoothly, you can skip here as per the official document and proceed to the next.
$ sudo apt install aptitude
$ sudo aptitude install libudev-dev
aptitude is a handy tool that checks package compatibility and suggests solutions (also I'm not sure). Now when I run install, I get the following message:
The following new packages will be installed:
libudev-dev{b}
0 packages updated, 1 new installed, 0 planned to be removed, 0 not updated.
Archive 19.You need to get 1 kB. After unpacking, 203 kB of new disk space will be consumed.
The following packages have unfulfilled dependencies:
libudev-dev :Dependence: libudev1 (= 237-3ubuntu10.42) 237-3ubuntu10.43 is installed
The following actions will resolve these dependency issues:
Temporarily fix the following packages to the current version:
1) libudev-dev [Not installed]
Do you accept this solution? [Y/n/q/?]
This is unacceptable (emotional) as it is not a solution. .. What is the solution? I haven't solved it at all. If you type a comma here and enter, another option will be presented.
The following actions will resolve these dependency issues:
Downgrade the following packages:
1) libudev1 [237-3ubuntu10.43 (now) -> 237-3ubuntu10.42 (bionic-updates)]
2) udev [237-3ubuntu10.43 (now) -> 237-3ubuntu10.42 (bionic-updates)]
Do you accept this solution? [Y/n/q/?]
Wouldn't it be nice if you could show this from the beginning! Thank you for anything. While feeling a little uncomfortable about reverting the ubuntu version to the previous version, hit Y and press Enter. From here, return to the same procedure as the formula.
By the way, the god who taught me this aptitude is here.
$ git clone https://github.com/TheImagingSource/tiscamera.git
$ cd tiscamera
$ mkdir build
After that, it officially joins the continuation of the above command. Since I lowered the version of ubuntu, I need to install the dependency again and then cmake.
$ ./scripts/install-dependencies.sh --runtime --compilation
$ cd build
$ cmake ..
Success if the following message appears.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/hogehoge/catkin_ws/src/tiscamera/build
Next, make as officially.
$ make -j
If the following message appears at the end, it is successful.
[100%] Built target tcam-ctrl
To check the operation, connect the camera and execute the following command. Success if the window opens and the camera image can be confirmed. The USB3.0 camera made by Imageing Source was used to check the operation this time (details are hidden for various reasons).
$ gst-launch-1.0 tcambin ! video/x-raw,format=BGRx ! videoconvert ! ximagesink
Recommended Posts