zturtleman / mm3d

Maverick Model 3D is a 3D model editor and animator for games.
https://clover.moe/mm3d
GNU General Public License v2.0
110 stars 22 forks source link

configure fails on Arch Linux #161

Closed zturtleman closed 2 years ago

zturtleman commented 2 years ago

Originally posted by @InFerYes in https://github.com/zturtleman/mm3d/issues/44#issuecomment-891216578

I have this error on Arch Linux.

checking for OpenGL... yes
checking for Qt... no
checking Qt OpenGL... failure
configure: error: Failed to link Qt with OpenGL support.

When I use ./configure --with-Qt-include-dir=/usr/lib64 I get

checking for Qt... yes:
    QT_CXXFLAGS=-I/usr/lib64
    QT_DIR=/usr
    QT_LIBS=-L/usr/lib64 -lQt5Core -lQt5Gui -lQt5Widgets -lQt5OpenGL
    QT_UIC=/usr/bin/uic
    QT_MOC=/usr/bin/moc
    QT_RCC=/usr/bin/rcc
    QT_LRELEASE=/usr/bin/lrelease
    QT_MACDEPLOYQT=
checking correct functioning of Qt installation... cat: bnv_qt_test.cpp: No such file or directory
failure
configure: error: Failed to find matching components of a complete
                  Qt installation. Try using more options,
                  see ./configure --help.
% qmake-qt5 --version
QMake version 3.1
Using Qt version 5.15.2 in /usr/lib

How to proceed?

zturtleman commented 2 years ago

I have no idea about the message cat: bnv_qt_test.cpp: No such file or directory. Though -lQt5OpenGL shows this is older Maverick code.

I installed Arch Linux and fixed detecting the include path for Qt in configure. It builds and runs for me.

Try installing Arch Linux build dependencies (now listed in the README file)

sudo pacman -S autoconf automake make gcc qt5-base qt5-tools glu

and set the correct Qt include directory.

./configure --with-Qt-include-dir=/usr/include/qt

If this still fails, trying using the latest source code with just plain ./configure.

sudo pacman -S git
git clone http://github.com/zturtleman/mm3d.git ~/mm3d
cd ~/mm3d
./autogen.sh
./configure
make
sudo make install
InFerYes commented 2 years ago

I already have these packages installed:

warning: autoconf-2.71-1 is up to date -- reinstalling
warning: automake-1.16.3-1 is up to date -- reinstalling
warning: make-4.3-3 is up to date -- reinstalling
warning: gcc-11.1.0-1 is up to date -- reinstalling
warning: qt5-base-5.15.2+kde+r210-1 is up to date -- reinstalling
warning: qt5-tools-5.15.2+kde+r17-3 is up to date -- reinstalling
warning: glu-9.0.2-1 is up to date -- reinstalling

Using ./configure --with-Qt-include-dir=/usr/include/qt did the trick for me!

image

Many thanks for the swift resolution.

zturtleman commented 2 years ago

You're welcome.