Menu

Fatal Error: Unit 'dbf' not found

2018-03-11
2018-11-01
  • Tom Krueger

    Tom Krueger - 2018-03-11

    Hi everybody,

    After a bit of fumbling around, I managed to compile and install tDBF under 10.2 Tokyo.

    Unfortunately, I get a fatal error upon compiling a very simple test project: "Unit 'dbf' not found".
    I already tried to link the path to the downloaded tDBF files within the options, but that didn't help.
    Is there another step I should know about?

    Being new at Delphi in general, I'd be very happy if somebody could help me out.

    Thanks!

     
  • Ivar Suneson

    Ivar Suneson - 2018-03-21

    How did you install tDBF under 10.2 Tokyo?
    I have tried with tDBF 7.01 but not been able to make it work.

     
  • mkysoft® software

    @Ivar you can follow steps which are listed in INSTALL.txt . Edit src/dbf_common.inc and add below lines after Delphi 10 Seattle ifdef block.

    {$ifdef VER310} // Delphi 10 Berlin
    {$define DELPHI_10}
    {$define DELPHI_XE8}
    {$define DELPHI_XE7}
    {$define DELPHI_XE6}
    {$define DELPHI_XE5}
    {$define DELPHI_XE4}
    {$define DELPHI_XE3}
    {$define DELPHI_XE2}
    {$define DELPHI_XE}
    {$define DELPHI_2010}
    {$define DELPHI_2009}
    {$define DELPHI_2007}
    {$define DELPHI_2006}
    {$define DELPHI_2005}
    {$define DELPHI_8}
    {$define DELPHI_7}
    {$define DELPHI_6}
    {$define DELPHI_5}
    {$define DELPHI_4}
    {$define DELPHI_3}
    {$endif}

    {$ifdef VER320} // Delphi 10 Tokyo
    {$define DELPHI_10}
    {$define DELPHI_XE8}
    {$define DELPHI_XE7}
    {$define DELPHI_XE6}
    {$define DELPHI_XE5}
    {$define DELPHI_XE4}
    {$define DELPHI_XE3}
    {$define DELPHI_XE2}
    {$define DELPHI_XE}
    {$define DELPHI_2010}
    {$define DELPHI_2009}
    {$define DELPHI_2007}
    {$define DELPHI_2006}
    {$define DELPHI_2005}
    {$define DELPHI_8}
    {$define DELPHI_7}
    {$define DELPHI_6}
    {$define DELPHI_5}
    {$define DELPHI_4}
    {$define DELPHI_3}
    {$endif}

    @Tom copy compiled dcu files (in your package folder) to C:\Program Files (x86)\Embarcadero\Studio\19.0\lib\win32\release folder.

     

    Last edit: mkysoft® software 2018-11-01

Log in to post a comment.