Page 1 of 1

TChart 8.03 Install changes Cproj to .Net type

Posted: Mon Sep 08, 2008 12:37 pm
by 10547875
Hi Narcís:

I moved the issue to the forum now for easier tracking. When upgrading from a well working TChart 8.02 to TChart 8.03 for some reason the C++ based projects with TChart stopped compiling and the projects are treated by the RAD 2007 IDE as .Net projects instead of being C++ projects. The only thing I did was install 8.03 and adjusted the PATH and LIBs to point to the correct places. The environment variable are correct too. After reinstalling 8.02 everything works as it should.

Below the output after installing 8.03 and below that the same project with 8.02:


x x x8.03 x x x

Build started 9/8/2008 11:09:00 AM.
__________________________________________________
Project "J:\TeeChartBug\teechartbug.cbproj" (Make target(s)):
Target MakeObjs:
Target BccCompile:
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Borland.Cpp.Targets(883,3): error MSB6001: Invalid command line switch for "bcc32". Illegal quote passed to the command line switch named "-I". The value was ["C:\Program Files\Steema Software\TeeChart 8.03 for Delphi 2007\Delphi11\Lib\..\Include"].
Done building target "BccCompile" in project "teechartbug.cbproj" -- FAILED.
Done building target "MakeObjs" in project "teechartbug.cbproj" -- FAILED.
Done building project "teechartbug.cbproj" -- FAILED.
Build FAILED.
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Borland.Cpp.Targets(883,3): error MSB6001: Invalid command line switch for "bcc32". Illegal quote passed to the command line switch named "-I". The value was ["C:\Program Files\Steema Software\TeeChart 8.03 for Delphi 2007\Delphi11\Lib\..\Include"].
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.06


x x x 8.02 x x x

