Page 1 of 1
ODAC source version compilation problems with BDS2006
Posted: Fri 06 Oct 2006 07:09
by lmarkus
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
Posted: Fri 06 Oct 2006 13:11
by Challenger
We couldn't reproduce this problem. Please make sure that you have no other versions of OraNet.dcu except
the one in the Source\Delphi10 folder. And make sure that you have this path in the Options\Library-Win32\Library path list.
Posted: Thu 15 Feb 2007 10:56
by pivi
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?
Posted: Fri 16 Feb 2007 09:36
by Challenger
To pivi:
Please specify the version of ODAC you use.
Posted: Fri 16 Feb 2007 09:51
by pivi
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...
Posted: Fri 16 Feb 2007 11:39
by pivi
And again - I've tried the ODAC beta 6.00 and still the same problem...
Posted: Wed 21 Feb 2007 12:51
by Plash
Please check that %Odac dir%\Source\Delphi10 directory does not contain any *.pas or *.dcu files except OraNet.dcu and OraCrypt.dcu (%Odac dir% is the ODAC installation path on your computer).
Posted: Wed 21 Feb 2007 13:04
by pivi
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...
Posted: Wed 21 Feb 2007 13:36
by Plash
Try to delete ODAC directory. Make sure that there is no ODAC files on your computer. Then install ODAC Professional again and try to build it by running the make.bat file from the %Odac dir%\Source\Delphi10 directory.
Posted: Fri 01 Oct 2010 11:57
by Quido
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?
Posted: Fri 01 Oct 2010 14:36
by AlexP
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.
Posted: Mon 11 Oct 2010 11:49
by Quido
Hello,
I resolve problem this way: After I had installed ODAC I renamed .\source\crparser.pas and crparser.hpp (I hid they). Then compilation was OK.
I know, it isn't really resolved but it is working
Thanks