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

Compiling error #217

Open
Aikanaro82 opened this issue Oct 5, 2023 · 4 comments
Open

Compiling error #217

Aikanaro82 opened this issue Oct 5, 2023 · 4 comments

Comments

@Aikanaro82
Copy link

Hello,

I want to use your sdk to compile a version without MRSID, ECW and FILEGDB with GDAL 3.7.2 and MapServer 8.0.

I comment line in config.opt and change version of GDAL from master to v3.7.2.

I complete Makefile with my version of VS : 14.29.30152.0 (VS 2019). I also try with a VS 2017 version.

When I launch nmake gdal, i have an error :

Updating files: 100% (8861/8861), done.
cd src\gdal--vc16
cd gdal
nmake /f makefile.vc clean EXT_NMAKE_OPT=c:\Dev\release-1928-dev\release-1928\build\gdal.opt

Microsoft (R) Program Maintenance Utility Version 14.29.30152.0
Copyright (C) Microsoft Corporation. Tous droits réservés

NMAKE : fatal error U1052: file 'makefile.vc' not found
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86\nmake.EXE"' : code retour '0x2'
Stop.

Do you have any idea to solve this trouble ?

Thanks.

Guillaume

@Mbucari
Copy link

Mbucari commented Dec 3, 2024

@Aikanaro82 Did you ever find a solution for this? I'm having the same problem.

@Aikanaro82
Copy link
Author

Aikanaro82 commented Dec 3, 2024

Hello,
I need to verify but it seems that I finally compiled gisinternals.
I need to check if it's with or without all extension. I m sure about one but not all. I think I miss ECW but I remember it because it is older. I have a task this year did for it
I remember I modify c and/or makefile. I try to get my documentation the next week but I think I can't before.

@Mbucari
Copy link

Mbucari commented Dec 3, 2024

@Aikanaro82 Thanks for the reply. I think I found the problem. GDAL versions > 3.4 use CMAKE.

The readme says to execute this command:

nmake gdal

But that will only work for older GDAL versions. For new versions that use CMAKE, you need to run

nmake gdal-cmake

@Aikanaro82
Copy link
Author

Aikanaro82 commented Dec 3, 2024

Yes but it's not the only change i make. I don't remember if it's because i need kakadu but i modify config.opt and makefile like.
config.opt.txt
Makefile.txt

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