在vs 2008上编译shapelib库过程
来源:互联网 发布:常州网络电视台 编辑:程序博客网 时间:2024/06/15 03:06
以前都是在vc6.0上使用开源的shapelib库,最近要使用filegdb api,因此必须使用vs 2008,因此使用vs 2008的nmake命令来编译一下shapelib库,但是在编译过程报如下错误:
D:/shapelib-1.3.0b2>nmake -f makefile.vcMicrosoft (R) Program Maintenance Utility Version 9.00.30729.01Copyright (C) Microsoft Corporation. All rights reserved. cl /nologo /Ox /MD /DSHAPELIB_DLLEXPORT -c shpopen.cNMAKE : fatal error U1077: '"D:/Program Files/Microsoft Visual Studio 9.0/VC/bin/cl.EXE"' : return code '0xc0000135'Stop.
发现是vc 9的cl(compile link)文件出了问题,但是无法确定到底出了什么问题,因此在cmd下直接运行cl后发现
报如下错误:
找不到mspdb80.dll这个动态库,搜了一下vs2008的目录,发现"D:/Program Files/Microsoft Visual Studio 9.0/VC/bin
目录下的确没有这个文件,但是在"D:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE”目录下有这个动态库,
将mspdb80.dll拷贝到D:/Program Files/Microsoft Visual Studio 9.0/VC/bin后,继续运行nmake后,继续报错:
D:/shapelib-1.3.0b2>nmake -f makefile.vcMicrosoft (R) Program Maintenance Utility Version 9.00.30729.01Copyright (C) Microsoft Corporation. All rights reserved. cl /nologo /Ox /MD /DSHAPELIB_DLLEXPORT -c shpopen.cshpopen.c cl /nologo /Ox /MD /DSHAPELIB_DLLEXPORT -c dbfopen.cdbfopen.c cl /nologo /Ox /MD /DSHAPELIB_DLLEXPORT -c shptree.cshptree.c cl /nologo /Ox /MD /DSHAPELIB_DLLEXPORT -c safileio.csafileio.c lib /nologo /out:shapelib.lib shpopen.obj dbfopen.obj shptree.obj safileio.obj link /nologo /dll /out:shapelib.dll /implib:shapelib_i.lib shpopen.obj dbfopen.obj shptree.obj safileio.obj Creating library shapelib_i.lib and object shapelib_i.exp if exist shapelib.dll.manifest mt /nologo -manifest shapelib.dll.manifest -outputresource:shapelib.dll;2'mt' 不是内部或外部命令,也不是可运行的程序或批处理文件。NMAKE : fatal error U1077: 'if' : return code '0x1'Stop.
.csharpcode, .csharpcode pre{font-size: small;color: black;font-family: consolas, "Courier New", courier, monospace;background-color: #ffffff;/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt {background-color: #f4f4f4;width: 100%;margin: 0em;}.csharpcode .lnum { color: #606060; }找不到mt.exe,到硬盘上继续找,发现在SDK中有这个文件,因此将SDK加入到PATH环境变量中,继续nmake编译,搞定:
D:/shapelib-1.3.0b2>nmake -f makefile.vcMicrosoft (R) Program Maintenance Utility Version 9.00.30729.01Copyright (C) Microsoft Corporation. All rights reserved. cl /nologo /Ox /MD /DSHAPELIB_DLLEXPORT -c shpopen.cshpopen.c cl /nologo /Ox /MD /DSHAPELIB_DLLEXPORT -c dbfopen.cdbfopen.c cl /nologo /Ox /MD /DSHAPELIB_DLLEXPORT -c shptree.cshptree.c cl /nologo /Ox /MD /DSHAPELIB_DLLEXPORT -c safileio.csafileio.c lib /nologo /out:shapelib.lib shpopen.obj dbfopen.obj shptree.obj safileio.obj link /nologo /dll /out:shapelib.dll /implib:shapelib_i.lib shpopen.obj dbfopen.obj shptree.obj safileio.obj Creating library shapelib_i.lib and object shapelib_i.exp if exist shapelib.dll.manifest mt /nologo -manifest shapelib.dll.manifest -outputresource:shapelib.dll;2 cl /nologo /Ox /MD /DSHAPELIB_DLLEXPORT shpcreate.c shapelib_i.libshpcreate.c if exist shpcreate.exe.manifest mt -manifest shpcreate.exe.manifest -outputresource:shpcreate.exe;1Microsoft (R) Manifest Tool version 5.2.3790.2076Copyright (c) Microsoft Corporation 2005.All rights reserved. cl /nologo /Ox /MD /DSHAPELIB_DLLEXPORT shpadd.c shapelib_i.libshpadd.c if exist shpadd.exe.manifest mt -manifest shpadd.exe.manifest -outputresource:shpadd.exe;1Microsoft (R) Manifest Tool version 5.2.3790.2076Copyright (c) Microsoft Corporation 2005.All rights reserved. cl /nologo /Ox /MD /DSHAPELIB_DLLEXPORT shpdump.c shapelib_i.libshpdump.c if exist shpdump.exe.manifest mt -manifest shpdump.exe.manifest -outputresource:shpdump.exe;1Microsoft (R) Manifest Tool version 5.2.3790.2076Copyright (c) Microsoft Corporation 2005.All rights reserved. cl /nologo /Ox /MD /DSHAPELIB_DLLEXPORT shprewind.c shapelib_i.libshprewind.c if exist shprewind.exe.manifest mt -manifest shprewind.exe.manifest -outputresource:shprewind.exe;1Microsoft (R) Manifest Tool version 5.2.3790.2076Copyright (c) Microsoft Corporation 2005.All rights reserved. cl /nologo /Ox /MD /DSHAPELIB_DLLEXPORT dbfcreate.c shapelib_i.libdbfcreate.c if exist dbfcreate.exe.manifest mt -manifest dbfcreate.exe.manifest -outputresource:dbfcreate.exe;1Microsoft (R) Manifest Tool version 5.2.3790.2076Copyright (c) Microsoft Corporation 2005.All rights reserved. cl /nologo /Ox /MD /DSHAPELIB_DLLEXPORT dbfadd.c shapelib_i.libdbfadd.c if exist dbfadd.exe.manifest mt -manifest dbfadd.exe.manifest -outputresource:dbfadd.exe;1Microsoft (R) Manifest Tool version 5.2.3790.2076Copyright (c) Microsoft Corporation 2005.All rights reserved. cl /nologo /Ox /MD /DSHAPELIB_DLLEXPORT dbfdump.c shapelib_i.libdbfdump.c if exist dbfdump.exe.manifest mt -manifest dbfdump.exe.manifest -outputresource:dbfdump.exe;1Microsoft (R) Manifest Tool version 5.2.3790.2076Copyright (c) Microsoft Corporation 2005.All rights reserved. cl /nologo /Ox /MD /DSHAPELIB_DLLEXPORT shptest.c shapelib_i.libshptest.c if exist shptest.exe.manifest mt -manifest shptest.exe.manifest -outputresource:shptest.exe;1Microsoft (R) Manifest Tool version 5.2.3790.2076Copyright (c) Microsoft Corporation 2005.All rights reserved. cl /nologo /Ox /MD /DSHAPELIB_DLLEXPORT shptreedump.c shapelib_i.libshptreedump.c if exist shptreedump.exe.manifest mt -manifest shptreedump.exe.manifest-outputresource:shptreedump.exe;1Microsoft (R) Manifest Tool version 5.2.3790.2076Copyright (c) Microsoft Corporation 2005.All rights reserved..csharpcode, .csharpcode pre{font-size: small;color: black;font-family: consolas, "Courier New", courier, monospace;background-color: #ffffff;/*white-space: pre;*/}.csharpcode pre { margin: 0em; }.csharpcode .rem { color: #008000; }.csharpcode .kwrd { color: #0000ff; }.csharpcode .str { color: #006080; }.csharpcode .op { color: #0000c0; }.csharpcode .preproc { color: #cc6633; }.csharpcode .asp { background-color: #ffff00; }.csharpcode .html { color: #800000; }.csharpcode .attr { color: #ff0000; }.csharpcode .alt {background-color: #f4f4f4;width: 100%;margin: 0em;}.csharpcode .lnum { color: #606060; }
- 在vs 2008上编译shapelib库过程
- VS 2008编译使用shapelib
- nmake && shapelib 编译
- window上编译vs的qjson库
- opengl示例代码在vs上编译不过
- TLD不用cmake在vs上编译运行的方案
- cocos2d-x在Android上的编译过程(2):编译动态库
- C编译过程VS Java编译过程
- 在vs 2008下编译boost1.36
- 在VS 2008下成功编译Chrome
- 在VS 2008下成功编译Chrome
- 在VS 2008下成功编译Chrome
- 记录在macOS Sierra系统上编译Hadoop本地库过程
- log4cpp 学习过程(四) ---- log4cpp在VS2003上的编译
- 在ubuntu上编译deb包的过程
- 总结一下在Ubuntu上编译linux内核的过程
- 在中标麒麟上编译OVS过程记录
- LibUSB-Win32 在Windows7上使用vs2010编译过程
- ie不能从类型识别图片,而是后缀名
- CCM,企业客户沟通管理系统
- 让Linux的进程不受终端影响
- ZooKeeper系列之二:ZooKeeper数据模型、命名空间以及节点的概念
- WP7 - 全景视图界面设计
- 在vs 2008上编译shapelib库过程
- activemq integreted with osgi : install, list , and monitor
- 取段地址指令
- 堆栈操作指令
- Flex Eclipse配置具体步骤解析
- 基本的数据类型转换
- VMware Workstation 随主机操作系统自动启动
- 使用nfs搭建rac
- camel-file