ㄚ琪在编译6. JASPER (JPEG-2000 library)这个步骤又碰钉了,这回是转档失败,用Microsoft Visual C++ 2010 Express开启jasper-1.900.1\src\msvc中的jasper.dsw,竟然给我报dsp升级失败,可恨,Google到使用vcupgrade.exe来转档看看,又给我报这样的错误:
vcupgrade imgcmp.dsp
Microsoft (R) Visual C++ 专案转换公用程式 – 版本 10.00.30319
Copyright (C) Microsoft Corporation. All rights reserved.
Converting project file ‘D:\source\C\jasper-1.900.1\src\msvc\imgcmp.dsp’.
Unable to convert project.
Please make sure this is a valid Visual C++ 6.0 project.
突然之间无计了,花了不少时间Google,后来只好先休息一下了。
休息了几个小时候,注不是真的休息,而是换了个另一只程式来工作而已,
没多久突然有一个想法,原文说可以转换,表示他很有可能真的转换过了,不过怎会有这篇文章,而且在4. IJG JPEG library这里他有提到Visual C++ 2008,似乎跟其他的主题又有些诡异,另外ㄚ琪Google “dsp vcxproj”时,Goolge都会再一次问你要查”dsp vcproj”吗?ㄚ琪开始追根查一下vcxproj跟vcproj的一些差异,才发现vcxproj是2010的版本才开始有的,2008以前的都是vcproj,嗯,看来这个转档很有可能只能转成2008的,所以ㄚ琪只好索性在另一台电脑上安装Microsoft Visual C++ 2008 Express Edition,这一次真是猜对了,中间过程有一些警告,但是转档成功了,之后ㄚ琪再把它移回来用Microsoft Visual C++ 2010 Express来开jasper.sln,转档成功了,所以ㄚ琪可以继续进行这里的分享啰。
1.这里的步骤叙述说要改什么组态的,但是在vs10里头,转档完就是预设的多执行绪侦错,都不用动喔。
2.不用管64-bit的操作
3.建置,建置纪录如下:
—— 已开始建置: 专案: libjasper, 组态: Debug Win32 ——
ras_enc.c
ras_dec.c
ras_cod.c
pnm_enc.c
d:\source\c\jasper-1.900.1\src\libjasper\pnm\pnm_enc.c(378): warning C4996: ‘sprintf’: This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(371) : 请参阅 ‘sprintf’ 的宣告
pnm_dec.c
d:\source\c\jasper-1.900.1\src\libjasper\pnm\pnm_dec.c(121): warning C4013: ‘jas_eprintf’ 未定义; 假设 extern 传回整数
d:\source\c\jasper-1.900.1\src\libjasper\pnm\pnm_dec.c(359): warning C4244: ‘=’ : 将 ‘int_fast64_t’ 转换为 ‘jas_seqent_t’,由于型别不同,可能导致资料遗失
pnm_cod.c
pgx_enc.c
pgx_dec.c
pgx_cod.c
mif_cod.c
d:\source\c\jasper-1.900.1\src\libjasper\mif\mif_cod.c(282): warning C4013: ‘jas_eprintf’ 未定义; 假设 extern 传回整数
jpg_val.c
jpg_dummy.c
d:\source\c\jasper-1.900.1\src\libjasper\jpg\jpg_dummy.c(91): warning C4013: ‘jas_eprintf’ 未定义; 假设 extern 传回整数
jpc_util.c
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_util.c(99): warning C4996: ‘strncpy’: This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\string.h(188) : 请参阅 ‘strncpy’ 的宣告
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_util.c(102): warning C4996: ‘strtok’: This function or variable may be unsafe. Consider using strtok_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\string.h(197) : 请参阅 ‘strtok’ 的宣告
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_util.c(104): warning C4996: ‘strtok’: This function or variable may be unsafe. Consider using strtok_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\string.h(197) : 请参阅 ‘strtok’ 的宣告
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_util.c(116): warning C4996: ‘strncpy’: This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\string.h(188) : 请参阅 ‘strncpy’ 的宣告
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_util.c(119): warning C4996: ‘strtok’: This function or variable may be unsafe. Consider using strtok_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\string.h(197) : 请参阅 ‘strtok’ 的宣告
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_util.c(122): warning C4996: ‘strtok’: This function or variable may be unsafe. Consider using strtok_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\string.h(197) : 请参阅 ‘strtok’ 的宣告
jpc_tsfb.c
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_tsfb.c(124): warning C4013: ‘jpc_tsfb_analyze2’ 未定义; 假设 extern 传回整数
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_tsfb.c(151): warning C4013: ‘jpc_tsfb_synthesize2’ 未定义; 假设 extern 传回整数
jpc_tagtree.c
jpc_t2enc.c
jpc_t2dec.c
jpc_t2cod.c
jpc_t1enc.c
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_t1enc.c(141): warning C4018: ‘<‘ : signed/unsigned 不相符
jpc_t1dec.c
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_t1dec.c(243): warning C4013: ‘jas_eprintf’ 未定义; 假设 extern 传回整数
正在产生程式码…
正在编译…
jpc_t1cod.c
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_t1cod.c(267): warning C4244: ‘=’ : 将 ‘double’ 转换为 ‘float’,由于型别不同,可能导致资料遗失
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_t1cod.c(269): warning C4244: ‘=’ : 将 ‘double’ 转换为 ‘float’,由于型别不同,可能导致资料遗失
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_t1cod.c(273): warning C4244: ‘=’ : 将 ‘double’ 转换为 ‘float’,由于型别不同,可能导致资料遗失
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_t1cod.c(275): warning C4244: ‘=’ : 将 ‘double’ 转换为 ‘float’,由于型别不同,可能导致资料遗失
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_t1cod.c(277): warning C4244: ‘=’ : 将 ‘double’ 转换为 ‘float’,由于型别不同,可能导致资料遗失
jpc_qmfb.c
jpc_mqenc.c
jpc_mqdec.c
jpc_mqcod.c
jpc_mct.c
jpc_math.c
jpc_enc.c
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_enc.c(797): warning C4244: ‘=’ : 将 ‘jpc_flt_t’ 转换为 ‘uint_fast32_t’,由于型别不同,可能导致资料遗失
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_enc.c(961): warning C4996: ‘sprintf’: This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(371) : 请参阅 ‘sprintf’ 的宣告
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_enc.c(1033): warning C4244: ‘=’ : 将 ‘uint_fast16_t’ 转换为 ‘uint_fast8_t’,由于型别不同,可能导致资料遗失
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_enc.c(1034): warning C4244: ‘=’ : 将 ‘uint_fast16_t’ 转换为 ‘uint_fast8_t’,由于型别不同,可能导致资料遗失
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_enc.c(1392): warning C4244: ‘=’ : 将 ‘double’ 转换为 ‘uint_fast32_t’,由于型别不同,可能导致资料遗失
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_enc.c(1396): warning C4244: ‘=’ : 将 ‘double’ 转换为 ‘uint_fast32_t’,由于型别不同,可能导致资料遗失
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_enc.c(1399): warning C4244: ‘=’ : 将 ‘double’ 转换为 ‘uint_fast32_t’,由于型别不同,可能导致资料遗失
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_enc.c(2296): warning C4018: ‘<‘ : signed/unsigned 不相符
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_enc.c(2305): warning C4018: ‘<‘ : signed/unsigned 不相符
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_enc.c(2328): warning C4018: ‘<‘ : signed/unsigned 不相符
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_enc.c(2388): warning C4018: ‘>’ : signed/unsigned 不相符
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_enc.c(2389): warning C4018: ‘>’ : signed/unsigned 不相符
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_enc.c(2391): warning C4018: ‘<‘ : signed/unsigned 不相符
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_enc.c(2393): warning C4018: ‘<‘ : signed/unsigned 不相符
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_enc.c(2428): warning C4018: ‘<‘ : signed/unsigned 不相符
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_enc.c(2437): warning C4018: ‘<‘ : signed/unsigned 不相符
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_enc.c(2470): warning C4018: ‘<‘ : signed/unsigned 不相符
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_enc.c(2606): warning C4018: ‘<‘ : signed/unsigned 不相符
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_enc.c(2612): warning C4018: ‘<‘ : signed/unsigned 不相符
jpc_dec.c
jpc_cs.c
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_cs.c(691): warning C4244: ‘函式’ : 将 ‘uint_fast16_t’ 转换为 ‘uint_fast8_t’,由于型别不同,可能导致资料遗失
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_cs.c(825): warning C4244: ‘函式’ : 将 ‘uint_fast16_t’ 转换为 ‘uint_fast8_t’,由于型别不同,可能导致资料遗失
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_cs.c(922): warning C4244: ‘函式’ : 将 ‘uint_fast16_t’ 转换为 ‘uint_fast8_t’,由于型别不同,可能导致资料遗失
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_cs.c(1283): warning C4244: ‘函式’ : 将 ‘uint_fast16_t’ 转换为 ‘uint_fast8_t’,由于型别不同,可能导致资料遗失
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_cs.c(1288): warning C4244: ‘函式’ : 将 ‘uint_fast16_t’ 转换为 ‘uint_fast8_t’,由于型别不同,可能导致资料遗失
jpc_bs.c
jp2_enc.c
d:\source\c\jasper-1.900.1\src\libjasper\jp2\jp2_enc.c(347): warning C4996: ‘sprintf’: This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(371) : 请参阅 ‘sprintf’ 的宣告
jp2_dec.c
jp2_cod.c
d:\source\c\jasper-1.900.1\src\libjasper\jp2\jp2_cod.c(269): warning C4244: ‘=’ : 将 ‘uint_fast64_t’ 转换为 ‘uint_fast32_t’,由于型别不同,可能导致资料遗失
d:\source\c\jasper-1.900.1\src\libjasper\jp2\jp2_cod.c(270): warning C4244: ‘=’ : 将 ‘uint_fast64_t’ 转换为 ‘uint_fast32_t’,由于型别不同,可能导致资料遗失
jas_version.c
jas_tvp.c
jas_tmr.c
jas_string.c
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_string.c(94): warning C4996: ‘strcpy’: This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\string.h(105) : 请参阅 ‘strcpy’ 的宣告
jas_stream.c
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_stream.c(285): warning C4996: ‘open’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _open. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\io.h(312) : 请参阅 ‘open’ 的宣告
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_stream.c(368): warning C4996: ‘tmpnam’: This function or variable may be unsafe. Consider using tmpnam_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(344) : 请参阅 ‘tmpnam’ 的宣告
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_stream.c(372): warning C4996: ‘open’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _open. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\io.h(312) : 请参阅 ‘open’ 的宣告
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_stream.c(383): warning C4996: ‘unlink’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _unlink. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(299) : 请参阅 ‘unlink’ 的宣告
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_stream.c(422): warning C4996: ‘setmode’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _setmode. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\io.h(314) : 请参阅 ‘setmode’ 的宣告
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_stream.c(556): warning C4996: ‘vsprintf’: This function or variable may be unsafe. Consider using vsprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(371) : 请参阅 ‘vsprintf’ 的宣告
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_stream.c(1093): warning C4996: ‘read’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _read. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\io.h(313) : 请参阅 ‘read’ 的宣告
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_stream.c(1099): warning C4996: ‘write’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _write. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\io.h(318) : 请参阅 ‘write’ 的宣告
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_stream.c(1105): warning C4996: ‘lseek’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _lseek. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\io.h(310) : 请参阅 ‘lseek’ 的宣告
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_stream.c(1112): warning C4996: ‘close’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _close. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\io.h(302) : 请参阅 ‘close’ 的宣告
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_stream.c(1114): warning C4996: ‘unlink’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _unlink. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(299) : 请参阅 ‘unlink’ 的宣告
jas_seq.c
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_seq.c(391): warning C4996: ‘fscanf’: This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(253) : 请参阅 ‘fscanf’ 的宣告
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_seq.c(393): warning C4996: ‘fscanf’: This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(253) : 请参阅 ‘fscanf’ 的宣告
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_seq.c(405): warning C4996: ‘fscanf’: This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(253) : 请参阅 ‘fscanf’ 的宣告
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_seq.c(436): warning C4996: ‘sprintf’: This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(371) : 请参阅 ‘sprintf’ 的宣告
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_seq.c(443): warning C4996: ‘strcat’: This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\string.h(110) : 请参阅 ‘strcat’ 的宣告
正在产生程式码…
d:\source\c\jasper-1.900.1\src\libjasper\jp2\jp2_enc.c(436): warning C4715: ‘clrspctojp2’ : 不是所有控制路径都传回值
d:\source\c\jasper-1.900.1\src\libjasper\jpc\jpc_t1cod.c(160): warning C4715: ‘JPC_NOMINALGAIN’ : 不是所有控制路径都传回值
正在编译…
jas_malloc.c
jas_init.c
jas_image.c
jas_iccdata.c
jas_icc.c
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_icc.c(1604): warning C4244: ‘=’ : 将 ‘UINT64’ 转换为 ‘jas_iccuint16_t’,由于型别不同,可能导致资料遗失
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_icc.c(1614): warning C4244: ‘=’ : 将 ‘INT64’ 转换为 ‘jas_iccsint32_t’,由于型别不同,可能导致资料遗失
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_icc.c(1623): warning C4244: ‘=’ : 将 ‘UINT64’ 转换为 ‘jas_iccuint32_t’,由于型别不同,可能导致资料遗失
jas_getopt.c
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_getopt.c(129): warning C4013: ‘jas_eprintf’ 未定义; 假设 extern 传回整数
jas_debug.c
jas_cm.c
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_cm.c(563): warning C4244: ‘=’ : 将 ‘jas_cmreal_t’ 转换为 ‘long’,由于型别不同,可能导致资料遗失
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_cm.c(923): warning C4244: ‘=’ : 将 ‘double’ 转换为 ‘int’,由于型别不同,可能导致资料遗失
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_cm.c(926): warning C4244: ‘=’ : 将 ‘double’ 转换为 ‘int’,由于型别不同,可能导致资料遗失
bmp_enc.c
bmp_dec.c
d:\source\c\jasper-1.900.1\src\libjasper\bmp\bmp_dec.c(110): warning C4013: ‘jas_eprintf’ 未定义; 假设 extern 传回整数
bmp_cod.c
正在产生程式码…
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_cm.c(1068): warning C4715: ‘icctoclrspc’ : 不是所有控制路径都传回值
d:\source\c\jasper-1.900.1\src\libjasper\base\jas_cm.c(1277): warning C4715: ‘jas_clrspc_numchans’ : 不是所有控制路径都传回值
libjasper.vcxproj -> D:\source\C\jasper-1.900.1\src\msvc\.\Win32_Debug\libjasper.lib
—— 已开始建置: 专案: jasper, 组态: Debug Win32 ——
jasper.c
d:\source\c\jasper-1.900.1\src\appl\jasper.c(459): warning C4996: ‘strcat’: This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\string.h(110) : 请参阅 ‘strcat’ 的宣告
d:\source\c\jasper-1.900.1\src\appl\jasper.c(461): warning C4996: ‘strcat’: This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\string.h(110) : 请参阅 ‘strcat’ 的宣告
jasper.vcxproj -> D:\source\C\jasper-1.900.1\src\msvc\.\Win32_Debug\jasper.exe
—— 已开始建置: 专案: imginfo, 组态: Debug Win32 ——
imginfo.c
imginfo.vcxproj -> D:\source\C\jasper-1.900.1\src\msvc\.\Win32_Debug\imginfo.exe
—— 已开始建置: 专案: imgcmp, 组态: Debug Win32 ——
imgcmp.c
imgcmp.vcxproj -> D:\source\C\jasper-1.900.1\src\msvc\.\Win32_Debug\imgcmp.exe
—— 已开始建置: 专案: jiv, 组态: Debug Win32 ——
jiv.c
d:\source\c\jasper-1.900.1\src\appl\jiv.c(67): fatal error C1083: 无法开启包含档案: ‘GL/glut.h’: No such file or directory
========== 建置: 4 成功、1 失败、0 最新、0 略过 ==========
很多警告,而且最后有一个jiv.c编译失败,但是看起来这是应用程式的编译,至于后面要复制的东西,一点都没少,所以这个错误ㄚ琪就忽略了。
4. 放下列的档案:
- -将src\libjasper\include里的jasper资料夹放到c:\gtk_compilation\vs10\Win32\include
-src\msvc\Win32_Debug里的libjasper.lib到c:\gtk_compilation\vs10\Win32\lib
–src\msvc\Win32_Debug里的(这是ㄚ琪的猜测)所有.exe档放到c:\gtk_compilation\vs10\Win32\bin
好继续这一个编译,顺便看一只叫Groove Billed Ani的鸟吧,可能大家会觉得是杜鹃,不过这可是美洲的黑杜鹃喔,明年四月去美国希望可以看到。
7. FreeType
1.ㄚ琪从http://sourceforge.net/projects/freetype/files/freetype2/下载了最新的ft246.zip,我猜这是给Windows用的吧,解压缩后,ㄚ琪看到有builds\win32\vc2010这个资料夹,为了不再有JASPER那样有麻烦事,ㄚ琪就不照原文的操作了。
- 2.这个步骤就不用管了。
- 3.放这些档案到:
- -在objs\win32\vc2010里有建置freetype246_D.lib这个档案,好像跟原文说的freetype.lib这个static library有点不同,不过我们先猜测是版本跟编译模式的关系吧,照样放入c:\gtk_compilation\vs10\Win32\lib
-将$(srcroot)\include的所有档案放入c:\gtk_compilation\vs10\Win32\include
- -在objs\win32\vc2010里有建置freetype246_D.lib这个档案,好像跟原文说的freetype.lib这个static library有点不同,不过我们先猜测是版本跟编译模式的关系吧,照样放入c:\gtk_compilation\vs10\Win32\lib
8. Expat
1.从http://sourceforge.net/projects/expat/files/expat/下载最新的expat-2.0.1.tar.gz
- 2.又碰到跟JASPER一样的情形啰,只好到Microsoft Visual C++ 2008 Express Edition转档,再用Microsoft Visual C++ 2010 Express转,vs10预设好的组态都不用改,然后就可建置了,建置纪录如下,虽有警告,可忽略:
- —— 已开始建置: 专案: expat_static, 组态: Debug Win32 ——
xmlparse.c
xmlrole.c
xmltok.c
xmltok_impl.c
xmltok_ns.c
正在产生程式码…
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1151,5): warning MSB8012: TargetPath(D:\source\C\expat-2.0.1\lib\.\..\win32\bin\Debug\expat_static.lib) 与 Library 的 OutputFile 属性值 (D:\source\C\expat-2.0.1\win32\bin\Debug\libexpatMT.lib) 不相符。这可能会导致您的专案建置不正确。若要改正这种情况,请确认 $(OutDir)、$(TargetName) 和 $(TargetExt) 属性值必须与 %(Lib.OutputFile) 中指定的值相符。
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1153,5): warning MSB8012: TargetName(expat_static) 与 Library 的 OutputFile 属性值 (libexpatMT) 不相符。这可能会导致您的专案建置不正确。若要改正这种情况,请确认 $(OutDir)、$(TargetName) 和 $(TargetExt) 属性值必须与 %(Lib.OutputFile) 中指定的值相符。
expat_static.vcxproj -> D:\source\C\expat-2.0.1\lib\.\..\win32\bin\Debug\expat_static.lib
—— 已开始建置: 专案: expat, 组态: Debug Win32 ——
xmlparse.c
xmlrole.c
xmltok.c
xmltok_impl.c
xmltok_ns.c
正在产生程式码…
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(D:\source\C\expat-2.0.1\lib\.\..\win32\bin\Debug\expat.dll) 与 Linker 的 OutputFile 属性值 (D:\source\C\expat-2.0.1\win32\bin\Debug\libexpat.dll) 不相符。这可能会导致您的专案建置不正确。若要改正这种情况,请确认 $(OutDir)、$(TargetName) 和 $(TargetExt) 属性值必须与 %(Link.OutputFile) 中指定的值相符。
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(992,5): warning MSB8012: TargetName(expat) 与 Linker 的 OutputFile 属性值 (libexpat) 不相符。这可能会导致您的专案建置不正确。若要改正这种情况,请确认 $(OutDir)、$(TargetName) 和 $(TargetExt) 属性值必须与 %(Link.OutputFile) 中指定的值相符。
正在建立程式库 .\..\win32\bin\Debug/libexpat.lib 和物件 .\..\win32\bin\Debug/libexpat.exp
正在建立程式库 .\..\win32\bin\Debug/libexpat.lib 和物件 .\..\win32\bin\Debug/libexpat.exp
expat.vcxproj -> D:\source\C\expat-2.0.1\lib\.\..\win32\bin\Debug\expat.dll
—— 已开始建置: 专案: expatw, 组态: Debug Win32 ——
xmlparse.c
xmlrole.c
xmltok.c
xmltok_impl.c
xmltok_ns.c
正在产生程式码…
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(D:\source\C\expat-2.0.1\lib\.\..\win32\bin\Debug\expatw.dll) 与 Linker 的 OutputFile 属性值 (D:\source\C\expat-2.0.1\win32\bin\Debug\libexpatw.dll) 不相符。这可能会导致您的专案建置不正确。若要改正这种情况,请确认 $(OutDir)、$(TargetName) 和 $(TargetExt) 属性值必须与 %(Link.OutputFile) 中指定的值相符。
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(992,5): warning MSB8012: TargetName(expatw) 与 Linker 的 OutputFile 属性值 (libexpatw) 不相符。这可能会导致您的专案建置不正确。若要改正这种情况,请确认 $(OutDir)、$(TargetName) 和 $(TargetExt) 属性值必须与 %(Link.OutputFile) 中指定的值相符。
正在建立程式库 .\..\win32\bin\Debug/libexpatw.lib 和物件 .\..\win32\bin\Debug/libexpatw.exp
正在建立程式库 .\..\win32\bin\Debug/libexpatw.lib 和物件 .\..\win32\bin\Debug/libexpatw.exp
expatw.vcxproj -> D:\source\C\expat-2.0.1\lib\.\..\win32\bin\Debug\expatw.dll
—— 已开始建置: 专案: expatw_static, 组态: Debug Win32 ——
xmlparse.c
xmlrole.c
xmltok.c
xmltok_impl.c
xmltok_ns.c
正在产生程式码…
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1151,5): warning MSB8012: TargetPath(D:\source\C\expat-2.0.1\lib\.\..\win32\bin\Debug\expatw_static.lib) 与 Library 的 OutputFile 属性值 (D:\source\C\expat-2.0.1\win32\bin\Debug\libexpatwMT.lib) 不相符。这可能会导致您的专案建置不正确。若要改正这种情况,请确认 $(OutDir)、$(TargetName) 和 $(TargetExt) 属性值必须与 %(Lib.OutputFile) 中指定的值相符。
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1153,5): warning MSB8012: TargetName(expatw_static) 与 Library 的 OutputFile 属性值 (libexpatwMT) 不相符。这可能会导致您的专案建置不正确。若要改正这种情况,请确认 $(OutDir)、$(TargetName) 和 $(TargetExt) 属性值必须与 %(Lib.OutputFile) 中指定的值相符。
expatw_static.vcxproj -> D:\source\C\expat-2.0.1\lib\.\..\win32\bin\Debug\expatw_static.lib
—— 已开始建置: 专案: outline, 组态: Debug Win32 ——
outline.c
outline.vcxproj -> D:\source\C\expat-2.0.1\examples\.\..\win32\bin\Debug\outline.exe
—— 已开始建置: 专案: elements, 组态: Debug Win32 ——
elements.c
elements.vcxproj -> D:\source\C\expat-2.0.1\examples\.\..\win32\bin\Debug\elements.exe
—— 已开始建置: 专案: xmlwf, 组态: Debug Win32 ——
codepage.c
win32filemap.c
xmlfile.c
d:\source\c\expat-2.0.1\xmlwf\xmlfile.c(118): warning C4996: ‘strcpy’: This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\string.h(105) : 请参阅 ‘strcpy’ 的宣告
d:\source\c\expat-2.0.1\xmlwf\xmlfile.c(126): warning C4996: ‘strcpy’: This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\string.h(105) : 请参阅 ‘strcpy’ 的宣告
d:\source\c\expat-2.0.1\xmlwf\xmlfile.c(160): warning C4996: ‘open’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _open. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\io.h(312) : 请参阅 ‘open’ 的宣告
d:\source\c\expat-2.0.1\xmlwf\xmlfile.c(171): warning C4996: ‘close’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _close. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\io.h(302) : 请参阅 ‘close’ 的宣告
d:\source\c\expat-2.0.1\xmlwf\xmlfile.c(176): warning C4996: ‘read’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _read. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\io.h(313) : 请参阅 ‘read’ 的宣告
d:\source\c\expat-2.0.1\xmlwf\xmlfile.c(180): warning C4996: ‘close’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _close. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\io.h(302) : 请参阅 ‘close’ 的宣告
d:\source\c\expat-2.0.1\xmlwf\xmlfile.c(186): warning C4996: ‘close’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _close. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\io.h(302) : 请参阅 ‘close’ 的宣告
d:\source\c\expat-2.0.1\xmlwf\xmlfile.c(191): warning C4996: ‘close’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _close. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\io.h(302) : 请参阅 ‘close’ 的宣告
xmlwf.c
d:\source\c\expat-2.0.1\xmlwf\xmlwf.c(795): warning C4996: ‘strcpy’: This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\string.h(105) : 请参阅 ‘strcpy’ 的宣告
d:\source\c\expat-2.0.1\xmlwf\xmlwf.c(796): warning C4996: ‘strcat’: This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\string.h(110) : 请参阅 ‘strcat’ 的宣告
d:\source\c\expat-2.0.1\xmlwf\xmlwf.c(797): warning C4996: ‘strcat’: This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\string.h(110) : 请参阅 ‘strcat’ 的宣告
d:\source\c\expat-2.0.1\xmlwf\xmlwf.c(798): warning C4996: ‘fopen’: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(234) : 请参阅 ‘fopen’ 的宣告
正在产生程式码…
xmlwf.vcxproj -> D:\source\C\expat-2.0.1\xmlwf\.\..\win32\bin\Debug\xmlwf.exe
========== 建置: 7 成功、0 失败、0 最新、0 略过 ========== - 3.放下列档案到:
- -将win32\bin\Debug里的dll跟exe档放至c:\gtk_compilation\vs10\Win32\bin
-将win32\bin\Debug里的lib档复制到c:\gtk_compilation\vs10\Win32\lib,另外复制libexpat.lib档案为expat.lib,以及复制libexpatw.lib档案为expatw.lib到c:\gtk_compilation\vs10\Win32\lib
-放lib中的expat.h跟expat_external.h到c:\gtk_compilation\vs10\Win32\include9. FontConfig
真是让人挫折,此刻的ㄚ琪真像热锅上的蚂蚁一样。
- -将win32\bin\Debug里的dll跟exe档放至c:\gtk_compilation\vs10\Win32\bin