Build started 9/8/2008 12:34:28 PM.
__________________________________________________
Project "J:\TeeChartBug\teechartbug.cbproj" (Make target(s)):
Target MakeObjs:
Target BccCompile:
c:\program files\codegear\rad studio\5.0\bin\bcc32.exe -D_DEBUG;NO_STRICT -I"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Include";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib\obj";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Include";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib ";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib\obj ";"c:\program files\codegear\rad studio\5.0\include";"c:\program files\codegear\rad studio\5.0\include\dinkumware";"c:\program files\codegear\rad studio\5.0\include\vcl";J:\TeeChartBug;"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Include";"c:\program files\codegear\rad studio\5.0\include\Indy10";"c:\program files\codegear\rad studio\5.0\RaveReports\Lib";"C:\Program Files\CodeGear\RAD Studio\5.0\\Include\wxWidgets";"c:\program files\codegear\rad studio\5.0\Include\Vcl";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Include" -y -v -vi- -k -r- -c -tWM -tW -H=Debug\teechartbug.pch -oDebug\Unit1.obj -w-par -Od -vi- -v Unit1.cpp
Target BccCompile:
c:\program files\codegear\rad studio\5.0\bin\bcc32.exe -D_DEBUG;NO_STRICT -I"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Include";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib\obj";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Include";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib ";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib\obj ";"c:\program files\codegear\rad studio\5.0\include";"c:\program files\codegear\rad studio\5.0\include\dinkumware";"c:\program files\codegear\rad studio\5.0\include\vcl";J:\TeeChartBug;"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Include";"c:\program files\codegear\rad studio\5.0\include\Indy10";"c:\program files\codegear\rad studio\5.0\RaveReports\Lib";"C:\Program Files\CodeGear\RAD Studio\5.0\\Include\wxWidgets";"c:\program files\codegear\rad studio\5.0\Include\Vcl";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Include" -y -v -vi- -k -r- -c -tWM -tW -H=Debug\teechartbug.pch -oDebug\teechartbug.obj -w-par -Od -vi- -v teechartbug.cpp
Target _PerformLink:
c:\program files\codegear\rad studio\5.0\bin\ilink32.exe -L"c:\program files\codegear\rad studio\5.0\lib\debug";"c:\program files\codegear\rad studio\5.0\lib";"c:\program files\codegear\rad studio\5.0\lib\obj";"c:\program files\codegear\rad studio\5.0\lib\psdk";J:\TeeChartBug;"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib\Obj";"c:\program files\codegear\rad studio\5.0\lib";"c:\program files\codegear\rad studio\5.0\lib\Indy10";"c:\program files\codegear\rad studio\5.0\RaveReports\Lib";"C:\Program Files\CodeGear\RAD Studio\5.0\\Lib\wxWidgets";"J:\DEVELO~1\COMPON~1\VCL\RAD200X\JVCL320\jcl\lib\d11";J:\Development\Components\VCL\RAD200X\JVCL320\jvcl\lib\D11;"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib\Obj";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib\Obj";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib";"C:\Documents and Settings\All Users\Documents\RAD Studio\5.0\DCP";Debug -j"c:\program files\codegear\rad studio\5.0\lib\debug";"c:\program files\codegear\rad studio\5.0\lib";"c:\program files\codegear\rad studio\5.0\lib\obj";"c:\program files\codegear\rad studio\5.0\lib\psdk";J:\TeeChartBug;"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib\Obj";"c:\program files\codegear\rad studio\5.0\lib";"c:\program files\codegear\rad studio\5.0\lib\Indy10";"c:\program files\codegear\rad studio\5.0\RaveReports\Lib";"C:\Program Files\CodeGear\RAD Studio\5.0\\Lib\wxWidgets";"J:\DEVELO~1\COMPON~1\VCL\RAD200X\JVCL320\jcl\lib\d11";J:\Development\Components\VCL\RAD200X\JVCL320\jvcl\lib\D11;"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib\Obj";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib\Obj";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib";"C:\Documents and Settings\All Users\Documents\RAD Studio\5.0\DCP";Debug -lDebug -v -Gn -GA"J:\TeeChartBug\vfs845.tmp"="J:\TeeChartBug\teechartbug.res" -GA"J:\TeeChartBug\vfs846.tmp"="J:\TeeChartBug\Unit1.dfm" -aa c0w32.obj memmgr.lib sysinit.obj Debug\teechartbug.obj Debug\Unit1.obj , Debug\teechartbug.exe , Debug\teechartbug.map , rtl.lib vcl.lib TeePro811.lib TeeUI811.lib Tee811.lib vclx.lib import32.lib cp32mt.lib , , J:\TeeChartBug\vfs845.tmp
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:06.50

Posted: Mon Sep 08, 2008 12:56 pm
by narcis
Hi timhamel,

Thanks, it's much preferable posting technical issues here so that other clients can benefit from the information here. Also, my colleagues have the oportunity to participate in the discussions.

Regarding your issue, if I remember correctly, on 27th August you said you got that working in a demo project, didn't you? Could you please check this project's configuration and compare it with the project that fails now? I also got working the project you sent today in the same way. Is this project still failing at your end?

I don't remember if I asked that before, do you only have C++ Builder personality or do you have other RAD Studio 2007 personalities installed?

Thanks in advance.

Posted: Tue Sep 09, 2008 4:52 am
by 10547875
Hi.

I am using the exact same demo project. I installed 8.03 previously on a cloned hard disc. And it compiled there. But now when installing again, I get the same problem as originally (which I think is a good thing from your point of view, since this can be reproduced). Nothing is touched after the install. Only running the installer and somehow something registers perhaps TChard as .Net components???

I have RAD 2007 with ALL personalities.

There is something probably wrong in your installer since re-installing 8.02 the system works fine. Installing 8.03, the system things C++ is .Net...

/Tim

Posted: Tue Sep 09, 2008 7:33 am
by 9340566
Hi timhamel,

You have to change the path in tools/options. The problem is the ".." in
"C:\Program Files\Steema Software\TeeChart 8.03 for Delphi 2007\Delphi11\Lib\..\Include".

Best Regards
Bert Kreisel

