Compilation version error when unpacking in TestDrive

Let's say you have a TestDrive pack that was generated and saved in RT-LAB 8.3.6 and TestDrive 2.6.3 (just for example). Your target is rnning under QNX. When you want to unpack it while RT-LAB 8.3.6 is running, you could encounter this strange pop up error message :

 

But the version used for compilation and the current version are the same ! And of course you do not need to re-compile to make it run.

 

There are two reasons for that :

  • you compiled once in Redhawk in another version. This information is tracked in the mainctrl file. As TestDrive reads the mainctrl file and Redhawk information comes before QNX information, you have this error
    Workaround : in the mainctrl file remove the lines related to redhawk
  • you have several mainctrl files in the "models" folder. In that Case TestDrive will take the first in alphabetical order and read it. If in this mainctrl file the version is either not the same or not filled you will have this error
    Wokaround : as a pack should contain only one model keep only the mainctrl file related to your model and remove the other ones.