tcunit / TcUnit-Runner

Program that makes it possible to automate runs of TcUnit unit tests
Other
34 stars 17 forks source link

Building the project results in several errors that don't appear when building from the XAE #46

Closed g7alvas22c closed 1 year ago

g7alvas22c commented 1 year ago

Build errors After executing the runner from Jenkins (using a master/slave configuration) I get several build errors such as those showed below. It happens the same when I execute the batch file from the command prompt.

Nevertheless, when I build the project from the TwinCAT XAE it works without errors. It also works when I execute the runner from the command prompt but using the original program (instead of the one stored in the Jenkins workspace folder).

Sample of the errors (there are many more similar to these):

2023-04-20 15:40:41 - Description: Cannot convert type 'POINTER TO STRING(255)' to type 'UDINT' [tc2_utilities, 3.3.54.0 (beckhoff automation gmbh)] 2023-04-20 15:40:41 - ErrorLevel: vsBuildErrorLevelHigh 2023-04-20 15:40:41 - Filename: DWORD_TO_BINSTR 2023-04-20 15:40:41 - Description: Cannot convert type 'POINTER TO ARRAY [0..32] OF BYTE' to type 'UDINT' [tc2_utilities, 3.3.54.0 (beckhoff automation gmbh)] 2023-04-20 15:40:41 - ErrorLevel: vsBuildErrorLevelHigh 2023-04-20 15:40:41 - Filename: DWORD_TO_BINSTR 2023-04-20 15:40:41 - Description: Cannot convert type 'POINTER TO STRING(255)' to type 'UDINT' [tc2_utilities, 3.3.54.0 (beckhoff automation gmbh)] 2023-04-20 15:40:41 - ErrorLevel: vsBuildErrorLevelHigh 2023-04-20 15:40:41 - Filename: DWORD_TO_BINSTR 2023-04-20 15:40:41 - Description: Cannot convert type 'POINTER TO STRING(255)' to type 'UDINT' [tc2_utilities, 3.3.54.0 (beckhoff automation gmbh)] 2023-04-20 15:40:41 - ErrorLevel: vsBuildErrorLevelHigh 2023-04-20 15:40:41 - Filename: DWORD_TO_DECSTR

Software versions I am using TwinCAT 3.1.4024.22 with the XAE (not visual studio).

Run environment The software is running in a Virtual Machine with Windows 10.

g7alvas22c commented 1 year ago

SOLVED The issue was the configuration for building the project. I was using the default: Release|TwinCAT (RTx64).

I changed it to: Release|TwinCAT CE7 (ARMV7) which was the assigned by default from the XAE in the Virtual machine. Everything works good so far.