Project

General

Profile

Problem installing on Ubuntu 18.04

Added by Borregaard Michael over 4 years ago

I downloaded the tar.gz archive, extracted it, cd’ed into the folder, and tried the recommended `sh createlaunher.sh` command from http://rdinnovation.onf.fr/projects/computree/wiki/En_installation_v4, with the error `michael@office:~/Documents/computree_4.0.759_ubuntu64$ sh createlauncher.sh; sh: 0: Can’t open createlauncher.sh`. There’s an executable “CompuTreeGui in the folder, but
```
michael@office:~/Documents/computree_4.0.759_ubuntu64$ ./CompuTreeGui
./CompuTreeGui: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
```
What am I doing wrong?

Thanks!


Replies (22)

RE: Problem installing on Ubuntu 18.04 - Added by Tremblay Jean-François over 4 years ago

sudo apt-get libpng
This should help

RE: Problem installing on Ubuntu 18.04 - Added by Borregaard Michael over 4 years ago

Thanks, but I believe I already have libpng - I get

michael@office:sudo apt-get install libpng-dev
libpng-dev is already the newest version (1.6.34-1ubuntu0.18.04.1)

RE: Problem installing on Ubuntu 18.04 - Added by Borregaard Michael over 4 years ago

Ahh, libpng12 is a different library. I was able to install that with

wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng \ libpng12-0_1.2.54-1ubuntu1_amd64.deb \
  && dpkg -i /tmp/libpng12.deb \
  && rm /tmp/libpng12.deb

but then get
michael@office:~/Documents/computree_4.0.759_ubuntu64$ ./CompuTreeGui
./CompuTreeGui: error while loading shared libraries: libicui18n.so.55: cannot open shared object file: No such file or directory

It appears that there’s a number of dependencies of this package, that (of course) don’t get installed by simply unpackaging the directory. Is there another recommended installation procedure? Or are there configure/make files allowing to build computree locally from source?

RE: Problem installing on Ubuntu 18.04 - Added by Hackenberg Jan over 4 years ago

Hijacking this topic
Has anyone a successful compilation of at least Computree with PCL, OpenCV and GSL under Ubuntu 18.04? Please confirm if this is solvable, as I am planning to switch my OS also. I prefer to install 18.04 over 16.04, but if there are problems which are (yet) unsolved I would like to know in advance.
Cheers
Jan

RE: Problem installing on Ubuntu 18.04 - Added by Manso Rubén over 4 years ago

Hi Jan,

I’ve been struggling to compile CT on Ubuntu 18 during the last few days. I believe I’ve closely followed the steps provided in the development wiki.

I’m describing below the issues I found, which to my poor understanding must be path-related, perhaps on my side, and surely easy to solve.

(i) Issue 1

I couldn’t get all.pro built in the first place. I thought the trouble may be with opencv_default_path.pri.

This is what you get when retrieving the files from the repository

unix {
OPENCV_BASE_PATH = "/usr/”
OPENCV_INC_PATH = "$${OPENCV_BASE_PATH}include”
OPENCV_LIBS_PATH = "$${OPENCV_BASE_PATH}lib/x86_64-linux-gnu”
OPENCV_VERSION = 320
}

I managed to build the project by editing the file as

unix {
OPENCV_BASE_PATH = "/usr/local/”
OPENCV_INC_PATH = "$${OPENCV_BASE_PATH}include”
OPENCV_LIBS_PATH = "$${OPENCV_BASE_PATH}lib”
OPENCV_VERSION = 330
}

[Note that I changed the OpenCV version as well (got 3.3.0)]

I also modified the geos_default_path.pri as it seems the library was being sought in a different location to the default path:

unix {
GEOS_BASE_PATH = "/usr/”
GEOS_INC_PATH = "$${GEOS_BASE_PATH}include”
GEOS_LIBS_PATH = "$${GEOS_BASE_PATH}lib/x86_64-linux-gnu”
}

