PerforceChangeList : error : No matching clients for root - c++

I am syncing and building a project using jenkins with msbuild tool, but I keep getting this error everytime I run the build, either in VS or through Jenkins. I honestly have no idea what it means and I have not found any information on internet. I have another very similar project which runs fine. Any help or what to start checking it would be much appreciated as I have delete and set the job from scratch with the same result. This is the output I get from jenkins:
"C:\Users\User\.jenkins\workspace\Age_3_DE\Source\Age3DE.sln" (default target) (1) ->
"C:\Users\User\.jenkins\workspace\Age_3_DE\Source\age3\age3.vcxproj" (default target) (2) ->
(PreBuildEvent target) ->
PerforceChangeList : error : No matching clients for root=C:\Users\User\.jenkins\workspace\Age_3_DE\ [C:\Users\User\.jenkins\workspace\Age_3_DE\Source\age3\age3.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(128,5): error MSB3073: The command "C:\Users\User\.jenkins\workspace\Age_3_DE\Source\..\Scripts\PerforceChangeList.bat age3 "C:\Users\User\.jenkins\workspace\Age_3_DE\Source\age3\PerforceVersion.inc" "C:\Users\User\.jenkins\workspace\Age_3_DE\Source\age3\resource_version.h" [C:\Users\User\.jenkins\workspace\Age_3_DE\Source\age3\age3.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(128,5): error MSB3073: :VCEnd" exited with code -1. [C:\Users\User\.jenkins\workspace\Age_3_DE\Source\age3\age3.vcxproj]
27 Warning(s)
2 Error(s)
resource_version.h file:
#pragma once
#define VERSION_MAJOR 100
#define VERSION_MINOR 10
#define VERSION_BUILD 0
#define VERSION_STRING "100.10.0.0"
and PerforceVersion.inc:
#pragma once
namespace PerforceInfo {
const char* gChangeList = "00000";
const char* gVersionString = "100.10.0.0";
const char* gUserName = "";
const char* gClientName = "";
const char* gClientHost = "";
const char* gClientRoot = "";
const char* gClientStream = "";
}
Here is an image with the exactly error and the line where the error happens from VS Error

Related

Aruco Marker Generating Visual studio 2019 vc16

I am trying to generate aruco marker using Visual Studio vc16 and opencv 4.70 lib with opencv_contrib.4. After building the libraries, i tried to run a short simple program for generating aruco marker and I got an error that I added after code.
the code that I am using:
#include <opencv2/highgui.hpp>
#include <opencv2/aruco.hpp>
using namespace cv;
namespace {
const char* about = "Create an ArUco marker image";
const char* keys =
"{#outfile |<none> | Output image }"
"{d | | dictionary: DICT_4X4_50=0, DICT_4X4_100=1, DICT_4X4_250=2,"
"DICT_4X4_1000=3, DICT_5X5_50=4, DICT_5X5_100=5, DICT_5X5_250=6, DICT_5X5_1000=7, "
"DICT_6X6_50=8, DICT_6X6_100=9, DICT_6X6_250=10, DICT_6X6_1000=11, DICT_7X7_50=12,"
"DICT_7X7_100=13, DICT_7X7_250=14, DICT_7X7_1000=15, DICT_ARUCO_ORIGINAL = 16}"
"{id | | Marker id in the dictionary }"
"{ms | 200 | Marker size in pixels }"
"{bb | 1 | Number of bits in marker borders }"
"{si | false | show generated image }";
}
int main(int argc, char* argv[]) {
CommandLineParser parser(argc, argv, keys);
parser.about(about);
if (argc < 4) {
parser.printMessage();
return 0;
}
int dictionaryId = parser.get<int>("d");
int markerId = parser.get<int>("id");
int borderBits = parser.get<int>("bb");
int markerSize = parser.get<int>("ms");
bool showImage = parser.get<bool>("si");
String out = parser.get<String>(0);
if (!parser.check()) {
parser.printErrors();
return 0;
}
Ptr<aruco::Dictionary> dictionary =
aruco::getPredefinedDictionary(aruco::PREDEFINED_DICTIONARY_NAME(dictionaryId));
Mat markerImg;
aruco::drawMarker(dictionary, markerId, markerSize, markerImg, borderBits);
if (showImage) {
imshow("marker", markerImg);
waitKey(0);
}
imwrite(out, markerImg);
return 0;
}
the error:
> Build started... 1>------ Build started: Project: TESTOPENCV,
> Configuration: Release x64 ------ 1>main.cpp error C2039:
> 'PREDEFINED_DICTIONARY_NAME': is not a member of 'cv::aruco'
> 1>C:\OpenCVLIB\install\include\opencv2\aruco.hpp(11): message : see
> declaration of 'cv::aruco' error C3861: 'PREDEFINED_DICTIONARY_NAME':
> identifier not found
> 1>C:\Users\ilyas\source\repos\TESTOPENCV\main.cpp(47,12): error C2039:
> 'drawMarker': is not a member of 'cv::aruco'
> 1>C:\OpenCVLIB\install\include\opencv2\aruco.hpp(11): message : see
> declaration of 'cv::aruco' 1 error C3861: 'drawMarker': identifier not
> found 1>Done building project "TESTOPENCV.vcxproj" -- FAILED.
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I am new to Arcuo marker, so I have no idea what do and what to change and to what. Any help would be really appreciated!
I tried looking it up, but could not find any answer on the internet. It says that Arcuo marker library has been changed but I am not sure what changed to what.

OCCI 19.3.0: createConnection crashes with OCCIUTF16

we would like to upgrade from occi 18 to occi 19.3.0.0.0 because we want to be independent of old MS libraries (MSVCR120.DLL).
But there is the following error while connecting the database:
"Program: C:\Windows\SYSTEM32\MSVCP140D.dll
File: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xstring
Line: 1695 Expression: string subscript out of range
For information ..."
When we remove "OCCIUTF16", "OCCIUTF16" in createEnvironment the connection succeeds.
We also recognized, that oci.dll was not loaded in this simple programm using occi 19. With occi 18 oci.dll was loaded.
#include "occi.h"
#include <iostream>
using namespace oracle::occi;
using namespace std;
int main(int argc, wchar_t * argv[])
{
try {
// OK
//auto env = Environment::createEnvironment(Environment::Mode(Environment::OBJECT | Environment::THREADED_MUTEXED));
//auto conn = env->createConnection("SCOTT", "tiger", "ORATEST");
// ERROR
auto env = Environment::createEnvironment("OCCIUTF16", "OCCIUTF16", Environment::Mode(Environment::OBJECT | Environment::THREADED_MUTEXED));
UString user((utext*)L"SCOTT");
UString pwd((utext*)L"tiger");
UString host((utext*)L"ORATEST");
auto conn = env->createConnection(user, pwd, host);
}
catch (SQLException & ex) {
cout << ex.what();
}
return 0;
}
Environment:
ORACLE SERVER 12.1.0.2
Microsoft Visual C++ 2017 Compiler Version 15.9.13
Basic Light Package Information
Wed May 29 22:35:38 MDT 2019
Client Shared Library 64-bit - 19.3.0.0.0
Any ideas?
Thanks in advance!
Can you provide the complete stack when it fails
The issue you are pointing at MSVCP140D.dll (D - Debug) -> so, I presume you are compiling with ORAOCCIxxD.LIB (Debug version). If you are using debug build, please use all components in debug build.
Yes, OCI.DLL will not be loaded along with ORAOCCI.DLL now.
Thanks,
-P. Venkatraman.

cmake error when building Boost unit tests

I'm working through this tutorial, using VS2012 on a c++ project generated by cmake 3.0.2.
http://help.exercism.io/getting-started-with-cpp.html
I have a series of boost unit tests that check whether the correct message is returned when given an input. Most of the tests work, but strangely, some cause a build error.
Error 1 error MSB3073: The command "setlocal
Debug\bob.exe
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 201. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets 134 5 bob
//bob.h
#ifndef BOB_H
#define BOB_H
#include <istream>
class bob
{
public:
static char* hey(char*);
};
#endif
//bob.cpp
#include "bob.h"
char* bob::hey(char * msg)
{
//if (!msg){return "";}
int msgLength = strlen(msg);
switch (msg[msgLength-1])
{
case '?':
return "Sure.";
break;
case '!':
return "Whoa, chill out!";
break;
case ' ':
case '\0':
return "Fine. Be that way!";
default:
break;
}
return "Whatever.";
}
//bob_test.cpp
#include "bob.h"
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE(stating_something)
{
BOOST_REQUIRE_EQUAL("Whatever.", bob::hey("Tom-ay-to, tom-aaaah-to."));
}
#if defined(EXERCISM_RUN_ALL_TESTS)
BOOST_AUTO_TEST_CASE(shouting)
{
BOOST_REQUIRE_EQUAL("Whoa, chill out!", bob::hey("WATCH OUT!"));
}
BOOST_AUTO_TEST_CASE(asking_a_question)
{
BOOST_REQUIRE_EQUAL("Sure.", bob::hey("Does this cryogenic chamber make me look fat?"));
}
/////////////This test causes the error
//BOOST_AUTO_TEST_CASE(talking_forcefully)
//{
// BOOST_REQUIRE_EQUAL("Whatever.", bob::hey("Let's go make out behind the gym!"));
//}
It looks like boost tests are working like they should. I needed to check the output window rather than look at build errors.
1>------ Build started: Project: bob, Configuration: Debug Win32 ------
1> bob_test.cpp
1> bob.vcxproj -> C:\exercism\cpp\build\Debug\bob.exe
1> Running 13 test cases...
1> C:/exercism/cpp/bob/bob_test.cpp(24): fatal error in "talking_forcefully": critical check "Whatever." == bob::hey("Let's go make out behind the gym!") failed [Whatever. != Whoa, chill out!]
1>
1> *** 1 failure detected in test suite "Master Test Suite"

compile error with dirent.h on 64bit windows

OS: Windows 8 64-bit
Compiler: Visual Studio 2012
Problem Description: When I try to compile codes with "dirent.h" in "x64", error occurs. No matter dirent.h is used or not. The error won't occur if the codes were compile under "win32" setting.
Error MSG: C:\Program Files (x86)\Windows Kits\8.0\Include\um\winnt.h(146): fatal error C1189: #error : "No Target Architecture"
EXAMPLE:
#include stdio.h
#include sys/types.h
#include dirent.h
int main(int argc, char* argv[])
{
const char *name = ".";
DIR *dirp;
struct dirent *dp;
dirp = opendir(name);
if (dirp != NULL) {
printf("opendir %s succeed!\n", name);
}
closedir(dirp);
return 0;
}
I had the same problem... Try to go PROJECT-> PROPERTIES -> Configuration Properties -> C/C++ -> Preprocessor, and in Preprocessor Definitions add AMD64. It works for me. PS put underscore before and after AMD64.

use macro token in pragma result in incorrect substitution

I'm trying to use macro with "pragma include_alias" in VS2010, but I got a odd compiling warning which means the substitution is incorrect.
Here is the code:
18 #define RAPID_INCLUDES_PATH(MY_TARGET_HEADERS) "C:\\thirdpart\\rapidxml-1.13\\" ## #MY_TARGET_HEADERS
19 #define TEST(empty) "C:\\thirdpart\\rapidxml-1.13\\rapidxml_print.hpp"
//WORKS
21 #pragma include_alias( "rapidxml.hpp", "C:\\thirdpart\\rapidxml-1.13\\rapidxml.hpp" )
22 #pragma include_alias( "rapidxml_print.hpp" , TEST(empty) )
//FAILS
23 #pragma include_alias( "rapidxml_utils.hpp" , RAPID_INCLUDES_PATH(rapidxml_utils.hpp) )
24 #pragma include_alias( "rapidxml_iterators.hpp" , RAPID_INCLUDES_PATH(rapidxml_iterators.hpp) )
26 #include "rapidxml.hpp"
27 #include "rapidxml_iterators.hpp"
28 #include "rapidxml_print.hpp"
29 #include "rapidxml_utils.hpp"
The error messages:
1> Touching "Debug\xml2.unsuccessfulbuild".
1>ClCompile:
1> stdafx.cpp
1>d:\workspace\v10\xml2\xml2\stdafx.h(23): warning C4081: expected ')'; found 'string'
1>d:\workspace\v10\xml2\xml2\stdafx.h(24): warning C4081: expected ')'; found 'string'
1>d:\workspace\v10\xml2\xml2\stdafx.h(27): fatal error C1083: Cannot open include file: 'rapidxml_iterators.hpp': No such file or directory
1>
1>Build FAILED.
1>
It seems there're some misuses of macro.
Anyone knows how to fix it? Thanks a lots.