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

[osgearth] Fix undefined references due to openjp2 and xml2 #17993

Merged
merged 3 commits into from
Jun 9, 2021

Conversation

ankurvdev
Copy link
Contributor

Add additional dependencies (for GDAL) openjp2 and xml2 in the explicit linking list

Yes

Yes

  • If you have added/updated a port: Have you run ./vcpkg x-add-version --all and committed the result?

Yes

If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/

@NancyLi1013 NancyLi1013 added the category:port-bug The issue is with a library, which is something the port should already support label May 19, 2021
@NancyLi1013
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@NancyLi1013
Copy link
Contributor

Hi @ankurverma85

Thanks for fixing this problem. Can you run vcpkg x-add-version osgearth to update version files and then submit the changes?

@NancyLi1013
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ankurvdev
Copy link
Contributor Author

@NancyLi1013 , Thanks for updating the PR . Looks all green now.
Can we get this merged ?

@NancyLi1013
Copy link
Contributor

@ankurverma85

I try to build osgearth on my machine failed with the following errors:

/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:119: undefined reference to `pcre_compile'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:127: undefined reference to `pcre_study'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:132: undefined reference to `pcre_free'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:133: undefined reference to `pcre_free'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:141: undefined reference to `pcre_free'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:142: undefined reference to `pcre_free'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:151: undefined reference to `pcre_exec'
/home/Nancy/code/vcpkg/installed/x64-linux/debug/lib/libgdal.a(ogrsqlitevirtualogr.o): In function `OGRSQLiteFreeRegExpCache(void*)':
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:215: undefined reference to `pcre_free'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:216: undefined reference to `pcre_free'
/home/Nancy/code/vcpkg/installed/x64-linux/debug/lib/libgdal.a(cpl_xml_validate.o): In function `CPLExternalEntityLoader(char const*, char const*, _xmlParserCtxt*)':
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:739: undefined reference to `xmlCatalogResolveSystem'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:742: undefined reference to `xmlCatalogResolveURI'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:750: undefined reference to `xmlFree'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:781: undefined reference to `xmlNewStringInputStream'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:799: undefined reference to `xmlNewStringInputStream'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:904: undefined reference to `xmlNewStringInputStream'
/home/Nancy/code/vcpkg/installed/x64-linux/debug/lib/libgdal.a(cpl_xml_validate.o): In function `CPLLibXMLWarningErrorCallback(void*, char const*, ...)':
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:923: undefined reference to `xmlGetLastError'
/home/Nancy/code/vcpkg/installed/x64-linux/debug/lib/libgdal.a(cpl_xml_validate.o): In function `CPLLoadXMLSchema(char const*)':
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1017: undefined reference to `xmlGetExternalEntityLoader'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1019: undefined reference to `xmlSetExternalEntityLoader'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1022: undefined reference to `xmlSchemaNewMemParserCtxt'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1024: undefined reference to `xmlSchemaSetParserErrors'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1029: undefined reference to `xmlSchemaParse'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1030: undefined reference to `xmlSchemaFreeParserCtxt'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1032: undefined reference to `xmlSetExternalEntityLoader'
/home/Nancy/code/vcpkg/installed/x64-linux/debug/lib/libgdal.a(cpl_xml_validate.o): In function `CPLFreeXMLSchema(void*)':
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1055: undefined reference to `xmlSchemaFree'
/home/Nancy/code/vcpkg/installed/x64-linux/debug/lib/libgdal.a(cpl_xml_validate.o): In function `CPLValidateXML':
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1191: undefined reference to `xmlSchemaNewValidCtxt'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1199: undefined reference to `xmlSchemaSetValidErrors'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1208: undefined reference to `xmlParseDoc'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1211: undefined reference to `xmlSchemaValidateDoc'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1213: undefined reference to `xmlFreeDoc'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1218: undefined reference to `xmlSchemaValidateFile'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1226: undefined reference to `xmlParseDoc'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1229: undefined reference to `xmlSchemaValidateDoc'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1231: undefined reference to `xmlFreeDoc'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1235: undefined reference to `xmlSchemaFreeValidCtxt'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

After added xml2 to the fix-dependency-osg.patch, then rebuild, the errors which are related with xml disappear. But it still failed with pcre error:

/home/Nancy/code/vcpkg/installed/x64-linux/debug/lib/libgdal.a(ogrsqlitevirtualogr.o): In function `OGRSQLiteREGEXPFunction(sqlite3_context*, int, sqlite3_value**)':
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:119: undefined reference to `pcre_compile'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:127: undefined reference to `pcre_study'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:132: undefined reference to `pcre_free'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:133: undefined reference to `pcre_free'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:141: undefined reference to `pcre_free'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:142: undefined reference to `pcre_free'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:151: undefined reference to `pcre_exec'
/home/Nancy/code/vcpkg/installed/x64-linux/debug/lib/libgdal.a(ogrsqlitevirtualogr.o): In function `OGRSQLiteFreeRegExpCache(void*)':
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:215: undefined reference to `pcre_free'
/home/Nancy/code/vcpkg/buildtrees/gdal/x64-linux-dbg/ogr/ogrsf_frmts/sqlite/ogrsqliteregexp.cpp:216: undefined reference to `pcre_free'

