These are chat archives for DigitalGlobe/tools

8th
Sep 2016
Ed Diana
@eddiana
Sep 08 2016 17:07
iss.jpg
OpenSceneGraph :-)
Beth Okun
@BethOkun
Sep 08 2016 18:11
Hello...........I have a weird scenario regarding the test_expat.py script. This script is almost identical to the test_uriparser.py script I did yesterday, except for changing all instances ot uriParser to Expat. The test_uriparser.py script works fine. The test_expat.py script goes into the first directory, says things are processing correctly, then throws up an error that it can't complete because it can't find the libexpat.dll (which I have placed in there), then it exits, but not before it wipes out everything in the first directory.
Christopher McGeorge
@surge-cmcgeorge
Sep 08 2016 18:12
@eddiana: 👍
Beth Okun
@BethOkun
Sep 08 2016 18:12
My question is: is there some rule to not place a dll into a script?
Christopher McGeorge
@surge-cmcgeorge
Sep 08 2016 18:13
@BethOkun: Could you please send your Expat Python script?
Beth Okun
@BethOkun
Sep 08 2016 18:14
Thanks Chris..............will do...............it works correctly when I run it without the python script........
Hi........I sent it to your surgeforward gmail............
Beth Okun
@BethOkun
Sep 08 2016 18:20
The directories for all the builds also contain an xml file to be parsed.........
Beth Okun
@BethOkun
Sep 08 2016 18:38
In the code, I have libExpat.lib in the linker input........
Christopher McGeorge
@surge-cmcgeorge
Sep 08 2016 18:48
@BethOkun: Could you please try the library path to the system path, as I do in the test_bison.py file (systemManager.appendToPathEnvironmentVariable(libraryPathName))?
Beth Okun
@BethOkun
Sep 08 2016 18:49
Sure.............I'll get back to you............thanks........
Beth Okun
@BethOkun
Sep 08 2016 18:56
Hi..................it did fail............here's the logging:

C:\DigitalGlobeTemp\tools\tests>python test.py test_bison.py
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 9/8/2016 11:53:32 AM.
Project "C:\DigitalGlobeTemp\tools\tests\Bison\Bison.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Debug|X86".
The target "_ConvertPdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.C
ommon.targets\ImportAfter\Xamarin.Common.targets (34,37)" does not exist in the project, and will be ignored.
The target "_CollectPdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.C
ommon.targets\ImportAfter\Xamarin.Common.targets (34,70)" does not exist in the project, and will be ignored.
The target "_CollectMdbFiles" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.C
ommon.targets\ImportAfter\Xamarin.Common.targets (41,38)" does not exist in the project, and will be ignored.
The target "_CopyMdbFiles" listed in an AfterTargets attribute at "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Comm
on.targets\ImportAfter\Xamarin.Common.targets (41,71)" does not exist in the project, and will be ignored.
Project "C:\DigitalGlobeTemp\tools\tests\Bison\Bison.sln" (1) is building "C:\DigitalGlobeTemp\tools\tests\Bison\Biso
n.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug\".
Creating directory "Debug\Bison.tlog\".
InitializeBuildStatus:
Creating "Debug\Bison.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\CL.exe /c /I....\src\CppUnit\include /I....\src\Bison\
include /ZI /nologo /W3 /WX- /sdl /Od /Oy- /D _MBCS /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchart /Zc:forScope /
Zc:inline /Fo"Debug\" /Fd"Debug\vc140.pdb" /Gd /TP /analyze- /errorReport:queue BisonTest.cpp Program.cpp
Program.cpp
BisonTest.cpp
Generating Code...
Link:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"C:\DigitalGlobeTemp\to
ols\tests\Bison\Debug\Bison.exe" /INCREMENTAL /NOLOGO /LIBPATH:....\sdk\x86\lib kernel32.lib user32.lib gdi32.lib
winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib cppunit

d.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib u
uid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG:
FASTLINK /PDB:"C:\DigitalGlobeTemp\tools\tests\Bison\Debug\Bison.pdb" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\D
igitalGlobeTemp\tools\tests\Bison\Debug\Bison.lib" /MACHINE:X86 Debug\BisonTest.obj
Debug\Program.obj
Bison.vcxproj -> C:\DigitalGlobeTemp\tools\tests\Bison\Debug\Bison.exe
Bison.vcxproj -> C:\DigitalGlobeTemp\tools\tests\Bison\Debug\Bison.pdb (Partial PDB)
FinalizeBuildStatus:
Deleting file "Debug\Bison.tlog\unsuccessfulbuild".
Touching "Debug\Bison.tlog\Bison.lastbuildstate".
Done Building Project "C:\DigitalGlobeTemp\tools\tests\Bison\Bison.vcxproj" (default targets).

Done Building Project "C:\DigitalGlobeTemp\tools\tests\Bison\Bison.sln" (default targets).

Build succeeded.
0 Warning(s)
0 Error(s)

Time Elapsed 00:00:06.77
.'"C:\DigitalGlobeTemp\tools\sdk\x86\bin\bison_d.exe"' is not recognized as an internal or external command,
operable program or batch file.
F

c:\digitalglobetemp\tools\tests\bison\bisontest.cpp(66) : error : Assertion
Test name: CBisonTest::CBisonTest::testExecution
equality assertion failed

  • Expected: 0
  • Actual : 1

Failures !!!
Run: 1 Failure total: 1 Failures: 1 Errors: 0

C:\DigitalGlobeTemp\tools\tests>

Christopher McGeorge
@surge-cmcgeorge
Sep 08 2016 18:57
@BethOkun: Thank you. Is Bison compiled? Does C:\DigitalGlobeTemp\tools\sdk\x86\bin\bison_d.exe exist?
Beth Okun
@BethOkun
Sep 08 2016 18:58
Duh.............I'll compile it............my bad........thanks
Christopher McGeorge
@surge-cmcgeorge
Sep 08 2016 19:04
Oh, I hope just that it is not a problem with my test script!
Beth Okun
@BethOkun
Sep 08 2016 19:06
Hi.........on the win_flex_bison part of the project, I get this error: error MSB8036: The Windows SDK version 10.0.10586.0 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". This is the one that I don't have: 10.0.10586.0........I have the newer one........might be the same issue as I had with the ZLib........I'm thinking I'm going to install it.............
Probably not the test script...............I'll read up on that version and probably install it...........if my computer blows up, I'll have a good reason to get another...........
Christopher McGeorge
@surge-cmcgeorge
Sep 08 2016 19:09
@BethOkun: Sorry for the trouble; I did not realize that there is a newer version. Could you please let me know if installing the older SDK resolves the issue? And to save you time and trouble, I can send you the Bison files. (And I was pointing out the Bison test script as an example; you do not have to build Bison if you do not want to.)
Beth Okun
@BethOkun
Sep 08 2016 19:13
I really appreciate your time.............thank you very much.........I'll keep you posted......I have the list that Ed made of the kits and that one was not on it, but I had re-installed the entire VS 2015 earlier that day and another newer kit was there.........
Ed Diana
@eddiana
Sep 08 2016 19:47
@BethOkun installing that should do the trick. I had to install 10586 on the VM to build the projects.
Beth Okun
@BethOkun
Sep 08 2016 19:55
Thanks very much, Ed...........I will get going on it now............