(ii) Issue 2

Once compiled, I launch CT from qt_creator. CT initializes but I get a number of errors such as

Cannot load library /home/ruben/Downloads/Computree/ComputreeInstallRelease/plugins/libplug_onf.so: (libctlibfilters.so: cannot open shared object file: No such file or directory)

Most of the libraries that can’t be loaded are actually in /usr/share/computree/ComputreeInstallDebug. If I manually move them to /usr/local/lib, then the errors disappear.

###############

Any help would be hearty appreciated and will hopefully answer Jan’s question.

RE: Problem installing on Ubuntu 18.04 - Added by Manso Rubén over 4 years ago

Hi Jan,

I’ve been struggling to compile CT on Ubuntu 18 during the last few days. I believe I’ve closely followed the steps provided in the development wiki.

I’m describing below the issues I found, which to my poor understanding must be path-related, perhaps on my side, and surely easy to solve.

(i) Issue 1

I couldn’t get all.pro built in the first place. I thought the trouble may be with opencv_default_path.pri.

This is what you get when retrieving the files from the repository

unix {
OPENCV_BASE_PATH = "/usr/”
OPENCV_INC_PATH = "$${OPENCV_BASE_PATH}include”
OPENCV_LIBS_PATH = "$${OPENCV_BASE_PATH}lib/x86_64-linux-gnu”
OPENCV_VERSION = 320
}

I managed to build the project by editing the file as

unix {
OPENCV_BASE_PATH = "/usr/local/”
OPENCV_INC_PATH = "$${OPENCV_BASE_PATH}include”
OPENCV_LIBS_PATH = "$${OPENCV_BASE_PATH}lib”
OPENCV_VERSION = 330
}

[Note that I changed the OpenCV version as well (got 3.3.0)]

I also modified the geos_default_path.pri as it seems the library was being sought in a different location to the default path:

unix {
GEOS_BASE_PATH = "/usr/”
GEOS_INC_PATH = "$${GEOS_BASE_PATH}include”
GEOS_LIBS_PATH = "$${GEOS_BASE_PATH}lib/x86_64-linux-gnu”
}

(ii) Issue 2

Once compiled, I launch CT from qt_creator. CT initializes but I get a number of errors such as

Cannot load library /home/ruben/Downloads/Computree/ComputreeInstallRelease/plugins/libplug_onf.so: (libctlibfilters.so: cannot open shared object file: No such file or directory)

Most of the libraries that can’t be loaded are actually in /usr/share/computree/ComputreeInstallDebug. If I manually move them to /usr/local/lib, then the errors disappear.

###############

Any help would be hearty appreciated and will hopefully answer Jan’s question.

RE: Problem installing on Ubuntu 18.04 - Added by Piboule Alexandre over 4 years ago

Hi,

New Computree compilation procedure for Ubuntu 18.04 is now available:

http://rdinnovation.onf.fr/projects/computreedevtools/wiki/En_Ubuntu_1804

Best regards.
Alexandre Piboule.

RE: Problem installing on Ubuntu 18.04 - Added by Borregaard Michael over 4 years ago

That’s great! Unfortunately the link tells me that I’m not authorized to view it?

RE: Problem installing on Ubuntu 18.04 - Added by Hackenberg Jan over 4 years ago

You might need development access rights with your CT forum account. I can access to wiki link at least.
@ Alexandre, thanks a lot, I will try out on weekend compilation. Will give you confirmation after weekend.

RE: Problem installing on Ubuntu 18.04 - Added by Manso Rubén over 4 years ago

Hi there,

I’ve been trying to compile CT under Ubuntu 18.04.1 LTS following the new instructions posted by Alexandre (merci tout plein!).

The following two issues seem to stop the process in my case:

./Computree/pluginonf/pluginonf/tools/onf_coregistration_monnetmermin2014.h:28: error: extra qualification ‘ONF_CoRegistration_MonnetMermin2014::’ on member ‘computeTranslation’ [-fpermissive]
static void ONF_CoRegistration_MonnetMermin2014::computeTranslation(CT_Image2D<float>* dhm, QList<ONF_CoRegistration_MonnetMermin2014> treePositions, double &centerX, double &centerY, double radius);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

./Computree/pluginonf/pluginonf/tools/onf_coregistration_monnetmermin2014.cpp:3: error: definition of implicitly-declared ‘constexpr ONF_CoRegistration_MonnetMermin2014::ONF_CoRegistration_MonnetMermin2014()’
ONF_CoRegistration_MonnetMermin2014::ONF_CoRegistration_MonnetMermin2014()
^
Any clue?

Many thanks

Rubén

RE: Problem installing on Ubuntu 18.04 - Added by Piboule Alexandre over 4 years ago

Hi,

Sorry I’ve uploaded by accident a work in progress class.

I just have done a commit that should solve the problem.

Best regards.
Alexandre Piboule.

RE: Problem installing on Ubuntu 18.04 - Added by Manso Rubén over 4 years ago

Salut Alexandre,

Thanks for the update. I’ve now been able to successfully compile all.pro.

However, CT returns the following error at the running stage:

Cannot load library ./Computree/ComputreeInstallRelease/plugins/libplug_base.so: (libwebp.so.5: cannot open shared object file: No such file or directory)

Something wrong at my end perhaps?

Thanks in advance.

Ruben

RE: Problem installing on Ubuntu 18.04 - Added by Tremblay Jean-François over 4 years ago

Bonjour tout le monde,

Just to give more feedback to Alexandre, I managed to build and run CT from the most recent commit. So Manso’s problem is probably specific to his system.

RE: Problem installing on Ubuntu 18.04 - Added by Borregaard Michael over 4 years ago

Sorry for not giving feedback here, my machine crashed last week. I’ve reinstalled 18.04 yesterday and will try this again on Friday. Glad to hear it’s sounding like it’s working

RE: Problem installing on Ubuntu 18.04 - Added by Hackenberg Jan over 4 years ago

Hi

I successfully compiled CT on Kubuntu 18.04 with recommended setup in linked wiki both in debug and release. All compiled plugins seem to be available in both modes.

@ Manso: Did you follow step 4 from the wiki? I missed it first and had similar error.

@ Alexandre: thanks for the great work. You seem to have released CT6. Is it recommended to use? Could you please do an announcement about such major releases?

I also have two wiki fixes/improvement suggestion:
2. Download attachment:kit_dev_linux.zip, which contains : The hyperlink is just available on French Wiki. People might find it hard to download.
4. In the project/run tab, in the “Runtime environment” section, add” ;.” at the end of the variables LD_LIBRARY_PATH _You could give an example here best. I missread first, but then it worked.

Could you also make translation files available please? I have now CT in French. English is a lot easier for me, even if translation files are incomplete.

Cheers
Jan

RE: Problem installing on Ubuntu 18.04 - Added by Hackenberg Jan over 4 years ago

Hi

I successfully compiled CT on Kubuntu 18.04 with recommended setup in linked wiki both in debug and release. All compiled plugins seem to be available in both modes.

@ Manso: Did you follow step 4 from the wiki? I missed it first and had similar error.

@ Alexandre: thanks for the great work. You seem to have released CT6. Is it recommended to use? Could you please do an announcement about such major releases?

I also have two wiki fixes/improvement suggestion:
2. Download attachment:kit_dev_linux.zip, which contains : The hyperlink is just available on French Wiki. People might find it hard to download.
4. In the project/run tab, in the “Runtime environment” section, add” ;.” at the end of the variables LD_LIBRARY_PATH _You could give an example here best. I missread first, but then it worked.

Could you also make translation files available please? I have now CT in French. English is a lot easier for me, even if translation files are incomplete.

Cheers
Jan

RE: Problem installing on Ubuntu 18.04 - Added by Manso Rubén over 4 years ago

Hi there,

Thanks Jan and Jean-Francois for your posts.

Yes, I changed the LD_LIBRARY_PATH variable as Alexandre suggested in step 4. I may have misunderstood what the change was about though:

My original LD_LIBRARY_PATH was:

/usr/lib/x86_64-linux-gnu:/home/ruben/Documents/DocumentsFR/projects/lidar/softwarePointCloudData/Computree/computreev5/AMKgl/libQGLViewer-2.6.4/QGLViewer:/home/ruben/Documents/DocumentsFR/projects/lidar/softwarePointCloudData/Computree/computreev5/AMKgl/compiled

And then I added “;.” at the end like this

/usr/lib/x86_64-linux-gnu:/home/ruben/Documents/DocumentsFR/projects/lidar/softwarePointCloudData/Computree/computreev5/AMKgl/libQGLViewer-2.6.4/QGLViewer:/home/ruben/Documents/DocumentsFR/projects/lidar/softwarePointCloudData/Computree/computreev5/AMKgl/compiled;.

####################

Probably irrelevant to this issue, I also found out that the geos_default_path.pri wasn’t properly pointing to where the libraries are. I got the following warning when qtcreator reads all.pro at the beginning:

Project WARNING: DEPENDENCY CHECK - GEOS - Libraries not found in specified path (geos_default_path.pri)
Project WARNING: Library /usr/local/lib/libgeos was not found

My geos_default_path.pri is

unix {
GEOS_BASE_PATH = "/usr/local/”

GEOS_INC_PATH = "$${GEOS_BASE_PATH}include" 
GEOS_LIBS_PATH = "$${GEOS_BASE_PATH}lib"
}

So I created a geos_user_path.pri like this

unix {
GEOS_BASE_PATH = "/usr/"

GEOS_INC_PATH = "$${GEOS_BASE_PATH}include/geos/" 
GEOS_LIBS_PATH = "$${GEOS_BASE_PATH}lib/x86_64-linux-gnu/"
}

And the warning disappeared.

###########################

Thanks a lot in advance.

Ruben

RE: Problem installing on Ubuntu 18.04 - Added by Piboule Alexandre over 4 years ago

Hi,

@Jan

There is no working CT6 version yet (work in progress, should not be visible for now... will correct that). Or course it will be an annoucement when available.

For language, all translation files are on the svn. But you need to execute the script that compile langage files. It is available here : computreev5/scripts/unix_updateLanguage.sh
I will add this informations to the compilation wiki.

Best regards.
Alexandre Piboule.

RE: Problem installing on Ubuntu 18.04 - Added by Borregaard Michael over 4 years ago

Hi, I tried installing this today, but got stuck on the part after opening QtCreator. There is no “project” tab, no “project/run” tab, and I can’t see anyway to run qmake. Am I on a wrong version perhaps? I’m on QtCreator 4.5.2 . Sorry I have no experience with building Qt applications.

Thanks

RE: Problem installing on Ubuntu 18.04 - Added by Hackenberg Jan over 4 years ago

@ Borregaard Michael

You need to import the downloaded pro file as well, not only starting QTCreator. Otherwise please do a basic tutorial from QT homepage to set up a "hello world".

Jan

RE: Problem installing on Ubuntu 18.04 - Added by Hackenberg Jan over 4 years ago

@ Borregaard Michael

You need to import the downloaded pro file as well, not only starting QTCreator. Otherwise please do a basic tutorial from QT homepage to set up a "hello world".

Jan

RE: Problem installing on Ubuntu 18.04 - Added by Hackenberg Jan over 4 years ago

@ Piboule Alexandre
Thanks for the fast update. So I have the steps translated, but the menu items still say Fichier, Edition, etc. I think in my last windows compilation that was not the case.
Jan

    (1-22/22)