Khalil Khalaf
Khalil Khalaf

Reputation: 9407

File does not exist - dependent error. Issue in building the open source application QCAD

I am on Windows 10 - 64 bits.

Goal:

I am trying to build this Open Source application QCAD and following there Instructions in Compiling QCAD from Sources. Following "Windows" section, I have done this:

Problem:

Once I build in QT Creator as MSVC2013->Debug->Mainwindow, I get 8 duplicated errors:

D:\VisualStudio2015\VC\include\stdint.h:17: error: C2371: 'int8_t': redefinition; different basic types

If I search for int8_t I find bunch of its usage and couple of its definitions:

Now if I comment out both statements in the second definition (In tools.h) I get some warnings and an error:

dependent '............\Q-CAD\src\3rdparty\qt-labs-qtscriptgenerator-5.5.0\generated_cpp\com_trolltech_qt_core\qtscript_Global.cpp' does not exist.

Attempts:

Can you help me accomplish this?

EDIT:

"Now if I comment out both statements in the second definition" I just commented these couple lines in Tools.h: (No accidents occurred and if I un-comment them I get the previous error).

enter image description here

Upvotes: 0

Views: 2680

Answers (2)

Khalil Khalaf
Khalil Khalaf

Reputation: 9407

For some reason, when I un-checked the "Shadow Build" in Projects Settings of QT Creator on all: Debug, Profile and Release; and I ReBuilt All, It worked like a charm.

It took some time to ReBuild though.

Upvotes: 0

vicrion
vicrion

Reputation: 1733

From the supported platforms, it only mentions msvc2010 and msvc2013; you are trying to build using msvc2015 which is not supported. Try to change the compiler and see if it works.

Upvotes: 1

Related Questions