QTAH_QMAKE doesn't seem to be honored, qmake still not found
I'm on Fedora 23 Workstation, and have qmake
installed as qmake-qt5
(somehow. I think it's because of the distribution).
What I did and what I got
------$ cabal install --haddock-all qtah-qt5
Resolving dependencies...
Configuring qtah-cpp-qt5-0.1.2...
Failed to install qtah-cpp-qt5-0.1.2
Build log ( /home/wang_rk/.cabal/logs/qtah-cpp-qt5-0.1.2.log ):
[1 of 1] Compiling Main ( /tmp/cabal-tmp-12194/qtah-cpp-qt5-0.1.2/dist/setup/setup.hs, /tmp/cabal-tmp-12194/qtah-cpp-qt5-0.1.2/dist/setup/Main.o )
Linking /tmp/cabal-tmp-12194/qtah-cpp-qt5-0.1.2/dist/setup/setup ...
Configuring qtah-cpp-qt5-0.1.2...
qtah-cpp-qt5: Requesting Qt 5 because of package name.
setup: '/home/wang_rk/.cabal/bin/qtah-generator' exited with an error:
qtah-generator: user error (qtah-generator: Can't find qmake. Please ensure
qmake is installed and set QTAH_QMAKE to qmake's path.)
cabal: Error: some packages failed to install:
qtah-cpp-qt5-0.1.2 failed during the configure step. The exception was:
ExitFailure 1
qtah-qt5-0.1.1 depends on qtah-cpp-qt5-0.1.2 which failed to install.
Ouch, gotta tell it about qmake-qt5
.
------$ env QTAH_QMAKE=`which qmake-qt5` cabal install --haddock-all qtah-qt5
Resolving dependencies...
Configuring qtah-cpp-qt5-0.1.2...
Failed to install qtah-cpp-qt5-0.1.2
Build log ( /home/wang_rk/.cabal/logs/qtah-cpp-qt5-0.1.2.log ):
[1 of 1] Compiling Main ( /tmp/cabal-tmp-12339/qtah-cpp-qt5-0.1.2/dist/setup/setup.hs, /tmp/cabal-tmp-12339/qtah-cpp-qt5-0.1.2/dist/setup/Main.o )
Linking /tmp/cabal-tmp-12339/qtah-cpp-qt5-0.1.2/dist/setup/setup ...
Configuring qtah-cpp-qt5-0.1.2...
qtah-cpp-qt5: Requesting Qt 5 because of package name.
qtah-cpp-qt5: Using Qt 5.6.
qtah-listener-gen: Generating C++ listener classes.
setup: The program 'qmake' is required but it could not be found
cabal: Error: some packages failed to install:
qtah-cpp-qt5-0.1.2 failed during the configure step. The exception was:
ExitFailure 1
qtah-qt5-0.1.1 depends on qtah-cpp-qt5-0.1.2 which failed to install.
What I expect
I would expect the compilation to continue to completion. I had to create a symbolic link in a directory in $PATH
to compile qtah-qt5
.