Posted: Tue Sep 09, 2008 9:03 am
by 10547875
The problem is not the path. I have done all possible path statements. And works fine with a simple install of 8.02. Install 8.03 you get see below. In any case, I can always make a source install, bypassing any installer. I just thought it would be good to solve this issue before the next patch is released. i have now installed it on another cloned disc and uninstalled 8.02 before installing 8.03. Same problem. The C# tools are called and NOT the BCC tools... The path in 8.02 is not any longer or shorter than in 8.03. Also, I had tried a variation with having the tool installed in C:\TChart803 which results in very short path. The problem is elsewhere... Something in the installer gets confused and somehow registers the TChart assemblies as being CPP or something like that...

/Tim

Build started 9/8/2008 11:09:00 AM.
__________________________________________________
Project "J:\TeeChartBug\teechartbug.cbproj" (Make target(s)):
Target MakeObjs:
Target BccCompile:
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Borland.Cpp.Targets(883,3): error MSB6001: Invalid command line switch for "bcc32". Illegal quote passed to the command line switch named "-I". The value was ["C:\Program Files\Steema Software\TeeChart 8.03 for Delphi 2007\Delphi11\Lib\..\Include"].
Done building target "BccCompile" in project "teechartbug.cbproj" -- FAILED.
Done building target "MakeObjs" in project "teechartbug.cbproj" -- FAILED.
Done building project "teechartbug.cbproj" -- FAILED.
Build FAILED.
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Borland.Cpp.Targets(883,3): error MSB6001: Invalid command line switch for "bcc32". Illegal quote passed to the command line switch named "-I". The value was ["C:\Program Files\Steema Software\TeeChart 8.03 for Delphi 2007\Delphi11\Lib\..\Include"].
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.06

Posted: Tue Sep 09, 2008 9:06 am
by 10547875
Just for the record, this is how the make should look like (.Net should NOT be involved here...):

The line:

c:\program files\codegear\rad studio\5.0\bin\bcc32.exe

Should be called.... Not .Net Framework etc.... (as in the 8.03 case).

/Tim

