Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMAKE: Installation problems with OGR_BUILD_OPTIONAL_DRIVERS=OFF #6647

Closed
snowman2 opened this issue Nov 9, 2022 · 1 comment
Closed

CMAKE: Installation problems with OGR_BUILD_OPTIONAL_DRIVERS=OFF #6647

snowman2 opened this issue Nov 9, 2022 · 1 comment
Assignees

Comments

@snowman2
Copy link
Contributor

snowman2 commented Nov 9, 2022

Behavior

/usr/bin/ld: frmts/ogcapi/CMakeFiles/gdal_OGCAPI.dir/gdalogcapidataset.cpp.o: in function `ParseXMLSchema(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<std::unique_ptr<OGRFieldDefn, std::default_delete<OGRFieldDefn> >, std::allocator<std::unique_ptr<OGRFieldDefn, std::default_delete<OGRFieldDefn> > > >&, OGRwkbGeometryType&)':
gdalogcapidataset.cpp:(.text+0xa741): undefined reference to `GMLParseXSD(char const*, std::vector<GMLFeatureClass*, std::allocator<GMLFeatureClass*> >&, bool&)'
/usr/bin/ld: gdalogcapidataset.cpp:(.text+0xa7b0): undefined reference to `GMLFeatureClass::GetGeometryProperty(int) const'
/usr/bin/ld: gdalogcapidataset.cpp:(.text+0xa7dd): undefined reference to `GMLFeatureClass::GetGeometryProperty(int) const'
/usr/bin/ld: gdalogcapidataset.cpp:(.text+0xa832): undefined reference to `GMLFeatureClass::GetProperty(int) const'
/usr/bin/ld: gdalogcapidataset.cpp:(.text+0xa85f): undefined reference to `GML_GetOGRFieldType(GMLPropertyType, OGRFieldSubType&)'
/usr/bin/ld: gdalogcapidataset.cpp:(.text+0xa90a): undefined reference to `GMLFeatureClass::~GMLFeatureClass()'
/usr/bin/ld: gdalogcapidataset.cpp:(.text+0xa98e): undefined reference to `GMLFeatureClass::~GMLFeatureClass()'
collect2: error: ld returned 1 exit status

Steps to reproduce the problem.

cmake ..  -DOGR_BUILD_OPTIONAL_DRIVERS=OFF
cmake --build . 

Adding -DOGR_ENABLE_DRIVER_GML=ON fixed the compilation.

Operating system

Ubuntu 20.04 64 bit

GDAL version and provenance

GDAL 3.5.3, 3.6.0rc2, master

@snowman2 snowman2 changed the title CMAKE: Installation problems with CMAKE: Installation problems with OGR_BUILD_OPTIONAL_DRIVERS=OFF Nov 9, 2022
@rouault rouault self-assigned this Nov 9, 2022
@rouault rouault closed this as completed in cf1fa14 Nov 9, 2022
rouault added a commit that referenced this issue Nov 9, 2022
Fix build with -DOGR_ENABLE_DRIVER_GML=OFF (fixes #6647)
@snowman2
Copy link
Contributor Author

snowman2 commented Nov 9, 2022

Thanks @rouault 👍

rouault added a commit that referenced this issue Nov 10, 2022
[Backport release/3.6] Fix build with -DOGR_ENABLE_DRIVER_GML=OFF (fixes #6647)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants