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
GDAL 3.1.0 and PROJ 7.0.1 : link error for unresolved shgetfolderpathw #2488
Comments
There was a similar report yesterday on the mailing list: The use of SHGetFolderPathW() is new to PROJ 7 |
And did you build PROJ with libtiff and libcurl support ? |
This is a static build of PROJ, |
That' s probably be the reason then. I'll modify the hints in nmake.opt, although I suspect there might be an issue in the build recipee of PROJ. Not completely sure
that's defintely not recommended. You'll have issues with datum shifts and will be not able to use the grids in the proj-data package.
I believe the curl dependency brings the shell32.lib one normally. Not having libCURL support is less critical though |
Do you mean that GDAL behaviour is degraded if libtiff is not set in PROJ build ? |
Depends on what you do, but the CMake message is explicit enough
If you don't do any coordinate transformations involving datum transformations, this should be OK. |
Would you mind applying the following patch to PROJ's src/lib_proj.cmake ?
and then re-link GDAL against that, without the explicit shell32.lib in PROJ_LIBRARY ? |
it raises an error : The uses of the plain signature are here:
Call Stack (most recent call first): |
ok, maybe just modify the line to |
It does not work I applied the patch I am really surprised that it does not work, I hope I did not forgot some other build cache. |
Hello,
I just built GDAL 3.1.0 with PROJ 7.0.1 with Visual Studio 2019, 64 bits.
There is a link error similar to https://stackoverflow.com/questions/24619169/lnk2019-unresolved-external-symbol-shgetfolderpathw
To fix it , I can just edit the GDAL nmake.opt and replace
PROJ_LIBRARY = [some path]\proj.lib
by
PROJ_LIBRARY = [some path]\proj.lib shell32.lib
Such an error was not present in my previous build of GDAL 3.0.4 with PROJ 6.3.0.
I am not sure if it is a regression or intended behaviour, either from PROJ or GDAL.
Whatever, I report it here.
The text was updated successfully, but these errors were encountered: