Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About CMake " include(Common)" #566

Open
witent opened this issue Jun 18, 2016 · 2 comments
Open

About CMake " include(Common)" #566

witent opened this issue Jun 18, 2016 · 2 comments

Comments

@witent
Copy link

witent commented Jun 18, 2016

Line 21 in CMakeLists.txt file shows
“ include(Common)”
Would anyone please advise what the "Common" file is and where it can found.
Because when I run Build.bat in Win 7, I encounter such a problem "CMake Error at CMakeLists.txt:21 (include):
include could not find load file:
Common
CMake Error at CMake/configure.cmake:12 (common_find_package):
Unknown CMake command "common_find_package".
Call Stack (most recent call first):
CMakeLists.txt:48 (include)
".

@eile
Copy link
Member

eile commented Jun 21, 2016

An earlier step in your cmake run likely failed. Common.cmake is cloned as part of the .gitexternals setup into CMake/common. I would guess cmake did not find git or failed to execute the clone.

@witent
Copy link
Author

witent commented Jun 22, 2016

@eile Thank you very much, EILE.According to your opinion I solve the problem.But I encounter another problem when running" build.bat":
1._D:\VS_work\Equalizer\Equalizer_Git1\Servus\tests\servus.cpp(135): error
C2039: ## 'Sleep' : is not a member of '`global namespace'' [D:\VS_work\Equ
alizer\Equalizer_Git1\build\Servus\tests\Servus-test-servus.vcxproj]
2._d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
ead.h(291): fatal error C1083: # Cannot open include file: 'sched.h': No s
uch file or directory
[D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
x\pthread.vcxproj]

Would you please give me some advice about this.

Thanks again.

PS:The complete output file of " build.bat" is as follows:

     if %errorlevel% neq 0 goto :VCEnd
     :VCEnd
 1>Project "D:\VS_work\Equalizer\Equalizer_Git1\build\ALL_BUILD.vcxproj" (1
   ) is building "D:\VS_work\Equalizer\Equalizer_Git1\build\Servus\apps\ser
   vusBrowser.vcxproj" (116) on node 4 (default targets).

116>InitializeBuildStatus:
Creating "servusBrowser.dir\Debug\servusBrowser.tlog\unsuccessfulbuild
" because "AlwaysCreate" was specified.
PreBuildEvent:
Description: Automatic moc, uic and rcc for target servusBrowser
setlocal
cd D:\VS_work\Equalizer\Equalizer_Git1\build\Servus\apps
if %errorlevel% neq 0 goto :cmEnd
D:
if %errorlevel% neq 0 goto :cmEnd
"C:\Program Files (x86)\CMake\bin\cmake.exe" -E cmake_autogen D:/VS_wo
rk/Equalizer/Equalizer_Git1/build/Servus/apps/CMakeFiles/servusBrowser
_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
95>CustomBuild:
All outputs are up-to-date.
ClCompile:
All outputs are up-to-date.
96>CustomBuild:
All outputs are up-to-date.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64\C
L.exe /c /IC:\local\boost_1_61_0 /IC:\Qt\Qt5.6.0\5.6\msvc2015_64\inclu
de /IC:\Qt\Qt5.6.0\5.6\msvc2015_64\include\QtCore /I"C:\Qt\Qt5.6.0\5.6
\msvc2015_64.\mkspecs\win32-msvc2015" /IC:\Qt\Qt5.6.0\5.6\msvc2015_64
\include\QtWidgets /IC:\Qt\Qt5.6.0\5.6\msvc2015_64\include\QtGui /ID:
VS_work\Equalizer\Equalizer_Git1\Servus /ID:\VS_work\Equalizer\Equaliz
er_Git1\build\Servus\include /ID:\VS_work\Equalizer\Equalizer_Git1\bui
ld\Servus /Zi /nologo /W3 /WX /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG
/D WIN32 /D _WINDOWS /D _CRT_SECURE_NO_WARNINGS /D _SCL_SECURE_NO_WARN
INGS /D BOOST_ALL_NO_LIB /D Boost_NO_BOOST_CMAKE /D WARN_DEPRECATED /D
SERVUS_LITTLEENDIAN=1 /D SERVUS_USE_BOOST=1 /D SERVUS_USE_QT5CORE=1 /
D SERVUS_USE_QT5WIDGETS=1 /D SERVUS_USE_THREADS=1 /D BOOST_TEST_DYN_LI
NK /D QT_CORE_LIB /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /EHsc /RTC
1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /GR /Fo"Servus-test-se
rvus.dir\Debug" /Fd"Servus-test-servus.dir\Debug\vc120.pdb" /Gd /TP
/wd4068 /wd4244 /wd4800 /wd4351 /errorReport:queue /Zm500 D:\VS_work
Equalizer\Equalizer_Git1\Servus\tests\servus.cpp
116>CustomBuild:
All outputs are up-to-date.
ClCompile:
All outputs are up-to-date.
1>Project "D:\VS_work\Equalizer\Equalizer_Git1\build\ALL_BUILD.vcxproj" (1
) is building "D:\VS_work\Equalizer\Equalizer_Git1\build\Servus\tests\Se
rvus-test-uri.vcxproj" (97) on node 1 (default targets).
97>InitializeBuildStatus:
Creating "Servus-test-uri.dir\Debug\Servus-test-uri.tlog\unsuccessfulb
uild" because "AlwaysCreate" was specified.
PreBuildEvent:
Description: Automatic moc, uic and rcc for target Servus-test-uri
setlocal
cd D:\VS_work\Equalizer\Equalizer_Git1\build\Servus\tests
if %errorlevel% neq 0 goto :cmEnd
D:
if %errorlevel% neq 0 goto :cmEnd
"C:\Program Files (x86)\CMake\bin\cmake.exe" -E cmake_autogen D:/VS_wo
rk/Equalizer/Equalizer_Git1/build/Servus/tests/CMakeFiles/Servus-test-
uri_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
94>InitializeBuildStatus:
Creating "Servus-test-itemModel.dir\Debug\Servus-t.CBDC0984.tlog\unsuc
cessfulbuild" because "AlwaysCreate" was specified.
PreBuildEvent:
Description: Automatic moc, uic and rcc for target Servus-test-itemMod
el
setlocal
cd D:\VS_work\Equalizer\Equalizer_Git1\build\Servus\tests
if %errorlevel% neq 0 goto :cmEnd
D:
if %errorlevel% neq 0 goto :cmEnd
"C:\Program Files (x86)\CMake\bin\cmake.exe" -E cmake_autogen D:/VS_wo
rk/Equalizer/Equalizer_Git1/build/Servus/tests/CMakeFiles/Servus-test-
itemModel_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
96>ClCompile:
servus.cpp
97>CustomBuild:
All outputs are up-to-date.
94>CustomBuild:
All outputs are up-to-date.
97>ClCompile:
All outputs are up-to-date.
94>ClCompile:
All outputs are up-to-date.
97>Link:
All outputs are up-to-date.
Servus-test-uri.vcxproj -> D:\VS_work\Equalizer\Equalizer_Git1\build\b
in\Debug\test-uri.exe
94>Link:
All outputs are up-to-date.
95>Link:
All outputs are up-to-date.
94>Link:
Servus-test-itemModel.vcxproj -> D:\VS_work\Equalizer\Equalizer_Git1\b
uild\bin\Debug\test-itemModel.exe
95>Link:
Servus-test-uint128_t.vcxproj -> D:\VS_work\Equalizer\Equalizer_Git1\b
uild\bin\Debug\test-uint128_t.exe
94>FinalizeBuildStatus:
Deleting file "Servus-test-itemModel.dir\Debug\Servus-t.CBDC0984.tlog
unsuccessfulbuild".
Touching "Servus-test-itemModel.dir\Debug\Servus-t.CBDC0984.tlog\Servu
s-test-itemModel.lastbuildstate".
94>Done Building Project "D:\VS_work\Equalizer\Equalizer_Git1\build\Servus
tests\Servus-test-itemModel.vcxproj" (default targets).
116>Link:
All outputs are up-to-date.
servusBrowser.vcxproj -> D:\VS_work\Equalizer\Equalizer_Git1\build\bin
\Debug\servusBrowser.exe
FinalizeBuildStatus:
Deleting file "servusBrowser.dir\Debug\servusBrowser.tlog\unsuccessful
build".
Touching "servusBrowser.dir\Debug\servusBrowser.tlog\servusBrowser.las
tbuildstate".
116>Done Building Project "D:\VS_work\Equalizer\Equalizer_Git1\build\Servus
apps\servusBrowser.vcxproj" (default targets).
95>FinalizeBuildStatus:
Deleting file "Servus-test-uint128_t.dir\Debug\Servus-t.4529F8E7.tlog
unsuccessfulbuild".
Touching "Servus-test-uint128_t.dir\Debug\Servus-t.4529F8E7.tlog\Servu
s-test-uint128_t.lastbuildstate".
95>Done Building Project "D:\VS_work\Equalizer\Equalizer_Git1\build\Servus
tests\Servus-test-uint128_t.vcxproj" (default targets).
97>FinalizeBuildStatus:
Deleting file "Servus-test-uri.dir\Debug\Servus-test-uri.tlog\unsucces
sfulbuild".
Touching "Servus-test-uri.dir\Debug\Servus-test-uri.tlog\Servus-test-u
ri.lastbuildstate".
97>Done Building Project "D:\VS_work\Equalizer\Equalizer_Git1\build\Servus
tests\Servus-test-uri.vcxproj" (default targets).
96>D:\VS_work\Equalizer\Equalizer_Git1\Servus\tests\servus.cpp(135): error
C2039: 'Sleep' : is not a member of 'global namespace'' [D:\VS_work\Equ alizer\Equalizer_Git1\build\Servus\tests\Servus-test-servus.vcxproj] 96>D:\VS_work\Equalizer\Equalizer_Git1\Servus\tests\servus.cpp(135): error C3861: 'Sleep': identifier not found [D:\VS_work\Equalizer\Equalizer_Git 1\build\Servus\tests\Servus-test-servus.vcxproj] 96>D:\VS_work\Equalizer\Equalizer_Git1\Servus\tests\servus.cpp(139): error C2039: 'Sleep' : is not a member of 'global namespace'' [D:\VS_work\Equ
alizer\Equalizer_Git1\build\Servus\tests\Servus-test-servus.vcxproj]
96>D:\VS_work\Equalizer\Equalizer_Git1\Servus\tests\servus.cpp(139): error
C3861: 'Sleep': identifier not found [D:\VS_work\Equalizer\Equalizer_Git
1\build\Servus\tests\Servus-test-servus.vcxproj]
96>D:\VS_work\Equalizer\Equalizer_Git1\Servus\tests\servus.cpp(170): error
C2039: 'Sleep' : is not a member of '`global namespace'' [D:\VS_work\Equ
alizer\Equalizer_Git1\build\Servus\tests\Servus-test-servus.vcxproj]
96>D:\VS_work\Equalizer\Equalizer_Git1\Servus\tests\servus.cpp(170): error
C3861: 'Sleep': identifier not found [D:\VS_work\Equalizer\Equalizer_Git
1\build\Servus\tests\Servus-test-servus.vcxproj]
96>Done Building Project "D:\VS_work\Equalizer\Equalizer_Git1\build\Servus
tests\Servus-test-servus.vcxproj" (default targets) -- FAILED.

