[MacPorts] #55288: QGIS Fails to Configure/Install - CMAKE cannot find FindQJSON
MacPorts
noreply at macports.org
Fri Nov 10 14:28:52 UTC 2017
#55288: QGIS Fails to Configure/Install - CMAKE cannot find FindQJSON
------------------------+-------------------
Reporter: jambonrose | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.2
Keywords: | Port: QGIS
------------------------+-------------------
Running macOS 10.11.6 (15G17023)
{{{#!bash
$ /usr/bin/xcodebuild -version
Xcode 8.2.1
Build version 8C1002
$ port version
Version: 2.4.2
$ port installed
The following ports are currently installed:
bash @4.4.12_0 (active)
expat @2.2.5_0 (active)
gettext @0.19.8.1_0 (active)
libiconv @1.15_0 (active)
ncurses @6.0-20170916_0 (active)
$ echo $CFLAGS
-I/opt/local/include
$ echo $LDFLAGS
-L/opt/local/lib
$ sudo port clean qgis && sudo port install qgis
}}}
I've attached the output of the last command, as it is quite long. The
output directs me to a QGIS log, which in turn directs me to a CMAKE log,
so I have attached both of those as well.
I am not familiar with the logs, but a few items jump out at me.
The first two are failing substitutions, first in qwt (seen in terminal
output), and then in qgis (seen in the qgis log).
{{{
Warning: reinplace s|QT_STATIC_CONST|static const| didn't change anything
in
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_qwt/qwt61/work/qwt-6.1.3/src/qwt_scale_map.cpp
Warning: reinplace s|QT_STATIC_CONST|static const| didn't change anything
in
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_qwt/qwt61/work/qwt-6.1.3/src/qwt_scale_map.h
}}}
{{{
:info:configure ---> Patching FindPythonLibrary.cmake:
s|Versions/Current|Versions/3.6|
:debug:configure Executing reinplace: /usr/bin/sed -E
s|Versions/Current|Versions/3.6|
</opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work
/QGIS-2_18_13/cmake/FindPythonLibrary.cmake >@file10
:warn:configure reinplace s|Versions/Current|Versions/3.6| didn't change
anything in
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_qgis/QGIS/work
/QGIS-2_18_13/cmake/FindPythonLibrary.cmake
}}}
The second is a warning during configuration, found in the qgis log.
{{{
:info:configure CMake Warning at CMakeLists.txt:320 (FIND_PACKAGE):
:info:configure By not providing "FindQJSON.cmake" in CMAKE_MODULE_PATH
this project has
:info:configure asked CMake to find a package configuration file
provided by "QJSON", but
:info:configure CMake did not find one.
:info:configure Could not find a package configuration file provided by
"QJSON" with any of
:info:configure the following names:
:info:configure QJSONConfig.cmake
:info:configure qjson-config.cmake
:info:configure Add the installation prefix of "QJSON" to
CMAKE_PREFIX_PATH or set
:info:configure "QJSON_DIR" to a directory containing one of the above
files. If "QJSON"
:info:configure provides a separate development package or SDK, be sure
it has been
:info:configure installed.
}}}
I've tried setting both CMAKE_PREFIX_PATH and QJSON_DIR, but as I don't
know what it's expecting, my efforts haven't yielded any changes yet.
--
Ticket URL: <https://trac.macports.org/ticket/55288>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list