Get error then i run build:
[dotnet build] in directory: /opt/buildagent/work/d19a958ec8a4811c
[08:40:52] [dotnet build] Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET
[08:40:52] [dotnet build] Copyright (C) Microsoft Corporation. All rights reserved.
[08:40:52] [dotnet build]
[08:40:54] [dotnet build] /usr/share/dotnet/sdk/6.0.100/NuGet.targets(289,5): error MSB3202: The project file "/opt/buildagent/work/d19a958ec8a4811c/src/Vismo/Vismo.csproj" was not found.
[08:40:54] [dotnet build]
[08:40:54] [dotnet build] Build FAILED.
[08:40:54] [dotnet build]
[08:40:54] [dotnet build] 0 Warning(s)
[08:40:54] [dotnet build] 1 Error(s)
[08:40:54] [dotnet build]
[08:40:54] [dotnet build] Time Elapsed 00:00:01.60
[08:40:54] [dotnet build] Process exited with code 1
[08:40:54] [dotnet build] Process exited with code 1 (Step: Build .NET (.NET))
But in agent dir this file i find:
root#345d573c963:/# find / -name Vismo.csproj
/opt/buildagent/work/d19a958ec8a4811c/src/Vismo/Vismo.csproj
I am doing something wrong? What am I missing?
Thanks.
The above example is incorrect. VIsmo, not Vismo.
I'm missing a big letter
Related
im trying to set up my vs and vsc to run opencv with cuda but im getting this error when i try to include it in my program
[build] Starting build
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --build "c:/Users/hamoz/Documents/OCV C++ VSC/build" --config Release --target opencvgputest -j 14 --
[build] MSBuild version 17.4.1+9a89d02ff for .NET Framework
[build] main.cpp
[build] C:\Users\hamoz\Documents\OCV C++ VSC\main.cpp(8,21): error C2871: 'Cuda': a namespace with this name does not exist [C:\Users\hamoz\Documents\OCV C++ VSC\build\opencvgputest.vcxproj]
[build] C:\Users\hamoz\Documents\OCV C++ VSC\main.cpp(9,20): error C2871: 'dnn': a namespace with this name does not exist [C:\Users\hamoz\Documents\OCV C++ VSC\build\opencvgputest.vcxproj]
[build] C:\Users\hamoz\Documents\OCV C++ VSC\main.cpp(13,5): error C3861: 'printCudaDeviceInfo': identifier not found [C:\Users\hamoz\Documents\OCV C++ VSC\build\opencvgputest.vcxproj]
[proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" --build "c:/Users/hamoz/Documents/OCV C++ VSC/build" --config Release --target opencvgputest -j 14 -- exited with code: 1
[build] Build finished with exit code 1
[main] Failed to prepare executable target with name "undefined"
both cuda and dnn are in the bin file for opencv and WITH_CUDA and WITH_CUDNN are on on cmake config
i tried checking the directories tried modifying my CMakeLists.txt file but no use
sometimes when i try to build a cpp program "mingw32-make.exe *** all error 1" error occurs and error goes away when you rebuild the program although it does not happens every time. i use gcc++ compiler on codelite.
here is the full build error i get:
C:\WINDOWS\system32\cmd.exe /C C:/MinGW/bin/mingw32-make.exe -j8
SHELL=cmd.exe -e -f Makefile
"----------Building project:[ lab1 - Debug ]----------"
The system cannot find the path specified.
mingw32-make.exe: *** [All] Error 1
Makefile:4: recipe for target 'All' failed
====1 errors, 0 warnings====*
would be grateful if someone could help me fixing this.
This question is kind of related to my earlier question of compiling and linking ngspice.
ngspice depends on tcl/tk so I have to build it.
I managed to build tcl in release configuration but everything else is failing.
I created a batch based on the information given on this website.
#ECHO OFF
set "vcvars32_bat=C:\LegacyApp\Microsoft Visual Studio 12.0\VC\bin\vcvars32.bat"
REM SET VARIABLES
call "%vcvars32_bat%"
set "TCLDIR=..\..\tcl8.6.4"
echo Building tcl Release 32
cd tcl8.6.4\win\
nmake -f makefile.vc > ..\..\tcl_Release32.log 2>&1
cd ..\..\
echo Building tk Release 32
cd tk8.6.4\win\
nmake -f makefile.vc > ..\..\tk_Release32.log 2>&1
cd ..\..\
echo Building tcl Debug 32
cd tcl8.6.4\win\
nmake -f makefile.vc OPTS=symbols > ..\..\tcl_Debug32.log 2>&1
cd ..\..\
echo Building tk Debug 32
cd tk8.6.4\win\
nmake -f makefile.vc OPTS=symbols > ..\..\tk_Debug32.log 2>&1
cd ..\..\
pause
exit 0
I added a bunch of messages to the makefiles so I can see whats going on.
makefile.vc depends on rules.vc. Somehow a custom "make helper" is also involved.
Here is some partial output:
Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
Copyright (C) Microsoft Corporation. All rights reserved.
makefile.vc
rules.vc
vercl.x
===============================================================================
*** Compiler has 'Optimizations'
*** Compiler does not have 'Pentium 0x0f fix'
*** Linker does not have 'Win98 alignment problem'
*** Doing symbols
*** Intermediate directory will be '.\Debug_VC12\tcl_ThreadedDynamic'
*** Output directory will be '.\Debug_VC12'
*** Suffix for binaries will be 'tg'
*** Optional defines are '-DTCL_CFGVAL_ENCODING=\"cp1252\" -DSTDC_HEADERS -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1'
*** Compiler version 12. Target machine is IX86
*** Host architecture is AMD64
*** Compiler options '-W3 -DUNICODE -D_UNICODE -Ot -Oi -fp:strict -Gs -GS -GL -RTC1 -W3'
*** Link options '-ltcg'
cdebug = -Zi -WX -RTC1
ldebug = -debug -debugtype:cv
lflags = -nologo -machine:IX86 -ltcg -debug -debugtype:cv
dlllflags = -nologo -machine:IX86 -ltcg -debug -debugtype:cv -dll
conlflags = -nologo -machine:IX86 -ltcg -debug -debugtype:cv -subsystem:console
guilflags = -nologo -machine:IX86 -ltcg -debug -debugtype:cv -subsystem:windows
*** Dependency rules are not being used.
Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
Copyright (C) Microsoft Corporation. All rights reserved.
===============================================================================
*** Compiler has 'Optimizations'
*** Compiler does not have 'Pentium 0x0f fix'
*** Linker does not have 'Win98 alignment problem'
*** Doing symbols
*** Intermediate directory will be '.\Debug_VC12\itcl_ThreadedDynamic'
*** Output directory will be '.\Debug_VC12'
*** Suffix for binaries will be 'tg'
*** Optional defines are '-DTCL_CFGVAL_ENCODING=\"cp1252\" -DSTDC_HEADERS -DTCL_THREADS=1'
*** Compiler version 12. Target machine is IX86
*** Host architecture is AMD64
*** Compiler options ' -Ot -Oi -fp:strict -Gs -GS -GL -RTC1 -W3'
*** Link options '-ltcg'
link -nologo -machine:IX86 -ltcg -debug:full -debugtype:cv -subsystem:windows -dll -base:#D:\Include\CPP\TCLTK\tcl8.6.4\win\..\win\coffbase.txt,itcl -out:".\Debug_VC12\itcl40tg.dll" "D:\Include\CPP\TCLTK\tcl8.6.4\win\..\win\Debug_VC12\tclstub86.lib" #C:\Users\HIRSCH~1\AppData\Local\Temp\nm8789.tmp
LINK : fatal error LNK1117: syntax error in option 'debug:full'
NMAKE : fatal error U1077: '"C:\LegacyApp\Microsoft Visual Studio 12.0\VC\BIN\link.EXE"' : return code '0x45d'
Stop.
Note that nmake is called a second time with different options and I don't know why or from where.
Is there a known solution to the issues that I am experiencing?
EDIT:
I am still on it. 'nmakehlp.exe' seems harmless. I edited a tracelog into it and the tool uses system calls to identify if compiler or linker options are valid. If I use it to see if the linker option '-debug:full' is valid it correctly identifies the error. I still am clueless when it comes to the additional calls to nmake. a textsearch on all files did not reveal where '-debug:full' or its fragments come from.
Version 8.5.18 does not have that issue so I just build that now instead of 8.6.4.
I use this batch to help with building.
#echo off
set "vcvars32_bat=D:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\vcvars32.bat"
set "VERSION=8.5.18"
set "TCL=tcl%VERSION%"
set "TK=tk%VERSION%"
set "TCLDIR=..\..\%TCL%"
echo %time% > Build.log
echo "%vcvars32_bat%" >> Build.log
call "%vcvars32_bat%" >> Build.log 2>&1
echo %time% >> Build.log
call:JMP_Build32 %TCL% symbols TCLDebug32.log
call:JMP_Build32 %TCL% "" TCLRelease32.log
call:JMP_Build32 %TK% symbols TKDebug32.log
call:JMP_Build32 %TK% "" TKRelease32.log
exit 0
:JMP_Build32
echo Building '%1' '%2' '%3'
cd %1\win\
echo %time%> ..\..\%3
del nmakehlp.exe >> ..\..\%3 2>&1
nmake -f makefile.vc OPTS=%2 >> ..\..\%3 2>&1
echo %time%>> ..\..\%3
cd ..\..\
goto:eof
The call to nmake -f makefile.vc results in subsequent calls to other makefile.vc files in sister directories. If you face similar issues you should include those in your search.
I want to implement the event logging as specified in the link below
http://msdn.microsoft.com/en-us/library/windows/desktop/aa363680(v=vs.85).aspx
I can successfully create a provider.rc, provider.h and provider.res as it is.
But when I try create the link -dll -noentry provider.res it gives me the following error
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
LINK : warning LNK4068: /MACHINE not specified; defaulting to X86
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
I even tried the command below
link /MACHINE:X64 -dll -noentry provider.res
Still gave this error
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
If this is of any use I used Windows Server 2008 R2 64 bit OS.
Edit: I have also tried the following method provided in the link.
http://msdn.microsoft.com/en-us/library/24b2tcy0.aspx
It uses .rc file i have previously generated using mc command.
specified both NO INCREMENTAL and NO ENTRY option as specified.
Still not working. Gives the following error
Build started 3/5/2014 11:50:16 AM.
InitializeBuildStatus:
Touching "Debug\evtlog.unsuccessfulbuild".
ClCompile:
All outputs are up-to-date.
All outputs are up-to-date.
ResourceCompile:
All outputs are up-to-date.
evtlog.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
Build FAILED.
Time Elapsed 00:00:00
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I'm receiving a cmake error while configuring with cmake-gui:
The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/bin/cl.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/admin/Desktop/myproject/CMakeFiles/CMakeTmp
Run Build Command:c:\PROGRA~2\MICROS~1.0\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec
Microsoft (R) Visual Studio Version 9.0.21022.8.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Build started: Project: cmTryCompileExec, Configuration:
Debug Win32 ------
1>Compiling...
1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for
80x86
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>cl /D "CMAKE_INTDIR=\"Debug\"" /D "_MBCS" /FD /MT
/Fo"cmTryCompileExec.dir\Debug\\"
/Fd"C:\Users\admin\Desktop\myproject\CMakeFiles\CMakeTmp\Debug/cmTryCompileExec.pdb"
/c /TC .\testCCompiler.c
1>testCCompiler.c
1>Linking...
1>LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
1>Build log was saved at
"file://C:\Users\admin\Desktop\myproject\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"
1>cmTryCompileExec - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
why can't cmake let the vs compiler find the libraries it needs?
I had a rc.exe not-found error on my visual studio 2008 installation. Solved it, solved the abovementioned problem.
Sorry for troubling you.