Help for building.

All development related issues welcome

Moderator: Moderator Team

Post Reply
JimmyKudo
Posts: 1
Joined: Wed Oct 10, 2018 6:41 pm

Help for building.

Post by JimmyKudo » Wed Oct 10, 2018 7:01 pm

Hello. I downloaded the source from Github, extracted the folder. Then installed Ros Build Environment and chose that folder path when asked for source folder. After install, when I use cmake, it says no target set for cmake (or something). idk whats wrong there. Then i searched on internet, and found that I have to run configure.cmd file. I ran the file and it said unable to locate build environment. then someone one suggested that to use Visual Studio. I already have VS2017 Community installed with all languages. When I open its Command promt, and use configure VSSolution, it generates following error log file:

Code: Select all

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: cl 
Build flags: 
Id flags: 

The output was:
1
Microsoft (R) Build Engine version 15.6.82.30579 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 10-Oct-18 10:00:58 PM.
Project "H:\ReactOS-0.4.9\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
PrepareForBuild:
  Creating directory "Debug\".
  Creating directory "Debug\CompilerIdC.tlog\".
InitializeBuildStatus:
  Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  G:\Visual Studio 2017\VC\Tools\MSVC\14.13.26128\bin\HostX86\x86\CL.exe /c /nologo /W0 /WX- /diagnostics:classic /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc141.pdb" /Gd /TC /analyze- /FC /errorReport:queue CMakeCCompilerId.c
  CMakeCCompilerId.c
Link:
  G:\Visual Studio 2017\VC\Tools\MSVC\14.13.26128\bin\HostX86\x86\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdC.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdC.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdC.lib" /MACHINE:X86 /SAFESEH Debug\CMakeCCompilerId.obj
LINK : fatal error LNK1104: cannot open file 'ucrtd.lib' [H:\ReactOS-0.4.9\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdC\CompilerIdC.vcxproj]
Done Building Project "H:\ReactOS-0.4.9\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdC\CompilerIdC.vcxproj" (default targets) -- FAILED.

Build FAILED.

"H:\ReactOS-0.4.9\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) ->
(Link target) -> 
  LINK : fatal error LNK1104: cannot open file 'ucrtd.lib' [H:\ReactOS-0.4.9\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdC\CompilerIdC.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:03.44


Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
Microsoft (R) C/C++ Optimizing Compiler Version 19.13.26129 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: cl 
Build flags: 
Id flags: 

The output was:
1
Microsoft (R) Build Engine version 15.6.82.30579 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 10-Oct-18 10:01:03 PM.
Project "H:\ReactOS-0.4.9\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
PrepareForBuild:
  Creating directory "Debug\".
  Creating directory "Debug\CompilerIdCXX.tlog\".
InitializeBuildStatus:
  Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  G:\Visual Studio 2017\VC\Tools\MSVC\14.13.26128\bin\HostX86\x86\CL.exe /c /nologo /W0 /WX- /diagnostics:classic /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc141.pdb" /Gd /TP /analyze- /FC /errorReport:queue CMakeCXXCompilerId.cpp
  CMakeCXXCompilerId.cpp
Link:
  G:\Visual Studio 2017\VC\Tools\MSVC\14.13.26128\bin\HostX86\x86\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdCXX.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdCXX.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdCXX.lib" /MACHINE:X86 /SAFESEH Debug\CMakeCXXCompilerId.obj
LINK : fatal error LNK1104: cannot open file 'ucrtd.lib' [H:\ReactOS-0.4.9\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdCXX\CompilerIdCXX.vcxproj]
Done Building Project "H:\ReactOS-0.4.9\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets) -- FAILED.

Build FAILED.

"H:\ReactOS-0.4.9\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) ->
(Link target) -> 
  LINK : fatal error LNK1104: cannot open file 'ucrtd.lib' [H:\ReactOS-0.4.9\output-VS-i386-sln\CMakeFiles\3.2.1-ReactOS\CompilerIdCXX\CompilerIdCXX.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:02.62


Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
Microsoft (R) C/C++ Optimizing Compiler Version 19.13.26129 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]
It doesnt work in ROS BE and doesnt work in VS2017. Help me. I had installed Windows SDK aswell, still not working. Although, executing configure.cmd file in VS2017 Command Prompt without any parameter worked. But I want to use VS2017 what to do??

oldman
Posts: 1072
Joined: Sun Dec 20, 2009 1:23 pm

Re: Help for building.

Post by oldman » Wed Oct 10, 2018 7:20 pm

Please keep the Windows classic (9x/2000) look and feel.
The layman's guides to - debugging - bug reporting - compiling - with some complementary scripts.
They may help you with a problem, so do have a look at them.

ThFabba
Developer
Posts: 263
Joined: Sun Jul 11, 2010 11:39 am

Re: Help for building.

Post by ThFabba » Fri Oct 12, 2018 8:06 am

When building with RosBE, make sure that RosBE's CMake is the one in your PATH. "cmake --version" should return "cmake version 3.2.1-ReactOS". If that's not the case, try "where cmake", and "echo %PATH%" to see where CMake is found. Remove the offending folder from your PATH if necessary ("set PATH=new_value" (with new_value being a copy of the result of the echo command but with the problematic path removed). If this doesn't work, please paste the output of all of the above commands here, as well as the output of running configure.cmd.

To build with MSVC, use the Ninja build, not VSSolution mode. Also make sure RosBE's CMake is in your PATH, e.g. "set PATH=C:\RosBE\bin;%PATH%" ("cmake --version" to verify). Then run configure.cmd (with no arguments) and use "ninja" to build rather than msbuild.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest