当前位置:网站首页>Compile GDAL source code with nmake (win10, vs2022)
Compile GDAL source code with nmake (win10, vs2022)
2022-07-06 12:47:00 【Alexabc3000】
To compile Gdal-master Source code , need PROJ Support for , and PROJ Again SQLite Support for .
SQLite、PROJ、Gdal-master See the web page for the source code and compilation of :
You can also use nmake Create... On the command line ( Reference page BuildingOnWindows – GDAL )
Using the command line , Get into VS2022 Developer command line window
cd D:\Programs\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build
D:
vcvars64.bat
cd D:\SourceCodes\gdal-master
set BINDIR=d:\programs\gdal\gdal-bin
set DATADIR=d:\programs\gdal\gdal-data
set INCDIR=d:\programs\gdal\gdal-include
set LIBDIR=d:\programs\gdal\gdal-lib
Modify file “nmake.opt” The content of :
(1) take
#PROJ_INCLUDE = -Id:\install-proj\local\include
Change it to
PROJ_INCLUDE = -ID:\My3rdParty\include
(2) take
#PROJ_LIBRARY = d:\install-proj\local\lib\proj_6_0.lib shell32.lib ole32.lib
Change it to
PROJ_LIBRARY = D:\My3rdParty\lib\proj.lib shell32.lib ole32.lib
Use the following commands in sequence , establish x64 Of Release edition
nmake -f makefile.vc MSVC_VER=1930 WIN64=1
nmake /f makefile.vc install MSVC_VER=1930 WIN64=yes
nmake /f makefile.vc devinstall MSVC_VER=1930 WIN64=yes
After execution , Catalog “d:\programs\gdal” The contents in are as follows ( Use command “tree /f d:\programs\gdal” List )
D:\PROGRAMS\GDAL
├─gdal-bin
│ │ gdal303.dll
│ │ gdaladdo.exe
│ │ gdalbuildvrt.exe
│ │ gdaldem.exe
│ │ gdalenhance.exe
│ │ gdalinfo.exe
│ │ gdallocationinfo.exe
│ │ gdalmanage.exe
│ │ gdalmdiminfo.exe
│ │ gdalmdimtranslate.exe
│ │ gdalsrsinfo.exe
│ │ gdaltindex.exe
│ │ gdaltransform.exe
│ │ gdalwarp.exe
│ │ gdal_contour.exe
│ │ gdal_create.exe
│ │ gdal_grid.exe
│ │ gdal_rasterize.exe
│ │ gdal_translate.exe
│ │ gdal_viewshed.exe
│ │ gnmanalyse.exe
│ │ gnmmanage.exe
│ │ nearblack.exe
│ │ ogr2ogr.exe
│ │ ogrinfo.exe
│ │ ogrlineref.exe
│ │ ogrtindex.exe
│ │
│ └─gdalplugins
│ drivers.ini
│
├─gdal-data
│ bag_template.xml
│ cubewerx_extra.wkt
│ default.rsc
│ ecw_cs.wkt
│ eedaconf.json
│ epsg.wkt
│ esri_StatePlane_extra.wkt
│ gdalicon.png
│ GDALLogoBW.svg
│ GDALLogoColor.svg
│ GDALLogoGS.svg
│ gdalmdiminfo_output.schema.json
│ gdalvrt.xsd
│ gmlasconf.xml
│ gmlasconf.xsd
│ gml_registry.xml
│ grib2_center.csv
│ grib2_process.csv
│ grib2_subcenter.csv
│ grib2_table_4_2_0_0.csv
│ grib2_table_4_2_0_1.csv
│ grib2_table_4_2_0_13.csv
│ grib2_table_4_2_0_14.csv
│ grib2_table_4_2_0_15.csv
│ grib2_table_4_2_0_16.csv
│ grib2_table_4_2_0_17.csv
│ grib2_table_4_2_0_18.csv
│ grib2_table_4_2_0_19.csv
│ grib2_table_4_2_0_190.csv
│ grib2_table_4_2_0_191.csv
│ grib2_table_4_2_0_2.csv
│ grib2_table_4_2_0_20.csv
│ grib2_table_4_2_0_3.csv
│ grib2_table_4_2_0_4.csv
│ grib2_table_4_2_0_5.csv
│ grib2_table_4_2_0_6.csv
│ grib2_table_4_2_0_7.csv
│ grib2_table_4_2_10_0.csv
│ grib2_table_4_2_10_1.csv
│ grib2_table_4_2_10_191.csv
│ grib2_table_4_2_10_2.csv
│ grib2_table_4_2_10_3.csv
│ grib2_table_4_2_10_4.csv
│ grib2_table_4_2_1_0.csv
│ grib2_table_4_2_1_1.csv
│ grib2_table_4_2_1_2.csv
│ grib2_table_4_2_20_0.csv
│ grib2_table_4_2_20_1.csv
│ grib2_table_4_2_20_2.csv
│ grib2_table_4_2_2_0.csv
│ grib2_table_4_2_2_3.csv
│ grib2_table_4_2_2_4.csv
│ grib2_table_4_2_2_5.csv
│ grib2_table_4_2_3_0.csv
│ grib2_table_4_2_3_1.csv
│ grib2_table_4_2_3_2.csv
│ grib2_table_4_2_3_3.csv
│ grib2_table_4_2_3_4.csv
│ grib2_table_4_2_3_5.csv
│ grib2_table_4_2_3_6.csv
│ grib2_table_4_2_4_0.csv
│ grib2_table_4_2_4_1.csv
│ grib2_table_4_2_4_10.csv
│ grib2_table_4_2_4_2.csv
│ grib2_table_4_2_4_3.csv
│ grib2_table_4_2_4_4.csv
│ grib2_table_4_2_4_5.csv
│ grib2_table_4_2_4_6.csv
│ grib2_table_4_2_4_7.csv
│ grib2_table_4_2_4_8.csv
│ grib2_table_4_2_4_9.csv
│ grib2_table_4_2_local_Canada.csv
│ grib2_table_4_2_local_HPC.csv
│ grib2_table_4_2_local_index.csv
│ grib2_table_4_2_local_MRMS.csv
│ grib2_table_4_2_local_NCEP.csv
│ grib2_table_4_2_local_NDFD.csv
│ grib2_table_4_5.csv
│ grib2_table_versions.csv
│ gt_datum.csv
│ gt_ellips.csv
│ header.dxf
│ inspire_cp_BasicPropertyUnit.gfs
│ inspire_cp_CadastralBoundary.gfs
│ inspire_cp_CadastralParcel.gfs
│ inspire_cp_CadastralZoning.gfs
│ jpfgdgml_AdmArea.gfs
│ jpfgdgml_AdmBdry.gfs
│ jpfgdgml_AdmPt.gfs
│ jpfgdgml_BldA.gfs
│ jpfgdgml_BldL.gfs
│ jpfgdgml_Cntr.gfs
│ jpfgdgml_CommBdry.gfs
│ jpfgdgml_CommPt.gfs
│ jpfgdgml_Cstline.gfs
│ jpfgdgml_ElevPt.gfs
│ jpfgdgml_GCP.gfs
│ jpfgdgml_LeveeEdge.gfs
│ jpfgdgml_RailCL.gfs
│ jpfgdgml_RdArea.gfs
│ jpfgdgml_RdASL.gfs
│ jpfgdgml_RdCompt.gfs
│ jpfgdgml_RdEdg.gfs
│ jpfgdgml_RdMgtBdry.gfs
│ jpfgdgml_RdSgmtA.gfs
│ jpfgdgml_RvrMgtBdry.gfs
│ jpfgdgml_SBAPt.gfs
│ jpfgdgml_SBArea.gfs
│ jpfgdgml_SBBdry.gfs
│ jpfgdgml_WA.gfs
│ jpfgdgml_WL.gfs
│ jpfgdgml_WStrA.gfs
│ jpfgdgml_WStrL.gfs
│ LICENSE.TXT
│ netcdf_config.xsd
│ nitf_spec.xml
│ nitf_spec.xsd
│ ogrvrt.xsd
│ osmconf.ini
│ ozi_datum.csv
│ ozi_ellips.csv
│ pci_datum.txt
│ pci_ellips.txt
│ pdfcomposition.xsd
│ pds4_template.xml
│ plscenesconf.json
│ ruian_vf_ob_v1.gfs
│ ruian_vf_st_uvoh_v1.gfs
│ ruian_vf_st_v1.gfs
│ ruian_vf_v1.gfs
│ s57agencies.csv
│ s57attributes.csv
│ s57expectedinput.csv
│ s57objectclasses.csv
│ seed_2d.dgn
│ seed_3d.dgn
│ stateplane.csv
│ template_tiles.mapml
│ tms_LINZAntarticaMapTileGrid.json
│ tms_MapML_APSTILE.json
│ tms_MapML_CBMTILE.json
│ tms_NZTM2000.json
│ trailer.dxf
│ vdv452.xml
│ vdv452.xsd
│ vicar.json
│
├─gdal-include
│ armadillo_headers.h
│ cplkeywordparser.h
│ cpl_alibaba_oss.h
│ cpl_atomic_ops.h
│ cpl_auto_close.h
│ cpl_aws.h
│ cpl_azure.h
│ cpl_compressor.h
│ cpl_config.h
│ cpl_config_extras.h
│ cpl_conv.h
│ cpl_cpu_features.h
│ cpl_csv.h
│ cpl_curl_priv.h
│ cpl_error.h
│ cpl_error_internal.h
│ cpl_float.h
│ cpl_google_cloud.h
│ cpl_hash_set.h
│ cpl_http.h
│ cpl_json.h
│ cpl_json_header.h
│ cpl_json_streaming_parser.h
│ cpl_json_streaming_writer.h
│ cpl_list.h
│ cpl_md5.h
│ cpl_mem_cache.h
│ cpl_minixml.h
│ cpl_minizip_ioapi.h
│ cpl_minizip_unzip.h
│ cpl_minizip_zip.h
│ cpl_multiproc.h
│ cpl_odbc.h
│ cpl_port.h
│ cpl_progress.h
│ cpl_quad_tree.h
│ cpl_sha1.h
│ cpl_sha256.h
│ cpl_spawn.h
│ cpl_string.h
│ cpl_swift.h
│ cpl_time.h
│ cpl_userfaultfd.h
│ cpl_vax.h
│ cpl_virtualmem.h
│ cpl_vsi.h
│ cpl_vsil_curl_class.h
│ cpl_vsil_curl_priv.h
│ cpl_vsil_plugin.h
│ cpl_vsi_error.h
│ cpl_vsi_virtual.h
│ cpl_worker_thread_pool.h
│ cpl_zlib_header.h
│ gdal.h
│ gdalexif.h
│ gdalgeorefpamdataset.h
│ gdalgrid.h
│ gdalgrid_priv.h
│ gdaljp2abstractdataset.h
│ gdaljp2metadata.h
│ gdaljp2metadatagenerator.h
│ gdallinearsystem.h
│ gdalpansharpen.h
│ gdalpython.h
│ gdalsse_priv.h
│ gdalwarper.h
│ gdalwarpkernel_opencl.h
│ gdal_alg.h
│ gdal_alg_priv.h
│ gdal_csv.h
│ gdal_frmts.h
│ gdal_mdreader.h
│ gdal_pam.h
│ gdal_priv.h
│ gdal_proxy.h
│ gdal_rat.h
│ gdal_simplesurf.h
│ gdal_thread_pool.h
│ gdal_utils.h
│ gdal_version.h
│ gdal_vrt.h
│ gnm.h
│ gnmgraph.h
│ gnm_api.h
│ gvgcpfit.h
│ internal_qhull_headers.h
│ memdataset.h
│ nasakeywordhandler.h
│ ograpispy.h
│ ogrgeomediageometry.h
│ ogrpgeogeometry.h
│ ogrsf_frmts.h
│ ogr_api.h
│ ogr_attrind.h
│ ogr_core.h
│ ogr_expat.h
│ ogr_feature.h
│ ogr_featurestyle.h
│ ogr_geocoding.h
│ ogr_geometry.h
│ ogr_geos.h
│ ogr_geo_utils.h
│ ogr_libs.h
│ ogr_p.h
│ ogr_proj_p.h
│ ogr_sfcgal.h
│ ogr_spatialref.h
│ ogr_srs_api.h
│ ogr_srs_esri_names.h
│ ogr_swq.h
│ ogr_xerces.h
│ ogr_xerces_headers.h
│ rawdataset.h
│ thinplatespline.h
│ vrtdataset.h
│
└─gdal-lib
gdal_i.lib
边栏推荐
- Programming homework: educational administration management system (C language)
- 第一人称视角的角色移动
- MySQL time, time zone, auto fill 0
- (1) Introduction Guide to R language - the first step of data analysis
- Mixed use of fairygui button dynamics
- There is no red exclamation mark after SVN update
- Special palindromes of daily practice of Blue Bridge Cup
- [offer78] merge multiple ordered linked lists
- SVN更新后不出现红色感叹号
- 程序设计大作业:教务管理系统(C语言)
猜你喜欢
Naive Bayesian theory derivation
Teach you to release a DeNO module hand in hand
341. Flatten nested list iterator
单片机蓝牙无线烧录
FairyGUI簡單背包的制作
[Clickhouse kernel principle graphic explanation] about the collaborative work of partitioning, indexing, marking and compressed data
ORA-02030: can only select from fixed tables/views
NRF24L01故障排查
Latex learning
Unity3D制作注册登录界面,并实现场景跳转
随机推荐
Special palindromes of daily practice of Blue Bridge Cup
Teach you to release a DeNO module hand in hand
Database course design: college educational administration management system (including code)
Database table splitting strategy
(4) Data visualization of R language -- matrix chart, histogram, pie chart, scatter chart, linear regression and strip chart
Classification, understanding and application of common methods of JS array
Lean product development - Lean Software Development & lean product development
MySQL takes up too much memory solution
JS function promotion and declaration promotion of VaR variable
Particle system for introduction to unity3d Foundation (attribute introduction + case production of flame particle system)
VLSM variable length subnet mask partition tips
Remember an experience of ECS being blown up by passwords - closing a small black house, changing passwords, and changing ports
Fairygui loop list
How to add music playback function to Arduino project
HCIP Day 12
Programming homework: educational administration management system (C language)
Vulnhub target: hacknos_ PLAYER V1.1
(1) Introduction Guide to R language - the first step of data analysis
(core focus of software engineering review) Chapter V detailed design exercises
Knowledge system of digital IT practitioners | software development methods -- agile