Bug report #409
New QGIS SVN-HEAD compile error in mapserver_export
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | Gary Sherman | ||
Category: | Build/Install | ||
Affected QGIS version: | Regression?: | No | |
Operating System: | All | Easy fix?: | No |
Pull Request or Patch supplied: | Resolution: | fixed | |
Crashes QGIS or corrupts data: | Copied to github as #: | 10468 |
Description
Hi,
some recent change seems to break the compilation:
...
qgslegend.cpp: In member function void [[QgsLegend]]::addLayer(QgsMapLayer*)':
/hardmnt/bartok0/ssi/neteler/software/qgis_unstable/src/legend'
qgslegend.cpp:527: error: 'class [[QgsLegendLayerFileGroup]]' has no member named 'setHidden'
qgslegend.cpp: In member function @bool [[QgsLegend]]::readXML(QDomNode&)':
qgslegend.cpp:1054: error: 'class [[QgsLegendLayerFileGroup]]' has no member named 'setHidden'
qgslegend.cpp:1054: error: 'class [[QgsLegendLayerFileGroup]]' has no member named 'setHidden'
qgslegend.cpp: In member function @void [[QgsLegend]]::showLegendLayerFileGroups()':
qgslegend.cpp:1668: error: 'class [[QgsLegendLayerFileGroup]]' has no member named 'setHidden'
maker4: *** [libqgis_legend_la-qgslegend.lo] Error 1
maker4: Leaving directory
maker3: * [all] Error 2
maker3: Leaving directory /hardmnt/bartok0/ssi/neteler/software/qgis_unstable/src/legend'
/hardmnt/bartok0/ssi/neteler/software/qgis_unstable/src'
maker2: *** [all-recursive] Error 1
maker2: Leaving directory
maker1: [all-recursive] Error 1
maker1: Leaving directory @/hardmnt/bartok0/ssi/neteler/software/qgis_unstable'
make: ** [all] Error 2
I am using qt4-devel-4.1.0-2...
Best,
markus
History
#1 Updated by Marco Hugentobler almost 18 years ago
Hi Markus,
This is because of differences in qt versions. I think the minimum version is now 4.2 QTreeWidgetItem::setHidden has been added with 4.2
Marco
#2 Updated by neteler-itc-it - almost 18 years ago
Thanks, Marco.
After update to qt4.2 and 'make distclean', I
get a new error:
bartok:mapserver_export[19962.56] make
make all-am
maker1: Entering directory /hardmnt/bartok0/ssi/neteler/software/qgis_unstable/tools/mapserver_export'
/hardmnt/bartok0/ssi/neteler/software/qgis_unstable/tools/mapserver_export'
/bin/sh ../../libtool --mode=link --tag=CXX g++ -g -O2 -o msexport msexport-qgsmapserverexport.o msexport-main.o msexport-msexport_wrap.o msexport-qgsmapserverexport.moc.o -L/usr/lib64/qt4/lib64 -lQtCore -lQt3Support -lQtGui -lQtNetwork -lQtSvg -lQtCore -lQt3Support -lQtGui -lQtNetwork -lQtXml -lQtSvg -lQtTest -lQtDesigner -lpython2.4 ../../src/core/libqgis_core.la ../../src/gui/libqgis_gui.la -lutil
g++ -g -O2 -o .libs/msexport msexport-qgsmapserverexport.o msexport-main.o msexport-msexport_wrap.o msexport-qgsmapserverexport.moc.o -L/usr/lib64/qt4/lib64 ../../src/core/.libs/libqgis_core.so -L/usr/local/lib -L/usr/lib -L/usr/lib64 -L/usr/kerberos/lib -L/usr/kerberos/lib64 -L/usr/lib64/mysql ../../src/gui/.libs/libqgis_gui.so /nfsmnt/ssi0/ssi/neteler/software/qgis_unstable/src/raster/.libs/libqgis_raster.so /nfsmnt/ssi0/ssi/neteler/software/qgis_unstable/src/legend/.libs/libqgis_legend.so /nfsmnt/ssi0/ssi/neteler/software/qgis_unstable/src/composer/.libs/libqgis_composer.so /nfsmnt/ssi0/ssi/neteler/software/qgis_unstable/src/widgets/projectionselector/.libs/libqgsprojectionselector.so /nfsmnt/ssi0/ssi/neteler/software/qgis_unstable/src/core/.libs/libqgis_core.so -lQtCore -lQt3Support -lQtGui -lQtNetwork -lQtXml -lQtSvg -lQtTest -lQtDesigner /usr/local/lib/libgdal.so /usr/local/lib/libgeos_c.so /usr/local/lib/libgeos.so -lxerces-c -lpthread -lmfhdf -ldf -lgif /usr/lib64/libjpeg.so -lpng -lpq -lrt -lcurl -lidn -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lmysqlclient -lz -lcrypt -lnsl -lssl -lcrypto -lpython2.4 /usr/lib64/libsqlite3.so -lutil -Wl,--rpath -Wl,/usr/local/lib64 -Wl,--rpath -Wl,/usr/local/lib
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/librt.so when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/librt.a when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/local/lib/libidn.so when searching for -lidn
/usr/bin/ld: skipping incompatible /usr/lib/libresolv.so when searching for -lresolv
/usr/bin/ld: skipping incompatible /usr/lib/libresolv.a when searching for -lresolv
/usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libcrypt.so when searching for -lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/libcrypt.a when searching for -lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/libnsl.so when searching for -lnsl
/usr/bin/ld: skipping incompatible /usr/lib/libnsl.a when searching for -lnsl
/usr/bin/ld: skipping incompatible /usr/lib/libutil.so when searching for -lutil
/usr/bin/ld: skipping incompatible /usr/lib/libutil.a when searching for -lutil
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
../../src/gui/.libs/libqgis_gui.so: undefined reference to @pj_transform'
../../src/gui/.libs/libqgis_gui.so: undefined reference to @pj_strerrno'
../../src/gui/.libs/libqgis_gui.so: undefined reference to @pj_is_latlong'
../../src/gui/.libs/libqgis_gui.so: undefined reference to @pj_init_plus'
../../src/gui/.libs/libqgis_gui.so: undefined reference to @pj_free'
collect2: ld returned 1 exit status
maker1: *** [msexport] Error 1
maker1: Leaving directory
make: *** [all] Error 2
Is probably this the problem:
ldd ../../src/gui/.libs/libqgis_gui.so | grep proj
libqgsprojectionselector.so => /nfsmnt/ssi0/ssi/neteler/software/qgis_unstable/src/widgets/projectionselector/.libs/libqgsprojectionselector.so (0x0000002a95dcd000)
-> no libproj
Best,
Markus
#3 Updated by neteler-itc-it - almost 18 years ago
Followup: Hacking the tools/mapserver_export/Makefile and changing:
LIBS = -lutil to LIBS = -lutil ${PROJ_LIB}
helped. Not sure how to change Makefile.am, though.
No patch, sorry...
Markus
#4 Updated by Gavin Macaulay - almost 18 years ago
- Resolution set to fixed
- Status changed from Open to Closed
This change has been added in svn e1f9b2f7 (SVN r6149). Probably makes a difference if the proj library is not in one of the standard lib directories.