[solved] Error while building QCAD

Drop in here to discuss whatever you want.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
pavanpongle
Registered Member
Posts: 2
Joined: Sat Sep 26, 2015 9:44 am

[solved] Error while building QCAD

Post by pavanpongle » Sat Sep 26, 2015 11:38 am

Hi,

I am very new to developing world

I am not able to build the QCAD 3.10.0.0 version,
I followed following steps :
1. Installed Qt 5.5 on Windows 7 64 bit.
2. Using Qt creator opened qcad.pro file and started for build in release, I encountered several linking errors as

link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /DLL /SUBSYSTEM:WINDOWS /OUT:C:\qcad-3.10.0.0\qcad-3.10.0.0\release\qcadcore.dll @C:\Users\pavan\AppData\Local\Temp\qcadcore.dll.4620.231365.jom
   Creating library C:\qcad-3.10.0.0\qcad-3.10.0.0\release\qcadcore.lib and object C:\qcad-3.10.0.0\qcad-3.10.0.0\release\qcadcore.exp
opennurbs.lib(opennurbs_font.obj) : error LNK2019: unresolved external symbol __imp__ReleaseDC@8 referenced in function "public: static bool __cdecl ON_Font::IsSymbolFontFaceName(wchar_t const *)" (?IsSymbolFontFaceName@ON_Font@@SA_NPB_W@Z)
opennurbs.lib(opennurbs_font.obj) : error LNK2019: unresolved external symbol __imp__EnumFontFamiliesExW@20 referenced in function "public: static bool __cdecl ON_Font::IsSymbolFontFaceName(wchar_t const *)" (?IsSymbolFontFaceName@ON_Font@@SA_NPB_W@Z)
opennurbs.lib(opennurbs_font.obj) : error LNK2019: unresolved external symbol __imp__GetDC@4 referenced in function "public: static bool __cdecl ON_Font::IsSymbolFontFaceName(wchar_t const *)" (?IsSymbolFontFaceName@ON_Font@@SA_NPB_W@Z)
opennurbs.lib(opennurbs_font.obj) : error LNK2019: unresolved external symbol __imp__DeleteObject@4 referenced in function "public: int __thiscall ON_Font::HeightOfI(void)const " (?HeightOfI@ON_Font@@QBEHXZ)
opennurbs.lib(opennurbs_font.obj) : error LNK2019: unresolved external symbol __imp__GetPath@16 referenced in function "public: int __thiscall ON_Font::HeightOfI(void)const " (?HeightOfI@ON_Font@@QBEHXZ)
opennurbs.lib(opennurbs_font.obj) : error LNK2019: unresolved external symbol __imp__EndPath@4 referenced in function "public: int __thiscall ON_Font::HeightOfI(void)const " (?HeightOfI@ON_Font@@QBEHXZ)
opennurbs.lib(opennurbs_font.obj) : error LNK2019: unresolved external symbol __imp__ExtTextOutW@32 referenced in function "public: int __thiscall ON_Font::HeightOfI(void)const " (?HeightOfI@ON_Font@@QBEHXZ)
opennurbs.lib(opennurbs_font.obj) : error LNK2019: unresolved external symbol __imp__BeginPath@4 referenced in function "public: int __thiscall ON_Font::HeightOfI(void)const " (?HeightOfI@ON_Font@@QBEHXZ)
opennurbs.lib(opennurbs_font.obj) : error LNK2019: unresolved external symbol __imp__SetBkMode@8 referenced in function "public: int __thiscall ON_Font::HeightOfI(void)const " (?HeightOfI@ON_Font@@QBEHXZ)
opennurbs.lib(opennurbs_font.obj) : error LNK2019: unresolved external symbol __imp__SelectObject@8 referenced in function "public: int __thiscall ON_Font::HeightOfI(void)const " (?HeightOfI@ON_Font@@QBEHXZ)
opennurbs.lib(opennurbs_font.obj) : error LNK2019: unresolved external symbol __imp__CreateFontIndirectW@4 referenced in function "public: int __thiscall ON_Font::HeightOfI(void)const " (?HeightOfI@ON_Font@@QBEHXZ)
opennurbs.lib(opennurbs_string.obj) : error LNK2019: unresolved external symbol __imp__LoadStringA@16 referenced in function "public: bool __thiscall ON_String::LoadResourceString(struct HINSTANCE__ *,unsigned int)" (?LoadResourceString@ON_String@@QAE_NPAUHINSTANCE__@@I@Z)
opennurbs.lib(opennurbs_wstring.obj) : error LNK2019: unresolved external symbol __imp__LoadStringW@16 referenced in function "public: bool __thiscall ON_wString::LoadResourceString(struct HINSTANCE__ *,unsigned int)" (?LoadResourceString@ON_wString@@QAE_NPAUHINSTANCE__@@I@Z)
C:\qcad-3.10.0.0\qcad-3.10.0.0\release\qcadcore.dll : fatal error LNK1120: 13 unresolved externals
jom: C:\qcad-3.10.0.0\build-qcad-Desktop_Qt_5_5_0_MSVC2010_32bit-Release\src\core\Makefile.Release [C:\qcad-3.10.0.0\qcad-3.10.0.0\release\qcadcore.dll] Error 1120
jom: C:\qcad-3.10.0.0\build-qcad-Desktop_Qt_5_5_0_MSVC2010_32bit-Release\src\core\Makefile [release] Error 2
jom: C:\qcad-3.10.0.0\build-qcad-Desktop_Qt_5_5_0_MSVC2010_32bit-Release\src\Makefile [sub-core-make_first-ordered] Error 2
jom: C:\qcad-3.10.0.0\build-qcad-Desktop_Qt_5_5_0_MSVC2010_32bit-Release\Makefile [sub-src-make_first-ordered] Error 2
14:23:03: The process "C:\Qt\Qt5.5.0\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project qcad (kit: Desktop Qt 5.5.0 MSVC2010 32bit)
When executing step "Make"

I followed another method using visual studio 2010 + Qt addin on Qt 4.8.4 on windows 8.1 64 bit
Qt plugin created automatically .sln files for project, here i was able to build the source code successfully, but while running project output is like that program exited with return 1.
when i debugged i found there was error in execution of startup script (autostart.js) the exception is " QPainTextEdit not found". I am not able to resolved this error

I followed another method using visual studio 2010 + Qt addin on Qt 5.5.0 on windows 7 64 bit
here i encountered 

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(17): error C2371: 'int8_t' : redefinition; different basic types
17>          c:\qcad-master\qcad-master\src\3rdparty\spatialindexnavel\include\spatialindex\tools/Tools.h(32) : see declaration of 'int8_t'
please help me to resolve these

pavanpongle
Registered Member
Posts: 2
Joined: Sat Sep 26, 2015 9:44 am

Re: Error while building QCAD

Post by pavanpongle » Sun Sep 27, 2015 4:27 pm

I downloaded new code from master branch (github), now all problems are resolved :D

Post Reply

Return to “Chat”