Run tiscamera on Ubuntu 18.04

Operating environment, etc.

Reference URL

Installation

Move to the working folder.

$ cd ~/catkin_ws/src

Download and build.

$ git clone https://github.com/TheImagingSource/tiscamera.git
$ cd tiscamera
$ mkdir build

A mysterious defect occurs

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.

Steps to solve problems that cannot be CMAKE

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.

Install dependencies and CMAKE

$ 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

Operation check

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

Run tiscamera on Ubuntu 18.04
Run chromium-mir-kiosk on Ubuntu Core
Run java applet on ubuntu
Run Eclipse CDT on Ubuntu
tmux on Ubuntu
Until you run CuPy (v11.1) on Ubuntu 20.04
Until you run apache on ubuntu on docker
Run Ubuntu + ROS with Docker on Mac
Screen recording on Ubuntu 20.04
Web Bluetooth on Ubuntu20.04
Run STS4 on Mac
Try DisplayLink on Ubuntu 20.04
Reinstall Kubernetes on Ubuntu 19.10
Use Flutter on Ubuntu
Install pyqt5 on ubuntu
Test run on rails
Run PostgreSQL on Java
Setting JAVA_HOME on Ubuntu
Install Autoware on Ubuntu 18.04.5
Put JetBrains on Ubuntu
Use mkdir on ubuntu
Use cpplapack on ubuntu
ubuntu on wsl part 10
Install Homebrew on Ubuntu 20.04
Build Zabbix on Ubuntu 20.04
How to run NullpoMino 7.5.0 on Ubuntu 20.04.1 64bit version
Run phpunit on Docker
Create SSL certificate on Ubuntu 18.04
Put Ubuntu 20.04.1 on Raspberry Pi 4
Run VS Code on Docker
Build VNC Server on Ubuntu 20.04
Install Docker on Ubuntu Server 20.04
Ubuntu on Windows Community Preview
Japanese input on Ubuntu20.04 Desktop
Run openvpn on Docker (windows)
Oracle Java 8 on Docker Ubuntu
Install zabbix agent (5.0) on Ubuntu 18.04
Install Arudino IDE on Ubuntu 20
Record video on ubuntu18.04 LTS
Introduced knowledge (wiki) on Ubuntu
Installing OpenMX on Ubuntu 18.04.5 LTS
Ruby installation on WSL2 + Ubuntu 20.04
Install Ubuntu Desktop 20.10 on RaspberryPi4
Install raspi-config on Ubuntu 20.04 (LTS)
Install WordPress 5.5 on Ubuntu 20.04 LTS
Set up ansible-playbook on Ubuntu 20.04
Note: Install PostgreSQL 9.5 on Ubuntu 18.04
Run mruby / c on PSoC 5
Run SSE (Server-Sent-Event) samples on docker
Until you put Ubuntu 20 on Windows 10 Home and WSL2 and run Docker
Install AWS IoT Greengrass on Ubuntu
Using Azure IOT Hub on Ubuntu 20.10.
Installing Ruby + Rails on Ubuntu 18.04 (rbenv)
Steps to run docker on Mac
Install JDK and JRE on Ubuntu 16.10
Run puppeteer-core on Heroku (Docker edition)
Install ngrok on ubuntu16.04 using Vagrant
Build the latest Samba 4 on Ubuntu 20.04
Run React on a Docker container
Run the AWS CLI on Docker
Run GUI application on Docker container