ODAC source version compilation problems with BDS2006
ODAC source version compilation problems with BDS2006
Hello,
We tried to upgrade our Delphi5-based application to BDS2006. Therefore we tried several ways to install the ODAC packages from the source files for use within BDS2006. This worked for us but now we are NOT able to compile our application with BDS2006 successfully
We followed exactly the same process as described in the ReadmeSrc.txt. Furthermore our application still compiles with Delphi 5 and the same source version or older version of ODAC (tried with 5.70.1.34, 5.80.0.35, 5.80.0.36)
When compiled with BDS2006 all the problems we have seem to be because of the precompiled version of OraNet.dcu.
The error message looks like
"[Pascal Fatal Error] Ora.pas(27): F2051 Unit OraNet was compiled with a different version of OraParser.TOraParser".
So we tried several ways to resolve the problem, but nothing works for us.
OraParser.dcu seems to reside both in the D10 and in the main source directory..
Like said above this error does not occur under Delphi5 with the same version of ODAC compiled.
Hope to have a solution soon.
Thanks in advance,
Markus
We tried to upgrade our Delphi5-based application to BDS2006. Therefore we tried several ways to install the ODAC packages from the source files for use within BDS2006. This worked for us but now we are NOT able to compile our application with BDS2006 successfully
We followed exactly the same process as described in the ReadmeSrc.txt. Furthermore our application still compiles with Delphi 5 and the same source version or older version of ODAC (tried with 5.70.1.34, 5.80.0.35, 5.80.0.36)
When compiled with BDS2006 all the problems we have seem to be because of the precompiled version of OraNet.dcu.
The error message looks like
"[Pascal Fatal Error] Ora.pas(27): F2051 Unit OraNet was compiled with a different version of OraParser.TOraParser".
So we tried several ways to resolve the problem, but nothing works for us.
OraParser.dcu seems to reside both in the D10 and in the main source directory..
Like said above this error does not occur under Delphi5 with the same version of ODAC compiled.
Hope to have a solution soon.
Thanks in advance,
Markus
-
Challenger
- Devart Team
- Posts: 925
- Joined: Thu 17 Nov 2005 10:53
Hello
I have the exact same problem. What's strange when I used ODAC with Delphi 5 everything was fine but when we changed to BDS I can't use the net property.
I checked and I have the search path set properly, I have the OraNet.dcu only in the Delphi10 subdirectory (I tried to delete every other OraNet.dcu - it didn't help).
Maybe the OraParser.pas is not compatible with the OraNet.dcu you sent?
I have the exact same problem. What's strange when I used ODAC with Delphi 5 everything was fine but when we changed to BDS I can't use the net property.
I checked and I have the search path set properly, I have the OraNet.dcu only in the Delphi10 subdirectory (I tried to delete every other OraNet.dcu - it didn't help).
Maybe the OraParser.pas is not compatible with the OraNet.dcu you sent?
-
Challenger
- Devart Team
- Posts: 925
- Joined: Thu 17 Nov 2005 10:53
5.80.0.36
I tried also this:
deleting the OraParser.pas and CRParser.pas (to avoid new dcu generation) and I get now this error:
[Pascal Fatal Error] Ora.pas(27): F2051 Unit OraNet was compiled with a different version of ScktComp.TClientWinSocket
ScktComp is a BDS unit so I cannot do more...
UPDATE:
I just installed the 5.80.0.39 version and still the same problem...
I tried also this:
deleting the OraParser.pas and CRParser.pas (to avoid new dcu generation) and I get now this error:
[Pascal Fatal Error] Ora.pas(27): F2051 Unit OraNet was compiled with a different version of ScktComp.TClientWinSocket
ScktComp is a BDS unit so I cannot do more...
UPDATE:
I just installed the 5.80.0.39 version and still the same problem...
But before the installation of ODAC or after. Because when I build the dpk files of ODAC the dcu files are created in %Odac dir%\Source\Delphi10 directory... OraParser.dcu is among them...
UPDATE:
I tried to delete all dcu's from \Source\ and \Source\Delphi10 except the two you mentioned above and still the same...
UPDATE:
I tried to delete all dcu's from \Source\ and \Source\Delphi10 except the two you mentioned above and still the same...
I have same problem:
ODAC 7 source, BDS2006,
instaled according to ReadMeSrc.txt.
When compailing project with ODAC:
[Pascal Fatal Error] OraClasses.pas(1639): F2051 Unit OraNet was compiled with a different version of CRParser.TParser.Create
files in directories:
d:\LAB\ODAC\Source\CRParser.pas (24.6.2010)
d:\LAB\ODAC\Source\Delphi10\OraNet.dcu (7.9.2010)
I suppose that it isn't problem ODAC 7 - ODAC 5.8 had same problem.
Can you help me?
ODAC 7 source, BDS2006,
instaled according to ReadMeSrc.txt.
When compailing project with ODAC:
[Pascal Fatal Error] OraClasses.pas(1639): F2051 Unit OraNet was compiled with a different version of CRParser.TParser.Create
files in directories:
d:\LAB\ODAC\Source\CRParser.pas (24.6.2010)
d:\LAB\ODAC\Source\Delphi10\OraNet.dcu (7.9.2010)
I suppose that it isn't problem ODAC 7 - ODAC 5.8 had same problem.
Can you help me?
Hello,
I installed the ODAC 7.00.0.1 Src version and and ran the demo application without any problem.
Please remove all installed ODAC components.
Check that you removed all of old ODAC files *.bpl, *.dcu etc.
Go to the ..\source\Delphi10\ folder, and run make.bat.
Copy ..\source\Delphi10\Odac\*.bpl files to a folder that is included in the PATH environment variable.
Run the IDE and add dclodacXX.bpl via the Component->Install Packages... menu.
Add the ODAC Source directory path to the "Library Path" list.
Try to compile your project.
If this doesn't help, please, contact me.
I installed the ODAC 7.00.0.1 Src version and and ran the demo application without any problem.
Please remove all installed ODAC components.
Check that you removed all of old ODAC files *.bpl, *.dcu etc.
Go to the ..\source\Delphi10\ folder, and run make.bat.
Copy ..\source\Delphi10\Odac\*.bpl files to a folder that is included in the PATH environment variable.
Run the IDE and add dclodacXX.bpl via the Component->Install Packages... menu.
Add the ODAC Source directory path to the "Library Path" list.
Try to compile your project.
If this doesn't help, please, contact me.