CBICA / CaPTk

Cancer Imaging Phenomics Toolkit (CaPTk) is a software platform to perform image analysis and predictive modeling tasks. Documentation: https://cbica.github.io/CaPTk
https://www.cbica.upenn.edu/captk
Other
179 stars 64 forks source link

CaPTk does not work correctly on Ubuntu 20.04 #1336

Open sarthakpati opened 4 years ago

sarthakpati commented 4 years ago

Describe the bug I first saw this problem with a collaborator who is running this application.

To Reproduce Steps to reproduce the behavior:

BraTSPipeline -u

Error message:

symbol lookup error: <some-random-path>/BraTSPipeline: undefined symbol: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm, version Qt_5

Expected behavior This should work.

CaPTk Version 1.8.0

Desktop (please complete the following information):

Additional context Possibly related to #1229

sarthakpati commented 4 years ago

Probable reason [ref]:

Seems like this symbol was introduced only recently (2018ish):

https://abi-laboratory.pro/index.php?view=navigator&symbol=_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm#result

sarthakpati commented 3 years ago

A possible solution is to downgrade default GCC:

echo "deb http://archive.ubuntu.com/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/xenial.list
sudo apt-get update
sudo update-alternatives --remove-all gcc
sudo update-alternatives --remove-all g++
sudo apt-get install gcc-5 g++-5
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 10