kkimurak / ssl-setup

Bash script that setup the official RoboCup-SSL tools with required packages ( https://github.com/RoboCup-SSL/ )
4 stars 0 forks source link

Divide libraries list for each software #27

Closed kkimurak closed 5 years ago

kkimurak commented 5 years ago

closes #11

kkimurak commented 5 years ago

In Ubuntu 16.04LTS, logname doesn't works.

$ logname
logname: no login name

to support Ubuntu, I need to replace logname to other method (e.g whoami)

kkimurak commented 5 years ago

whoami is not suitable for the use - I want to get normal user name, not root. But this script must be run as root, so whoami must be root.
I need another way to get user name without logname ...

How about to get using directory name in /home ? e.g.

$ ls /home
user lost+found root

$ ls /home | grep -v root | grep -v lost+found
user

But this method also has a problem - may have multiple values if multiple user have been created...

kkimurak commented 5 years ago

BTW those problem are not related to this PR. I will create new issue and PR, then work on there.
I'll merge this after checking if works on Ubuntu 16.04LTS.

kkimurak commented 5 years ago

Build for ssl-vision failed (Ubuntu 16.04LTS) due to the version of OpenCV(3.0 or later required, but apt install libopencv-dev installs 2.4.x)

To solve this problem, build opencv from source.

$ cd path/to/temporal/
$ mkdir opencv && cd $_
$ wget https://github.com/opencv/opencv/archive/4.1.1.tar.gz 
$ tar xf 4.1.1.tar.gz
$ cd opencv
$ mkdir build && cd $_
$ cmake .. -G Ninja -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DBUILD_CUDA_STABS_=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_JASPER=OFF -DBUILD_OPENEXR=OFF -DBUILD_PACKAGE=ON -DBUILD_PERF=TESTS=OFF -DBUILD_SHARED=LIBS=ON -DBUILD_TBB=OFF -DBUILD_TESTS=OFF -DBUILD_WITH_DEBUG_INFO=ON -DBUILD_ZLIB=ON -DBUILD_openv_apps=ON -DBUILD_opencv_calib3d=ON-DBUILD_opencv_core=ON -DBUILD_opencv_world=OFF -DCMAKE_BUILD_TYPE=DEBUG -DWITH_1394=ON -DWITH_FFMPEG=ON -DWITH_JPEG=ON -DWITH_QT=ON -DWITH_V4L=ON  
$ ninja
$ sudo ninja install
kkimurak commented 5 years ago

I've checked works on Ubuntu 16.04 after

I can merge this now.
And then, I have to create issue about logname.