[gdal-dev] Compile problems gdal3.0.2 against proj6
Andreas Neumann
a.neumann at carto.net
Tue Nov 19 04:41:20 PST 2019
Hi,
I am trying to compile gdal3.0.2 against proj6 - but have problems.
Proj6 compile worked fine and I installed in /usr/local
The configure command for gdal is:
./configure --with-python=python3 --with-proj=/usr/local --with-pg=yes
--with-spatialite=yes
The last part of the compile output is:
------------------------
/bin/bash /home/bjsvwneu/dev/gdal-3.0.2/libtool --mode=compile --silent
--tag=CXX g++ -I/home/bjsvwneu/dev/gdal-3.0.2/port
-I/home/bjsvwneu/dev/gdal-3.0.2/gcore
-I/home/bjsvwneu/dev/gdal-3.0.2/alg -I/home/bjsvwneu/dev/gdal-3.0.2/ogr
-I/home/bjsvwneu/dev/gdal-3.0.2/ogr/og
rsf_frmts -I/home/bjsvwneu/dev/gdal-3.0.2/gnm
-I/home/bjsvwneu/dev/gdal-3.0.2/apps -DHAVE_AVX_AT_COMPILE_TIME
-DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -g -O2 -Wall
-Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security
-Wno-format-nonlite
ral -Wlogical-op -Wshadow -Werror=vla -Wdate-time -Wnull-dereference
-Wduplicated-cond -Wfloat-conversion -Wmissing-declarations
-Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names
-Wzero-as-null-pointer-constant -Wsuggest-override
-Wimplicit-fallthrough -I/home
/bjsvwneu/dev/gdal-3.0.2/frmts/vrt -DGNM_ENABLED
-I/home/bjsvwneu/dev/gdal-3.0.2/port -I/usr/include/openjpeg-2.3
-I/usr/include -DGDAL_COMPILATION -DHAVE_XERCES -I/usr/include
-I/usr/include/xercesc -I/home/bjsvwneu/dev/gdal-3.0.2/port
-I/usr/include/openjpeg-2.3 -I/us
r/include -DGDAL_COMPILATION -I/usr/include/json-c
-I/home/bjsvwneu/dev/gdal-3.0.2/ogr/ogrsf_frmts/geojson
-I/home/bjsvwneu/dev/gdal-3.0.2/ogr/ogrsf_frmts/generic
-I/home/bjsvwneu/dev/gdal-3.0.2/gnm -DHAVE_GEOS=1 -I/usr/include -c -o
gdalinfo_bin.lo gdalinfo_bin.cpp
/home/bjsvwneu/dev/gdal-3.0.2/libtool: line 1765: warning: setlocale:
LC_COLLATE: cannot change locale (de_CH.UTF-8)
/home/bjsvwneu/dev/gdal-3.0.2/libtool: line 1765: warning: setlocale:
LC_COLLATE: cannot change locale (de_CH.UTF-8)
/bin/bash /home/bjsvwneu/dev/gdal-3.0.2/libtool --mode=link --silent g++
gdalinfo_bin.lo /home/bjsvwneu/dev/gdal-3.0.2/libgdal.la -o gdalinfo
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_alter_name'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_eckert_i'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_miller_cylindrical'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_trans_generic'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_oblique_stereographic'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_wagner_i'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_crs_get_geodetic_crs'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_as_wkt'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_projected_crs'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_get_area_of_use'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_compound_crs'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_hotine_oblique_mercator_two_point_natural_origin'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_grid_info'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_transverse_mercator'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_cs_get_type'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_errno_string'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_utm'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_info'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_eckert_iii'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_equidistant_conic'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_coordoperation_get_method_info'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_mercator_variant_a'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_get_non_deprecated'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_international_map_world_polyconic'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_azimuthal_equidistant'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_crs_create_bound_crs_to_WGS84'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_geostationary_satellite_sweep_y'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_eckert_vi'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_geographic_crs_from_datum'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_two_point_equidistant'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_wagner_iii'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_ellipsoidal_2D_cs'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_context_use_proj4_init_rules'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_sinusoidal'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_goode_homolosine'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_eckert_v'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_destroy'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_identify'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_quadrilateralized_spherical_cube'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_trans'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_cartesian_2D_cs'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_transverse_mercator_south_oriented'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_engineering_crs'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_hotine_oblique_mercator_variant_a'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_operations'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_operation_factory_context_set_area_of_interest'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_orthographic'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_eckert_iv'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_list_get_count'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_context_set_search_paths'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_from_name'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_ellipsoid_get_parameters'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_wagner_ii'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_albers_equal_area'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_polar_stereographic_variant_a'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_wagner_vii'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_crs_alter_cs_linear_unit'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_lambert_conic_conformal_2sp_belgium'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_stereographic'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_mercator_variant_b'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_context_destroy'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_get_crs_info_list_from_database'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_get_source_crs'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_van_der_grinten'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_robinson'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_context_errno'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_new_zealand_mapping_grid'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_get_ellipsoid'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_is_deprecated'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_prime_meridian_get_parameters'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_gnomonic'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_mollweide'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_coordoperation_get_towgs84_values'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_crs_alter_parameters_linear_unit'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_gauss_schreiber_transverse_mercator'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_transformation'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_get_codes_from_database'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_laborde_oblique_mercator'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_crs_get_datum'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_wagner_iv'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_lambert_cylindrical_equal_area'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_get_type'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_geocentric_crs_from_datum'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_int_list_destroy'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_eckert_ii'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_list_get'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_assign_context'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_query_geodetic_crs_from_datum'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_crs_alter_cs_angular_unit'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_convert_conversion_to_other_method'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_geographic_crs'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_clone'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_is_equivalent_to'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_get_id_code'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_lambert_azimuthal_equal_area'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_log_func'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_crs_create_bound_crs'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_cs_get_axis_count'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_get_authorities_from_database'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_get_name'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_gall'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_krovak_north_oriented'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_cassini_soldner'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_crs_info_list_destroy'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_spherical_cross_track_height'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_crs_get_coordoperation'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_lambert_conic_conformal_1sp'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_as_proj_string'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_geocentric_crs'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_from_wkt'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_coordoperation_get_param'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_cs_get_axis_info'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_get_target_crs'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_uom_get_info_from_database'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_operation_factory_context_set_grid_availability_use'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_operation_factory_context'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_list_destroy'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_interrupted_goode_homolosine'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_hotine_oblique_mercator_variant_b'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_get_prime_meridian'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_polar_stereographic_variant_b'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_american_polyconic'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_string_list_destroy'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_operation_factory_context_set_spatial_criterion'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_wagner_v'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_operation_factory_context_destroy'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_vertical_crs'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_bonne'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_crs_to_crs'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_lambert_conic_conformal_2sp'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_crs_alter_geodetic_crs'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_get_id_auth_name'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_alter_id'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_tunisia_mapping_grid'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_equidistant_cylindrical'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_from_database'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_context_create'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_crs_get_sub_crs'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_crs_get_coordinate_system'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_create_conversion_wagner_vi'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_coordoperation_get_param_index'
/home/bjsvwneu/dev/gdal-3.0.2/.libs/libgdal.so: undefined reference to
`proj_coordoperation_get_param_count'
collect2: error: ld returned 1 exit status
GNUmakefile:82: recipe for target 'gdalinfo' failed
make[1]: *** [gdalinfo] Error 1
make[1]: Leaving directory '/home/bjsvwneu/dev/gdal-3.0.2/apps'
GNUmakefile:112: recipe for target 'apps-target' failed
make: *** [apps-target] Error 2
-----------------
Do you have any idea on what would help me fix this compile problem?
Note that two versions of proj are on my system: the old version in /usr
and the new version in /usr/local - with the configure_param I am
pointing it to the new version.
Thanks for your help!
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20191119/6876d8f0/attachment-0001.html>
More information about the gdal-dev
mailing list