Seems it also needs to link pcre.

@NancyLi1013
Copy link
Contributor

Can you post the error you encountered on your machine before you fix the dependent patch? @ankurverma85

@dg0yt
Copy link
Contributor

dg0yt commented May 21, 2021

@NancyLi1013 This is also from gdal.

@JackBoosY JackBoosY added info:reviewed Pull Request changes follow basic guidelines requires:author-response and removed info:reviewed Pull Request changes follow basic guidelines labels May 21, 2021
@ankurvdev
Copy link
Contributor Author

ankurvdev commented May 28, 2021

pasting the errors I'm seeing

/usr/bin/ld: /home/ankurv/vcpkg.test/installed/x64-linux/debug/lib/libgdal.a(openjpegdataset.o): in function `JP2OpenJPEGCreateReadStream(JP2OpenJPEGFile*, unsigned long long)':
/home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:781: undefined reference to `opj_stream_create'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:786: undefined reference to `opj_stream_set_user_data_length'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:788: undefined reference to `opj_stream_set_read_function'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:789: undefined reference to `opj_stream_set_seek_function'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:790: undefined reference to `opj_stream_set_skip_function'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:791: undefined reference to `opj_stream_set_user_data'
/usr/bin/ld: /home/ankurv/vcpkg.test/installed/x64-linux/debug/lib/libgdal.a(openjpegdataset.o): in function `JP2OpenJPEGDataset::ReadBlock(int, _VSILFILE*, int, int, void*, int, int*)':
/home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:839: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:841: undefined reference to `opj_stream_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:843: undefined reference to `opj_image_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:854: undefined reference to `opj_create_decompress'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:862: undefined reference to `opj_set_info_handler'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:863: undefined reference to `opj_set_warning_handler'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:864: undefined reference to `opj_set_error_handler'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:867: undefined reference to `opj_set_default_decoder_parameters'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:869: undefined reference to `opj_setup_decoder'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:899: undefined reference to `opj_codec_set_threads'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:901: undefined reference to `opj_codec_set_threads'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:905: undefined reference to `opj_read_header'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:920: undefined reference to `opj_set_decoded_resolution_factor'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:941: undefined reference to `opj_set_decode_area'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:951: undefined reference to `opj_decode'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:960: undefined reference to `opj_get_decoded_tile'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1135: undefined reference to `opj_end_decompress'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1137: undefined reference to `opj_stream_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1139: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1141: undefined reference to `opj_image_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/installed/x64-linux/debug/lib/libgdal.a(openjpegdataset.o): in function `JP2OpenJPEGDataset::~JP2OpenJPEGDataset()':
/home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1233: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1236: undefined reference to `opj_stream_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1239: undefined reference to `opj_image_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/installed/x64-linux/debug/lib/libgdal.a(openjpegdataset.o): in function `JP2OpenJPEGDataset::Open(GDALOpenInfo*)':
/home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1693: undefined reference to `opj_create_decompress'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1697: undefined reference to `opj_set_info_handler'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1698: undefined reference to `opj_set_warning_handler'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1699: undefined reference to `opj_set_error_handler'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1702: undefined reference to `opj_set_default_decoder_parameters'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1704: undefined reference to `opj_setup_decoder'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1706: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1714: undefined reference to `opj_codec_set_threads'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1730: undefined reference to `opj_stream_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1731: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1736: undefined reference to `opj_read_header'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1739: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1740: undefined reference to `opj_stream_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1741: undefined reference to `opj_image_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1746: undefined reference to `opj_get_cstr_info'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1760: undefined reference to `opj_destroy_cstr_info'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1764: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1765: undefined reference to `opj_stream_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1766: undefined reference to `opj_image_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1812: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1813: undefined reference to `opj_stream_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1814: undefined reference to `opj_image_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1860: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1861: undefined reference to `opj_stream_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:1862: undefined reference to `opj_image_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:2264: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:2265: undefined reference to `opj_stream_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:2266: undefined reference to `opj_image_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/installed/x64-linux/debug/lib/libgdal.a(openjpegdataset.o): in function `JP2OpenJPEGDataset::CreateCopy(char const*, GDALDataset*, int, char**, int (*)(double, char const*, void*), void*)':
/home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3071: undefined reference to `opj_set_default_encoder_parameters'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3266: undefined reference to `opj_create_compress'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3276: undefined reference to `opj_set_info_handler'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3277: undefined reference to `opj_set_warning_handler'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3278: undefined reference to `opj_set_error_handler'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3296: undefined reference to `opj_image_tile_create'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3303: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3317: undefined reference to `opj_setup_encoder'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3321: undefined reference to `opj_image_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3322: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3363: undefined reference to `opj_image_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3364: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3776: undefined reference to `opj_image_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3777: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3802: undefined reference to `opj_image_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3803: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3817: undefined reference to `opj_stream_create'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3818: undefined reference to `opj_stream_set_write_function'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3819: undefined reference to `opj_stream_set_seek_function'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3820: undefined reference to `opj_stream_set_skip_function'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3821: undefined reference to `opj_stream_set_user_data'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3823: undefined reference to `opj_start_compress'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3827: undefined reference to `opj_stream_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3828: undefined reference to `opj_image_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3829: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3861: undefined reference to `opj_stream_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3862: undefined reference to `opj_image_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3863: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3876: undefined reference to `opj_stream_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3877: undefined reference to `opj_image_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:3878: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:4036: undefined reference to `opj_write_tile'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:4049: undefined reference to `opj_write_tile'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:4074: undefined reference to `opj_stream_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:4075: undefined reference to `opj_image_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:4076: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:4082: undefined reference to `opj_end_compress'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:4086: undefined reference to `opj_stream_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:4087: undefined reference to `opj_image_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:4088: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:4093: undefined reference to `opj_stream_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:4096: undefined reference to `opj_image_destroy'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/frmts/openjpeg/openjpegdataset.cpp:4097: undefined reference to `opj_destroy_codec'
/usr/bin/ld: /home/ankurv/vcpkg.test/installed/x64-linux/debug/lib/libgdal.a(gdaljp2metadatagenerator.o): in function `GDALGMLJP2Expr::Evaluate(_xmlXPathContext*, _xmlDoc*)':
/home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:271: undefined reference to `xmlXPathEvalExpression'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:292: undefined reference to `xmlBufferCreate'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:293: undefined reference to `xmlNodeDump'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:294: undefined reference to `xmlBufferContent'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:295: undefined reference to `xmlBufferFree'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:299: undefined reference to `xmlXPathFreeObject'
/usr/bin/ld: /home/ankurv/vcpkg.test/installed/x64-linux/debug/lib/libgdal.a(gdaljp2metadatagenerator.o): in function `GDALGMLJP2RegisterNamespaces(_xmlXPathContext*, _xmlNode*)':
/home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:378: undefined reference to `xmlXPathRegisterNs'
/usr/bin/ld: /home/ankurv/vcpkg.test/installed/x64-linux/debug/lib/libgdal.a(gdaljp2metadatagenerator.o): in function `GDALGMLJP2XPathIf(_xmlXPathParserContext*, int)':
/home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:399: undefined reference to `xmlXPathErr'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:400: undefined reference to `valuePop'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:401: undefined reference to `valuePop'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:402: undefined reference to `xmlXPathBooleanFunction'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:403: undefined reference to `valuePop'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:407: undefined reference to `xmlXPathFreeObject'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:408: undefined reference to `valuePush'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:412: undefined reference to `xmlXPathFreeObject'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:413: undefined reference to `valuePush'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:415: undefined reference to `xmlXPathFreeObject'
/usr/bin/ld: /home/ankurv/vcpkg.test/installed/x64-linux/debug/lib/libgdal.a(gdaljp2metadatagenerator.o): in function `GDALGMLJP2XPathUUID(_xmlXPathParserContext*, int)':
/home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:424: undefined reference to `xmlXPathErr'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:450: undefined reference to `xmlXPathNewString'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:450: undefined reference to `valuePush'
/usr/bin/ld: /home/ankurv/vcpkg.test/installed/x64-linux/debug/lib/libgdal.a(gdaljp2metadatagenerator.o): in function `GDALGMLJP2GenerateMetadata(CPLString const&, CPLString const&)':
/home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:478: undefined reference to `xmlParseDoc'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:487: undefined reference to `xmlXPathNewContext'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:490: undefined reference to `xmlFreeDoc'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:494: undefined reference to `xmlXPathRegisterFunc'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:496: undefined reference to `xmlXPathRegisterFunc'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:501: undefined reference to `xmlDocGetRootElement'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:505: undefined reference to `xmlXPathFreeContext'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/gcore/gdaljp2metadatagenerator.cpp:506: undefined reference to `xmlFreeDoc'
/usr/bin/ld: /home/ankurv/vcpkg.test/installed/x64-linux/debug/lib/libgdal.a(cpl_xml_validate.o): in function `CPLExternalEntityLoader(char const*, char const*, _xmlParserCtxt*)':
/home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:739: undefined reference to `xmlCatalogResolveSystem'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:742: undefined reference to `xmlCatalogResolveURI'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:750: undefined reference to `xmlFree'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:781: undefined reference to `xmlNewStringInputStream'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:799: undefined reference to `xmlNewStringInputStream'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:904: undefined reference to `xmlNewStringInputStream'
/usr/bin/ld: /home/ankurv/vcpkg.test/installed/x64-linux/debug/lib/libgdal.a(cpl_xml_validate.o): in function `CPLLibXMLWarningErrorCallback(void*, char const*, ...)':
/home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:923: undefined reference to `xmlGetLastError'
/usr/bin/ld: /home/ankurv/vcpkg.test/installed/x64-linux/debug/lib/libgdal.a(cpl_xml_validate.o): in function `CPLLoadXMLSchema(char const*)':
/home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1017: undefined reference to `xmlGetExternalEntityLoader'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1019: undefined reference to `xmlSetExternalEntityLoader'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1022: undefined reference to `xmlSchemaNewMemParserCtxt'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1024: undefined reference to `xmlSchemaSetParserErrors'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1029: undefined reference to `xmlSchemaParse'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1030: undefined reference to `xmlSchemaFreeParserCtxt'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1032: undefined reference to `xmlSetExternalEntityLoader'
/usr/bin/ld: /home/ankurv/vcpkg.test/installed/x64-linux/debug/lib/libgdal.a(cpl_xml_validate.o): in function `CPLFreeXMLSchema(void*)':
/home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1055: undefined reference to `xmlSchemaFree'
/usr/bin/ld: /home/ankurv/vcpkg.test/installed/x64-linux/debug/lib/libgdal.a(cpl_xml_validate.o): in function `CPLValidateXML':
/home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1191: undefined reference to `xmlSchemaNewValidCtxt'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1199: undefined reference to `xmlSchemaSetValidErrors'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1208: undefined reference to `xmlParseDoc'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1211: undefined reference to `xmlSchemaValidateDoc'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1213: undefined reference to `xmlFreeDoc'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1218: undefined reference to `xmlSchemaValidateFile'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1226: undefined reference to `xmlParseDoc'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1229: undefined reference to `xmlSchemaValidateDoc'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1231: undefined reference to `xmlFreeDoc'
/usr/bin/ld: /home/ankurv/vcpkg.test/buildtrees/gdal/x64-linux-dbg/port/cpl_xml_validate.cpp:1235: undefined reference to `xmlSchemaFreeValidCtxt'
/usr/bin/ld: bin/osgearth_overlayviewer: hidden symbol `opj_image_destroy' isn't defined
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status

