Build error - MS Visual Studio Express 11 2012 x64, QT5

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
PetkoSmetko
Posts: 6
Joined: Tue Oct 20, 2015 9:27 am

Build error - MS Visual Studio Express 11 2012 x64, QT5

Post by PetkoSmetko »

Hi
I am trying to build CC only.
When I run 'ALL_BUILD' then I have got this error:

Code: Select all

Error	1	error : process for C:/Users/admin/Documents/GitHub/CC/trunk/build/libs/qCC_db/moc_ccClipBox.cpp failed:	C:\Users\admin\Documents\GitHub\CC\trunk\build\libs\qCC_db\AUTOGEN	QCC_DB_LIB
Error	2	error : process for C:/Users/admin/Documents/GitHub/CC/trunk/build/libs/qCC_db/moc_ccOctree.cpp failed:	C:\Users\admin\Documents\GitHub\CC\trunk\build\libs\qCC_db\AUTOGEN	QCC_DB_LIB
Error	3	error : process for C:/Users/admin/Documents/GitHub/CC/trunk/build/libs/qCC_db/moc_ccProgressDialog.cpp failed:	C:\Users\admin\Documents\GitHub\CC\trunk\build\libs\qCC_db\AUTOGEN	QCC_DB_LIB
Error	4	error MSB3073: The command "setlocal
cd C:\Users\admin\Documents\GitHub\CC\trunk\build\libs\qCC_db
if %errorlevel% neq 0 goto :cmEnd
C:
if %errorlevel% neq 0 goto :cmEnd
"C:\Program Files (x86)\CMake\bin\cmake.exe" -E cmake_autogen C:/Users/admin/Documents/GitHub/CC/trunk/build/libs/qCC_db/CMakeFiles/QCC_DB_LIB_automoc.dir/ Debug
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" exited with code 1.	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets	124	5	QCC_DB_LIB
and so one.

I could see that this files are missing on my HDD.

Here is my CMake configuration:
Image

I am trying to build only basic CC without any unnecessary features.
  • Software configuration:
  • Windows 7 x64 - in Virtualbox
  • CMake v3.3.2
  • QT 5.5.1
  • MS Visual Studio Express 11 2012 x64
  • CC source code -clone from github -depth=1
Thank you
Peter
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Build error - MS Visual Studio Express 11 2012 x64, QT5

Post by daniel »

Well, the moc files should be dynamically generated. And this is apparently failing on your side.

Can you try to create the Visual project in a folder 'outside' of the 'trunk' (i.e. don't use '/trunk/build' as build directory)?

I believe there's a warning about this in the documentation. However I'm not sure this is the reason of the problem here ;)
Daniel, CloudCompare admin
PetkoSmetko
Posts: 6
Joined: Tue Oct 20, 2015 9:27 am

Re: Build error - MS Visual Studio Express 11 2012 x64, QT5

Post by PetkoSmetko »

Hi Daniel

Thank you for your response.

I found out when I run cmake.exe -E cmake_autogen from command line that I am missing MSVCP120.dll.

I downloaded and installed Visual C++ Redistributable Packages for Visual Studio 2013

Thanks
Peter
PetkoSmetko
Posts: 6
Joined: Tue Oct 20, 2015 9:27 am

Re: Build error - MS Visual Studio Express 11 2012 x64, QT5

Post by PetkoSmetko »

Advice: download Visual Studio and Qt which are compatible (I downloaded Qt for Visual Studio 13 and Visual Studio 2012 - and I was surprise that it doesn’t want to link project together).
Post Reply