2

我一直在尝试从http://www.xm1math.net/texmaker/download.html上的源代码 tarball 从 5 构建 Texmaker

我安装了新的 QT 5.9 和新的 MSVC 2015 社区版。

当我尝试构建时,它一直到链接阶段,并因缺少一些符号而死。特别是 windows pdf 设备中的符号似乎丢失了 - 就好像 .pro 文件只适用于 linux/mac 构建。

有没有人设法完成这项工作?

给作者的邮件没有得到答复。

我有一些更改(额外的折叠选项,例如“折叠所有部分”等)我想测试并传回主流。

提前感谢您的帮助。

包含错误的构建日志的确切部分是:

    link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:release\texmaker.exe @C:\Users\Robin\AppData\Local\Temp\texmaker.exe.7624.29140.jom
   Creating library release\texmaker.lib and object release\texmaker.exp
fpdfview.obj : error LNK2019: unresolved external symbol "public: __cdecl CFX_WindowsDevice::CFX_WindowsDevice(struct HDC__ *)" (??0CFX_WindowsDevice@@QEAA@PEAUHDC__@@@Z) referenced in function FPDF_RenderPage
fpdfview.obj : error LNK2019: unresolved external symbol "public: virtual __cdecl CFX_WindowsDevice::~CFX_WindowsDevice(void)" (??1CFX_WindowsDevice@@UEAA@XZ) referenced in function FPDF_RenderPage
fpdf_sysfontinfo.obj : error LNK2019: unresolved external symbol "public: static class std::unique_ptr<class IFX_SystemFontInfo,struct std::default_delete<class IFX_SystemFontInfo> > __cdecl IFX_SystemFontInfo::CreateDefault(char const * *)" (?CreateDefault@IFX_SystemFontInfo@@SA?AV?$unique_ptr@VIFX_SystemFontInfo@@U?$default_delete@VIFX_SystemFontInfo@@@std@@@std@@PEAPEBD@Z) referenced in function FPDF_GetDefaultSystemFontInfo
doc_form.obj : error LNK2019: unresolved external symbol __imp_EnumFontFamiliesExA referenced in function "int __cdecl RetrieveSpecificFont(struct tagLOGFONTA &)" (?RetrieveSpecificFont@@YAHAEAUtagLOGFONTA@@@Z)
doc_form.obj : error LNK2019: unresolved external symbol __imp_GetDC referenced in function "int __cdecl RetrieveSpecificFont(struct tagLOGFONTA &)" (?RetrieveSpecificFont@@YAHAEAUtagLOGFONTA@@@Z)
doc_form.obj : error LNK2019: unresolved external symbol __imp_ReleaseDC referenced in function "int __cdecl RetrieveSpecificFont(struct tagLOGFONTA &)" (?RetrieveSpecificFont@@YAHAEAUtagLOGFONTA@@@Z)
cpdf_document.obj : error LNK2019: unresolved external symbol __imp_CreateCompatibleDC referenced in function "public: class CPDF_Font * __cdecl CPDF_Document::AddWindowsFont(struct tagLOGFONTA *,int,int)" (?AddWindowsFont@CPDF_Document@@QEAAPEAVCPDF_Font@@PEAUtagLOGFONTA@@HH@Z)
cpdf_document.obj : error LNK2019: unresolved external symbol __imp_CreateFontIndirectA referenced in function "public: class CPDF_Font * __cdecl CPDF_Document::AddWindowsFont(struct tagLOGFONTA *,int,int)" (?AddWindowsFont@CPDF_Document@@QEAAPEAVCPDF_Font@@PEAUtagLOGFONTA@@HH@Z)
cpdf_document.obj : error LNK2019: unresolved external symbol __imp_DeleteDC referenced in function "public: class CPDF_Font * __cdecl CPDF_Document::AddWindowsFont(struct tagLOGFONTA *,int,int)" (?AddWindowsFont@CPDF_Document@@QEAAPEAVCPDF_Font@@PEAUtagLOGFONTA@@HH@Z)
cpdf_document.obj : error LNK2019: unresolved external symbol __imp_DeleteObject referenced in function "public: class CPDF_Font * __cdecl CPDF_Document::AddWindowsFont(struct tagLOGFONTA *,int,int)" (?AddWindowsFont@CPDF_Document@@QEAAPEAVCPDF_Font@@PEAUtagLOGFONTA@@HH@Z)
cpdf_document.obj : error LNK2019: unresolved external symbol __imp_GetCharWidthW referenced in function "public: class CPDF_Font * __cdecl CPDF_Document::AddWindowsFont(struct tagLOGFONTA *,int,int)" (?AddWindowsFont@CPDF_Document@@QEAAPEAVCPDF_Font@@PEAUtagLOGFONTA@@HH@Z)
cpdf_document.obj : error LNK2019: unresolved external symbol __imp_GetFontData referenced in function "class CFX_ByteString __cdecl `anonymous namespace'::FPDF_GetPSNameFromTT(struct HDC__ *)" (?FPDF_GetPSNameFromTT@?A0x2555c822@@YA?AVCFX_ByteString@@PEAUHDC__@@@Z)
cpdf_document.obj : error LNK2019: unresolved external symbol __imp_GetOutlineTextMetricsW referenced in function "public: class CPDF_Font * __cdecl CPDF_Document::AddWindowsFont(struct tagLOGFONTA *,int,int)" (?AddWindowsFont@CPDF_Document@@QEAAPEAVCPDF_Font@@PEAUtagLOGFONTA@@HH@Z)
cpdf_document.obj : error LNK2019: unresolved external symbol __imp_SelectObject referenced in function "public: class CPDF_Font * __cdecl CPDF_Document::AddWindowsFont(struct tagLOGFONTA *,int,int)" (?AddWindowsFont@CPDF_Document@@QEAAPEAVCPDF_Font@@PEAUtagLOGFONTA@@HH@Z)
fx_extension.obj : error LNK2019: unresolved external symbol __imp_CryptAcquireContextW referenced in function "void __cdecl FX_Random_GenerateMT(unsigned int *,int)" (?FX_Random_GenerateMT@@YAXPEAIH@Z)
fx_extension.obj : error LNK2019: unresolved external symbol __imp_CryptReleaseContext referenced in function "void __cdecl FX_Random_GenerateMT(unsigned int *,int)" (?FX_Random_GenerateMT@@YAXPEAIH@Z)
fx_extension.obj : error LNK2019: unresolved external symbol __imp_CryptGenRandom referenced in function "void __cdecl FX_Random_GenerateMT(unsigned int *,int)" (?FX_Random_GenerateMT@@YAXPEAIH@Z)
fx_ge.obj : error LNK2019: unresolved external symbol "private: void __cdecl CFX_GEModule::InitPlatform(void)" (?InitPlatform@CFX_GEModule@@AEAAXXZ) referenced in function "private: __cdecl CFX_GEModule::CFX_GEModule(char const * *,class CCodec_ModuleMgr *)" (??0CFX_GEModule@@AEAA@PEAPEBDPEAVCCodec_ModuleMgr@@@Z)
fx_ge.obj : error LNK2019: unresolved external symbol "private: void __cdecl CFX_GEModule::DestroyPlatform(void)" (?DestroyPlatform@CFX_GEModule@@AEAAXXZ) referenced in function "private: __cdecl CFX_GEModule::~CFX_GEModule(void)" (??1CFX_GEModule@@AEAA@XZ)
release\texmaker.exe : fatal error LNK1120: 19 unresolved externals
jom: D:\Artifex\build-texmaker-Desktop_Qt_5_9_1_MSVC2015_64bit-Debug\Makefile.Release [release\texmaker.exe] Error 1120
jom: D:\Artifex\build-texmaker-Desktop_Qt_5_9_1_MSVC2015_64bit-Debug\Makefile [release] Error 2
15:04:01: The process "D:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project texmaker (kit: Desktop Qt 5.9.1 MSVC2015 64bit)
When executing step "Make"
15:04:01: Elapsed time: 00:41.
4

0 回答 0