1. What types of files other than (exe) should I bring when I want to distribute a program that is connected to the database to the customer's computer?
That depends on what database the program uses. For example, I have a program that uses Firebird, I need to include the *.fdb files. And I have program that uses TDBF, the database files I need to include are *.dbf and *.dbt. But actually those dbf and dbt files are not required, because I wrote the code to auto-generate those missing files.
Also, some databases require the installation of server program and/or client library. You really need to read their distribution instruction. This is the short guide:
https://wiki.lazarus.freepascal.org/Databases3. when I make a program with lazarus on linux (eg fedora), can the source code be compiled on lazarus installed on raspberry (ubuntu OS, note: the OS is the same as linux).
Do you not know "
Lazarus/FPC - write once compile anywhere" ? That's true. But to be able to write source code that is cross-platform, it has many requirements:
- Do not use any OS/hardware/platform specific API, commands, behaviors
- If it uses any 3rd party library, make sure it is installed on the target system
- Understand where and how files being store on the target platform
- Able to deal with the display and font issues
- You may need to use compiler conditional directive