@NancyLi1013
Copy link
Contributor

Thanks for your details. But I still have one question here. I didn't encounter openjp2 link error on my machine without these changes in this PR. Are you clear what the condition will cause this problem?

@dg0yt
Copy link
Contributor

dg0yt commented Jun 1, 2021

I didn't encounter openjp2 link error on my machine without these changes in this PR. Are you clear what the condition will cause this problem?

Did you build for x64-linux (static linkage)?
Does your build of gdal actually use openjpeg? (It is an explicit dependency of port gdal but it might have been ignored by configure.)
Did your build of osgearth link to openjpeg due to some other dependency?

@NancyLi1013
Copy link
Contributor

Thanks for your quick reply @dg0yt.

Did you build for x64-linux (static linkage)?

I build the default triplet, so it should be static linkage.

Does your build of gdal actually use openjpeg? (It is an explicit dependency of port gdal but it might have been ignored by configure.)

I actually have installed openjpeg, but it seems that gdal doesn't check it. If I didn't do any changes and only build gdal, openjpeg should be linked to gdal, since it is one of the dependencies of gdal.

Did your build of osgearth link to openjpeg due to some other dependency?

I didn't do any changes for osgearth, just build it by default. Factually. openjpeg should be linked to gdal instead of osgearth.

@dg0yt
Copy link
Contributor

