Error installing application from source, Qt 4.x not found

CMake Error at /usr/share/cmake/Modules/FindQt4.cmake:1316 (message):
  Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
  CMake/cdat_modules/qt4_pkg.cmake:2 (find_package)
  CMakeLists.txt:563 (include)

The application I am trying to install, UV-CDAT(https://github.com/UV-CDAT/uvcdat) does not implicitly support
openSUSE, which is why I am attempting to install it from source.

I have installed libqt4-devel, and my PATH is pointing towards usr/bin, where qmake and cmake are.

output from the command “qmake -v”:
QMake version 2.01a
Using Qt version 4.8.7 in a lib directory of miniconda (a package & environment manager + 3rd party python distribution) ie. not the default openSUSE one. I can see how this may be part of the problem.

Running the qmake -v in usr/bin:
QMake version 2.01a
Using Qt version 4.8.6 in /usr/lib64

I have cmake v 3.0.2 (in usr/bin), running on openSUSE 13.2

EDIT: I also found this https://github.com/ContinuumIO/anaconda-issues/issues/210, but I am currently using anaconda version 1.0.2.

Hi
This is likely the issue, you would need to check and define all the locations by the sounds of it, eg -DQT_QMAKE_EXECUTABLE=“/path/to/qmake”

Why using miniconda as opposed to openSUSE devel repository for packages? Or why not use docker for miniconda and/or uvcdat?

Thanks, that did the trick.

I haven’t tried out docker, will check it out.

On Thu 04 Feb 2016 01:16:02 PM CST, miktoki wrote:

malcolmlewis;2752216 Wrote:
> Hi
> This is likely the issue, you would need to check and define all the
> locations by the sounds of it, eg
> -DQT_QMAKE_EXECUTABLE=“/path/to/qmake”

Thanks, that did the trick.

malcolmlewis;2752216 Wrote:
>
> Why using miniconda as opposed to openSUSE devel repository for
> packages? Or why not use docker for miniconda and/or uvcdat?
>

I haven’t tried out docker, will check it out.

Hi
For uvcdat they include the docker file (based on ubuntu), just
extract the tarball, cd to the directory and run docker build . to get
started (assuming dicker is installed, running etc…)

Have a read here;
http://forums.opensuse.org/showthread.php?t=500460


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 SP1|GNOME 3.10.4|3.12.51-60.25-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

On Thu 04 Feb 2016 01:16:02 PM CST, miktoki wrote:

malcolmlewis;2752216 Wrote:
> Hi
> This is likely the issue, you would need to check and define all the
> locations by the sounds of it, eg
> -DQT_QMAKE_EXECUTABLE=“/path/to/qmake”

Thanks, that did the trick.

malcolmlewis;2752216 Wrote:
>
> Why using miniconda as opposed to openSUSE devel repository for
> packages? Or why not use docker for miniconda and/or uvcdat?
>

I haven’t tried out docker, will check it out.

Hi
For uvcdat they include the docker file (based on ubuntu), just
extract the tarball, cd to the directory and run docker build . to get
started (assuming dicker is installed, running etc…)

Have a read here;
http://forums.opensuse.org/showthread.php?t=500460


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 SP1|GNOME 3.10.4|3.12.51-60.25-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!