Build started 9/8/2008 12:34:28 PM.
__________________________________________________
Project "J:\TeeChartBug\teechartbug.cbproj" (Make target(s)):
Target MakeObjs:
Target BccCompile:
c:\program files\codegear\rad studio\5.0\bin\bcc32.exe -D_DEBUG;NO_STRICT -I"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Include";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib\obj";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Include";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib ";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib\obj ";"c:\program files\codegear\rad studio\5.0\include";"c:\program files\codegear\rad studio\5.0\include\dinkumware";"c:\program files\codegear\rad studio\5.0\include\vcl";J:\TeeChartBug;"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Include";"c:\program files\codegear\rad studio\5.0\include\Indy10";"c:\program files\codegear\rad studio\5.0\RaveReports\Lib";"C:\Program Files\CodeGear\RAD Studio\5.0\\Include\wxWidgets";"c:\program files\codegear\rad studio\5.0\Include\Vcl";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Include" -y -v -vi- -k -r- -c -tWM -tW -H=Debug\teechartbug.pch -oDebug\Unit1.obj -w-par -Od -vi- -v Unit1.cpp
Target BccCompile:
c:\program files\codegear\rad studio\5.0\bin\bcc32.exe -D_DEBUG;NO_STRICT -I"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Include";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib\obj";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Include";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib ";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib\obj ";"c:\program files\codegear\rad studio\5.0\include";"c:\program files\codegear\rad studio\5.0\include\dinkumware";"c:\program files\codegear\rad studio\5.0\include\vcl";J:\TeeChartBug;"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Include";"c:\program files\codegear\rad studio\5.0\include\Indy10";"c:\program files\codegear\rad studio\5.0\RaveReports\Lib";"C:\Program Files\CodeGear\RAD Studio\5.0\\Include\wxWidgets";"c:\program files\codegear\rad studio\5.0\Include\Vcl";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Include" -y -v -vi- -k -r- -c -tWM -tW -H=Debug\teechartbug.pch -oDebug\teechartbug.obj -w-par -Od -vi- -v teechartbug.cpp
Target _PerformLink:
c:\program files\codegear\rad studio\5.0\bin\ilink32.exe -L"c:\program files\codegear\rad studio\5.0\lib\debug";"c:\program files\codegear\rad studio\5.0\lib";"c:\program files\codegear\rad studio\5.0\lib\obj";"c:\program files\codegear\rad studio\5.0\lib\psdk";J:\TeeChartBug;"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib\Obj";"c:\program files\codegear\rad studio\5.0\lib";"c:\program files\codegear\rad studio\5.0\lib\Indy10";"c:\program files\codegear\rad studio\5.0\RaveReports\Lib";"C:\Program Files\CodeGear\RAD Studio\5.0\\Lib\wxWidgets";"J:\DEVELO~1\COMPON~1\VCL\RAD200X\JVCL320\jcl\lib\d11";J:\Development\Components\VCL\RAD200X\JVCL320\jvcl\lib\D11;"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib\Obj";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib\Obj";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib";"C:\Documents and Settings\All Users\Documents\RAD Studio\5.0\DCP";Debug -j"c:\program files\codegear\rad studio\5.0\lib\debug";"c:\program files\codegear\rad studio\5.0\lib";"c:\program files\codegear\rad studio\5.0\lib\obj";"c:\program files\codegear\rad studio\5.0\lib\psdk";J:\TeeChartBug;"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib\Obj";"c:\program files\codegear\rad studio\5.0\lib";"c:\program files\codegear\rad studio\5.0\lib\Indy10";"c:\program files\codegear\rad studio\5.0\RaveReports\Lib";"C:\Program Files\CodeGear\RAD Studio\5.0\\Lib\wxWidgets";"J:\DEVELO~1\COMPON~1\VCL\RAD200X\JVCL320\jcl\lib\d11";J:\Development\Components\VCL\RAD200X\JVCL320\jvcl\lib\D11;"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib\Obj";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib\Obj";"C:\Program Files\Steema Software\TeeChart 8.02 for Delphi 2007\Delphi11\Lib";"C:\Documents and Settings\All Users\Documents\RAD Studio\5.0\DCP";Debug -lDebug -v -Gn -GA"J:\TeeChartBug\vfs845.tmp"="J:\TeeChartBug\teechartbug.res" -GA"J:\TeeChartBug\vfs846.tmp"="J:\TeeChartBug\Unit1.dfm" -aa c0w32.obj memmgr.lib sysinit.obj Debug\teechartbug.obj Debug\Unit1.obj , Debug\teechartbug.exe , Debug\teechartbug.map , rtl.lib vcl.lib TeePro811.lib TeeUI811.lib Tee811.lib vclx.lib import32.lib cp32mt.lib , , J:\TeeChartBug\vfs845.tmp
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:06.50

Posted: Tue Sep 09, 2008 11:52 am
by 10547875
After spending some more time with this issue, without coming closer to a solution, though I did find that the .Net stuff involved here seems to be Borland/Codegeas choice of having moved to Microsoft's 2003 .Net based build system for XML...

Unfortunately no closer to a solution. 8.02 works perfect. 8.03 fails.

:-(

Posted: Tue Sep 09, 2008 11:54 am
by narcis
Hi timhamel,

I'd insist on checking and removing invalid paths at Tools->Options->Environment Options->C++ Options->Paths and
Directories->Include Path and Library Path as this works fine for us here with your project.

Thanks in advance.

Posted: Tue Sep 09, 2008 12:18 pm
by 10547875
Hi Narcís,

That was it. The installer had added the 2 invalid "" quoted and incorrect statements into those sections (sorry didn't save the second one, but it was also a quoted section, which is invalid)...

"C:\Program Files\Steema Software\TeeChart 8.03 for Delphi 2007\Delphi11\Lib\..\Include"


Now it compiled... Which is GREAT! It was a PATH thing. Well, can't be right all the time ;-) ... I assume you will fix that in your installer...

THANKS!

/Tim