dg0yt commented Jun 1, 2021

I actually have installed openjpeg, but it seems that gdal doesn't check

#9068 and most of my PRs...

Factually. openjpeg should be linked to gdal instead of osgearth.

It is, normally. Still, gdal must export its usage requirements.

@ankurvdev
Copy link
Contributor Author

@NancyLi1013
Can you summarize what more is required before this can be merged ?
I'm not entirely sure at this point.

Regarding gdal issues in general:

I think we can all agree this PR isn't the long term correct fix. What @dg0yt is highlighting is completely valid and perhaps his PR is the right direction in terms of a long term fix.
However a correct and clean fix is not the intent of this PR.
This PR is meant to be a scoped fix to unblock builds on fedora and newer other OS versions.
The only thing I'm sure is that this PR doesn't cause more problems.
Whether it fixes ALL problems is perhaps an open question

@NancyLi1013
Copy link
Contributor

Thanks for your details and conclusion @ankurverma85. As talked above, there are many problems in gdal on Linux, we need to fix them in the near future. For this PR, according to the problems you encountered, your fix seems reasonable. So there is nothing needs to be done on your sides now. For other problems, we can track them in gdal. Thanks again for your patience.

@dg0yt thanks for your help and looking into this.

@NancyLi1013 NancyLi1013 added the info:reviewed Pull Request changes follow basic guidelines label Jun 2, 2021
@ankurvdev
Copy link
Contributor Author

@NancyLi1013 .
Can you please have someone merge this ?

This has been lying without merge for a week now

@strega-nil-ms
Copy link
Contributor

Cool, thanks y'all :)

@strega-nil-ms strega-nil-ms merged commit c21792b into microsoft:master Jun 9, 2021
@ankurvdev ankurvdev deleted the pr/osgearth branch June 10, 2021 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[osgearth] build failure with x64-linux unresolved references
5 participants