Install libjasper in Ubuntu 18.04

When upgrade to Ubuntu 18.04, some libraries are still needed for OpenCV 3.4 and others, but not provided by the new OS. We can install it like this:

sudo add-apt-repository “deb http://security.ubuntu.com/ubuntu xenial-security main”
sudo apt update
sudo apt install libjasper1 libjasper-dev

Advertisement

Start Synergy BEFORE logging in

For 16.04 create the following file (it doesn’t exist)

/etc/lightdm/lightdm.conf

with the contents:

[Seat:*]
autologin-user=

[SeatDefaults]
greeter-setup-script=/usr/bin/synergyc <hostname>

Ref: https://askubuntu.com/questions/918137/start-synergy-or-any-application-before-logging-in-ubuntu-16-04-2-lts

Install MITSUBA on Linux 16.04

**************************************************************************

Compilation error due to introuvable file “bind_member_variable.hpp”

SOLUTION: modify « src/bsdfs/irawan.h » :

Line : #if BOOST_VERSION >= 106000

Becomes : #if BOOST_VERSION >= 105800

RE : http://stackoverflow.com/questions/36807135/how-to-install-bind-member-variable-hpp-in-ubuntu-16-04

**********************************************************************************

Scons –j 8

**********************************************************************************

Error when compiling « DScalar1 »

SOLUTION: modify « include/mitsuba/core/autodiff.h »

Add the following definition in the  “DScalar1”:

inline DScalar1& operator*=(const DScalar1 &v) {

    grad = v.grad * value + grad * v.value;

    value *= v.value;

    return *this;

}

RE : https://github.com/mitsuba-renderer/mitsuba/issues/3

via Install MITSUBA on Linux 16.04