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;
- with Windows Vista, 7 or newer run console in administrator mode:
- press the "Start" button;
- type CMD;
- select CMD and press CTRL+SHIFT+ ENTER;
- a User Account Control box pop up, confirm this;
- otherwise with Windows XP or when you are logged as administrator:
- press the "Start" button;
- type CMD;
- press ENTER;
- go to AnyDAC\Bin folder. Normally run:
- CD "c:\Program Files\da-soft\AnyDAC for Delphi\Bin"
- 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_x86.obj and sqlite3_x64.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".
QI7: I installed trial version, but I does not see AnyDAC components. How to install AnyDAC ?
A: Do the following:
- Verify, that corresponding Delphi version binaries are check at installation.
- If was not checked, then reinstall AnyDAC and check corresponding option.
- If was checked, then verify in Delphi IDE -> Component -> Install Packages, that "da-soft AnyDAC design time ...." is in the list;
- If in the list, but not enabled, then enable it. If successfully enabled, then you are done !
- If not in the list, then check AnyDAC\Dcu\DXxxx folder - does it have *.bpl and *.dcp files ?
- If yes, then move (the paths may differ for your environment):
- *.bpl to "C:\Documents and Settings\All Users\Documents\RAD Studio\Xxxx\Bpl\" (1)
- *.bpi, *.dcp, *.lib to "C:\Documents and Settings\All Users\Documents\RAD Studio\Xxxx\Dcp\" (2)
- In Delphi IDE choose Component -> Install Packages -> Add, then choose AnyDAC_Dcl_DXxx.bpl from the (1) folder and press Ok.