QI1: AnyDAC fails to install and gives compilation errors, referring to TDBX or DBX. That is dbExpress stuffs, which I does not need. How to completely disable dbExpress usage ?
A: Install the AnyDAC packages into IDE by hands. For that do:
- install AnyDAC using the installer. At installation unmark all options at "Install in IDE" page;
- go to AnyDAC\Bin folder;
- run there updateEnv.bat;
- run Delphi IDE;
- choose Tools -> Options -> Delphi Options -> Library;
- verify, and add if required, the AnyDAC\Source path to "Library path";
- open AnyDAC\Source\uAD.inc;
- locate there line with {$DEFINE AnyDAC_DBX};
- replace the line with {.$DEFINE AnyDAC_DBX} (dot between { and $ is added);
- save the uAD.inc;
- open AnyDAC\Packages\AnyDAC_DXxxx.bpg or .bdsgroup or .groupproj;
- remove the AnyDAC_PhysTDBX_DXxxx.dpk or AnyDAC_PhysDBX_DXxxx.dpk from the project group;
- save project group;
- compile all packages in the group;
- right click on AnyDAC_Dcl_DXxxx.dpk and choose "Install".
QI2: How to recompile AnyDAC packages ?
A: Do the following:
- close Delphi IDE;
- go to AnyDAC\Bin folder;
- run there compileXxxx.bat, appropriate to your Delphi / C++ Builder version;
Finished. Now you can run IDE again.
QI3: How to install AnyDAC into IDE by hands ?
A: Do the following:
- install AnyDAC using the installer. At installation unmark all "Build binaries".
- go to AnyDAC\Bin;
- run there updateEnv.bat;
- run Delphi IDE;
- choose Tools -> Options -> Delphi Options -> Library;
- verify, and add if required, the AnyDAC\Source path to "Library path";
- open AnyDAC\Packages\AnyDAC_DXxxx.bpg or .bdsgroup or .groupproj;
- compile all packages in the group;
- right click on AnyDAC_Dcl_DXxxx.dpk and choose "Install".
QI4: How to install AnyDAC on Linux ?
A: Read the "Lazarus / FPC" article.
QI5: I got an archive with sources from the da-soft support. How to install it ?
A: Do the following:
- extract archive to AnyDAC\Source folder. Do not remove the original folder content;
- mark AnyDAC\Source\sqlite3.obj as read-only. For that you can run "attrib +r sqlite3.obj" command in AnyDAC\Source folder;
- now recompile AnyDAC packages. For that see QI2.
QI6: I have XE2 Starter Edition and AnyDAC fails to install and gives compilation errors, referring to AnyDAC_ComI_D16 package. How can I install it ?
A: Do the following:
- install AnyDAC using the installer. At installation unmark all "Build binaries".
- go to AnyDAC\Bin;
- run there updateEnv.bat;
- run Delphi IDE;
- choose Tools -> Options -> Delphi Options -> Library;
- verify, and add if required, the AnyDAC\Source path to "Library path";
- open AnyDAC\Source\uAD.inc;
- locate there line with {$DEFINE AnyDAC_DBX};
- replace the line with {.$DEFINE AnyDAC_DBX} (dot between { and $ is added);
- save the uAD.inc;
- open AnyDAC\Packages\AnyDAC_Dcl_D16Starter.dpk;
- compile the package;
- right click on AnyDAC_Dcl_D16Starter.dpk and choose "Install".