Seem like some include/library paths are missing or not accessible. Make sure the user that runs Jenkins service have access to all your files needed.

Also try running `SET` command (just SET) in your Windows shell and in Jenkins shell. Some environment variable might be missing.

Aaron Stokes (2014-05-05 16:51):
We are now in the process of updating our IDE to C++ builder XE5. We needed to recreate all of our projects from scratch. The project compiles in both MSBuild (on the actual machine) and the IDE but when we try to run MSBuild through jenkins, MSbuild does not know how to find certain resources. I think I'm missing a step but I don't know what I'm missing.

Here is what I tried.
I tried calling rsvars from a command line and then tried to run msbuild.
Tried setting %PATH% using inject environment variables.
Tried calling a batch file located on the actual build machine same result. Tried updating the MSBuild plugin to the latest version and checking Pass build variables as properties. Unfortunately it did not include any thing defined in inject environment variables.

We are currently using the following
MSBuild plugin 1.2.1
Jenkins: 1.455

The components that are throwing errors are all third party components.
Madexcept 4.0.9
TMScomponents 7.1.6.1

Here are some examples of the errors I'm getting.
vat.cpp(16): error E2209: Unable to open include file 'madExcept.hpp'
vat.cpp(56): error E2293: ) expected
vatmain.cpp(85): error E2209: Unable to open include file 'AdvGrid.hpp'
..\CommonClasses\MPTIFontSelector.h(5): error E2209: Unable to open include 
file 'AdvOfficeComboBox.hpp'
..\CommonClasses\MPTIFontSelector.h(6): error E2209: Unable to open include 
file 'AsgCombo.hpp'
..\CommonClasses\MPTIFontSelector.h(7): error E2209: Unable to open include 
file 'ColorCombo.hpp'
..\CommonClasses\MPTIFontSelector.h(19): error E2303: Type name expected
..\CommonClasses\MPTIFontSelector.h(19): error E2139: Declaration missing ;
..\CommonClasses\MPTIFontSelector.h(21): error E2303: Type name expected
..\CommonClasses\MPTIFontSelector.h(21): error E2139: Declaration missing ;
..\CommonClasses\MPTIFontSelector.h(24): error E2303: Type name expected
..\CommonClasses\MPTIFontSelector.h(24): error E2139: Declaration missing ;
..\CommonClasses\MPTIFontSelector.h(19): error E2109: Not an allowed type
..\CommonClasses\MPTIFontSelector.h(21): error E2109: Not an allowed type
..\CommonClasses\MPTIFontSelector.h(24): error E2109: Not an allowed type
..\CommonClasses\MPTIFontSelector.cpp(36): error E2451: Undefined symbol 
'AdvOfficeFontSizeSelector1' in function TMPTIFont::updateFont()
..\CommonClasses\MPTIFontSelector.cpp(38): error E2451: Undefined symbol 
'AdvOfficeFontSelector1' in function TMPTIFont::updateFont()
..\CommonClasses\MPTIFontSelector.cpp(79): error E2451: Undefined symbol 
'AdvOfficeFontSelector1' in function _fastcall 
TMPTIFont::AdvOfficeFontSelector1Change(TObject *)
..\CommonClasses\MPTIFontSelector.cpp(97): error E2451: Undefined symbol 
'AdvOfficeFontSizeSelector1' in function _fastcall 
TMPTIFont::AdvOfficeFontSizeSelector1Change(TObject *)
..\CommonClasses\MPTIFontSelector.cpp(113): error E2451: Undefined symbol 
'AdvColorComboBox1' in function _fastcall 
TMPTIFont::AdvColorComboBox1Change(TObject *)
..\CommonClasses\MPTIFontSelector.cpp(189): error E2451: Undefined symbol 
'AdvColorComboBox1' in function TMPTIFont::setComboColor(TColor)

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com <mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.




MOL sp. z o.o.  *Maciej Jaros*
e-mail: mac...@mol.com.pl <mailto:mac...@mol.com.pl>
WWW: www.mol.pl <http://www.mol.pl/>      
tel: 58 669 80 90
fax: 58 669 80 91

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to