Error: Checking for Qt: ERROR: error linking Qt application!

Ubuntu 18.04 + Mrtrix3

Use:

export PATH=/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

 Error likes:

(base) mri@mri:~/mrtrix3$ ./configure

MRtrix build type requested: release version

WARNING: anaconda/miniconda detected in PATH ("/home/mri/anaconda3/bin") - removed to avoid conflicts
WARNING: anaconda/miniconda detected in PATH ("/home/mri/anaconda3/condabin") - removed to avoid conflicts

NOTE: if you intend to build with anaconda/miniconda (not recommended), pass the -conda flag to ./configure

Detecting OS: linux
Looking for compiler [clang++]: not found
Looking for compiler [g++]: g++ (conda-forge gcc 11.3.0-19) 11.3.0
Checking for C++11 compliance: ok
Checking shared library generation: ok
Detecting pointer size: 64 bit
Detecting byte order: little-endian
Checking for variable-length array support: ok
Checking for non-POD variable-length array support: ok
Checking for ::max_align_t: 16 bytes
Checking for std::max_align_t: 16 bytes
Checking for Eigen3 library: 3.3.4
Checking for Eigen3 Unsupported: Present
Checking for zlib compression library: 1.2.13
Checking for "JSON for Modern C++" requirements: ok
Checking for TIFF library: not found - TIFF support disabled
Checking for PNG library: not found - PNG support disabled
Checking for FFTW library: not found - FFTW support disabled
Checking for Qt moc: moc (version 5.15.6)
Checking for Qt qmake: qmake (version 5.15.6)
Checking for Qt rcc: rcc (version 5.15.6)
Checking for Qt:
ERROR: error linking Qt application!

  See the file 'configure.log' for details. If this doesn't help and you need
  further assistance, please post on the MRtrix3 community forum
  (http://community.mrtrix.org/), and make sure to include the full contents of
  the 'configure.log' file.

Error log:

EXEC <<
CMD: g++ -Wl,--sort-common,--as-needed -pthread -L/usr/local/lib -lz qt_moc.o qt.o -o qt /usr/local/fsl/lib/libQt5OpenGL.so /usr/local/fsl/lib/libQt5Svg.so /usr/local/fsl/lib/libQt5Widgets.so /usr/local/fsl/lib/libQt5Gui.so /usr/local/fsl/lib/libQt5Network.so /usr/local/fsl/lib/libQt5Core.so -L/usr/lib64 -lGL -lpthread
EXIT: 1
STDERR:
/usr/local/fsl/bin/../lib/gcc/x86_64-conda-linux-gnu/11.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: cannot find -lGL: No such file or directory
collect2: error: ld returned 1 exit status
>>


ERROR: error linking Qt application!

  See the file 'configure.log' for details. If this doesn't help and you need
  further assistance, please post on the MRtrix3 community forum
  (http://community.mrtrix.org/), and make sure to include the full contents of
  the 'configure.log' file.

Reference: Then, I search this issue on Google, find a similar one https://community.mrtrix.org/t/error-error-linking-qt-application-ubuntu-22-04/6401/2

Soluion:

(base) mri@mri:~/mrtrix3$ ./configure

MRtrix build type requested: release version

Detecting OS: linux
Looking for compiler [clang++]: not found
Looking for compiler [g++]: g++ (Ubuntu 6.5.0-2ubuntu1~18.04) 6.5.0 20181026
Checking for C++11 compliance: ok
Checking shared library generation: ok
Detecting pointer size: 64 bit
Detecting byte order: little-endian
Checking for variable-length array support: ok
Checking for non-POD variable-length array support: ok
Checking for ::max_align_t: 16 bytes
Checking for std::max_align_t: 16 bytes
Checking for Eigen3 library: 3.3.4
Checking for Eigen3 Unsupported: Present
Checking for zlib compression library: 1.2.11
Checking for "JSON for Modern C++" requirements: ok
Checking for TIFF library: LIBTIFF, Version 4.0.9
Checking for PNG library: Header: 1.6.34; library: 1.6.34
Checking for FFTW library: fftw-3.3.7-sse2-avx
Checking for Qt moc: moc (version 4.8.7)
Checking for Qt qmake: qmake (version 4.8.7)
Checking for Qt rcc: rcc (version 4.8.7)
Checking for Qt: 4.8.7

writing configuration to file './config': ok

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值