1>Done Building Project "D:\VS_work\Equalizer\Equalizer_Git1\build\ALL_BUI
LD.vcxproj" (default targets) -- FAILED.

Build FAILED.

   "D:\VS_work\Equalizer\Equalizer_Git1\build\ALL_BUILD.vcxproj" (default t
   arget) (1) ->
   "D:\VS_work\Equalizer\Equalizer_Git1\build\Collage\tests\Collage-test-ba
   rrierException.vcxproj" (default target) (5) ->
   "D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbox\lunchbox\Lunchbox.vc
   xproj" (default target) (7) ->
   "D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbox\pthread.vcxproj" (de
   fault target) (10) ->
   (ClCompile target) ->
     **d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
   ead.h(291): fatal error C1083: Cannot open include file: 'sched.h': No s
   uch file or directory [D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
   x\pthread.vcxproj]
     d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
   ead.h(291): fatal error C1083: Cannot open include file: 'sched.h': No s
   uch file or directory [D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
   x\pthread.vcxproj]
     d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
   ead.h(291): fatal error C1083: Cannot open include file: 'sched.h': No s
   uch file or directory [D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
   x\pthread.vcxproj]
     d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
   ead.h(291): fatal error C1083: Cannot open include file: 'sched.h': No s
   uch file or directory [D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
   x\pthread.vcxproj]
     d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
   ead.h(291): fatal error C1083: Cannot open include file: 'sched.h': No s
   uch file or directory [D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
   x\pthread.vcxproj]
     d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
   ead.h(291): fatal error C1083: Cannot open include file: 'sched.h': No s
   uch file or directory [D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
   x\pthread.vcxproj]
     d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
   ead.h(291): fatal error C1083: Cannot open include file: 'sched.h': No s
   uch file or directory [D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
   x\pthread.vcxproj]
     d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
   ead.h(291): fatal error C1083: Cannot open include file: 'sched.h': No s
   uch file or directory [D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
   x\pthread.vcxproj]
     d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
   ead.h(291): fatal error C1083: Cannot open include file: 'sched.h': No s
   uch file or directory [D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
   x\pthread.vcxproj]
     d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
   ead.h(291): fatal error C1083: Cannot open include file: 'sched.h': No s
   uch file or directory [D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
   x\pthread.vcxproj]
     d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
   ead.h(291): fatal error C1083: Cannot open include file: 'sched.h': No s
   uch file or directory [D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
   x\pthread.vcxproj]
     d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
   ead.h(291): fatal error C1083: Cannot open include file: 'sched.h': No s
   uch file or directory [D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
   x\pthread.vcxproj]
     d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
   ead.h(291): fatal error C1083: Cannot open include file: 'sched.h': No s
   uch file or directory [D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
   x\pthread.vcxproj]
     d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
   ead.h(291): fatal error C1083: Cannot open include file: 'sched.h': No s
   uch file or directory [D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
   x\pthread.vcxproj]
     d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
   ead.h(291): fatal error C1083: Cannot open include file: 'sched.h': No s
   uch file or directory [D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
   x\pthread.vcxproj]
     d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
   ead.h(291): fatal error C1083: Cannot open include file: 'sched.h': No s
   uch file or directory [D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
   x\pthread.vcxproj]
     d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
   ead.h(291): fatal error C1083: Cannot open include file: 'sched.h': No s
   uch file or directory [D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
   x\pthread.vcxproj]
     d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
   ead.h(291): fatal error C1083: Cannot open include file: 'sched.h': No s
   uch file or directory [D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
   x\pthread.vcxproj]
     d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
   ead.h(291): fatal error C1083: Cannot open include file: 'sched.h': No s
   uch file or directory [D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
   x\pthread.vcxproj]
     d:\vs_work\equalizer\equalizer_git1\build\pthreads-w32-2011-03-16\pthr
   ead.h(291): fatal error C1083: Cannot open include file: 'sched.h': No s
   uch file or directory [D:\VS_work\Equalizer\Equalizer_Git1\build\Lunchbo
   x\pthread.vcxproj]**


   "D:\VS_work\Equalizer\Equalizer_Git1\build\ALL_BUILD.vcxproj" (default t
   arget) (1) ->
   "D:\VS_work\Equalizer\Equalizer_Git1\build\Servus\tests\Servus-test-serv
   us.vcxproj" (default target) (96) ->
     D:\VS_work\Equalizer\Equalizer_Git1\Servus\tests\servus.cpp(135): erro
   r C2039: 'Sleep' : is not a member of '`global namespace'' [D:\VS_work\E
   qualizer\Equalizer_Git1\build\Servus\tests\Servus-test-servus.vcxproj]
     D:\VS_work\Equalizer\Equalizer_Git1\Servus\tests\servus.cpp(135): erro
   r C3861: 'Sleep': identifier not found [D:\VS_work\Equalizer\Equalizer_G
   it1\build\Servus\tests\Servus-test-servus.vcxproj]
     D:\VS_work\Equalizer\Equalizer_Git1\Servus\tests\servus.cpp(139): erro
   r C2039: 'Sleep' : is not a member of '`global namespace'' [D:\VS_work\E
   qualizer\Equalizer_Git1\build\Servus\tests\Servus-test-servus.vcxproj]
     D:\VS_work\Equalizer\Equalizer_Git1\Servus\tests\servus.cpp(139): erro
   r C3861: 'Sleep': identifier not found [D:\VS_work\Equalizer\Equalizer_G
   it1\build\Servus\tests\Servus-test-servus.vcxproj]
     D:\VS_work\Equalizer\Equalizer_Git1\Servus\tests\servus.cpp(170): erro
   r C2039: 'Sleep' : is not a member of '`global namespace'' [D:\VS_work\E
   qualizer\Equalizer_Git1\build\Servus\tests\Servus-test-servus.vcxproj]
     D:\VS_work\Equalizer\Equalizer_Git1\Servus\tests\servus.cpp(170): erro
   r C3861: 'Sleep': identifier not found [D:\VS_work\Equalizer\Equalizer_G
   it1\build\Servus\tests\Servus-test-servus.vcxproj]

0 Warning(s)
26 Error(s)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants