While I haven’t compiled from source in a couple of years, my guess is that you are using the development head source and there is a missing .h file. Try moving back to one of the release points (0.9.6 for instance) and compiling that.
Thanks for the answer! But what are the software versions (i.e. the versions of fritzing, libgit2, qt, boost, VS and etc.) did you use to get your successful build?
I built Fritzing version 0.9.9, using the following software:
Visual Studio 2019
QT 5.15.2
Python 3.9.4
Git 2.31.1
CMake 3.21.1
Boost 1.75.0
libgit2 v1.1.0
Earlier this year I built v 0.9.6 with the same suite of software/versions. I was also able to build 0.9.6 with VS 2017 and QT 5.12.7, remaining software/versions as per the list above.
Note that using VS2019 and 5.15.2 needs some tweaking of the file “\fritzing-app\tools\release_fritzing.bat” . If you use VS 2017 and QT 5.12.7, the file works as is.
Hello, I tried following your instructions and I was able to run Fritzing x64 using qt creator. However, when I tried to build using VS 2019 developer console I was only able to build the x86 version not the x64 one. The error code is descripted in the attached image. My machine’s architecture x64 and i used boost 1.7.7, libgit 1.30 and python 3.9.4 for my sucessful x86 build. Do you have any insight on how to solve this issue? Thank you very much for the help!
@BurneDCorposE, unfortunately, I don’t think I will be able to help you much, I only built it using qt creator. I never had to use VS developer console. However, looking at your snapshot, it looks like the VS environment may be set up for a x86 build which would create some conflicts. Sorry, cannot help you much more.
Robert
It was related to what you said. I tried with the native x64 command prompt for VS2019 and the same error occurred. So, as another measure I tried uninstalling the x86 msvc2019 compiler from my Qt installation and then it worked. It was probably some bug with the .bat script that used the wrong compiler version. Thanks for all the help!
Hi! I also got the same error while compiling. I found that the header files can be generated from the Makefile by manually running the compiler_uic_make_all target.
Therefore, the workaround I have is to go to your build directory (mine is build-phoenix-Desktop_Qt_5_12_12_MSVC2017_64bit-Debug) and invoke jom.exe on Makefile.Debug: