Re: [fpc-pascal] Trying to compile ZeosDBO cli program
Never mind I have it figured out. You have to add the path to the /etc/fpc.cfg file, such as: -Fu/home/user/ZeosDBO/packages/lazarus/lib/x86_64-linux I remembered we do something like this years ago with an older mysql library. Terry H. I tried adding the following to my path: /home/terry/ZeosDBO/src/plain /home/terry/ZeosDBO/src/ /home/terry/ZeosDBO/src/component /home/terry/ZeosDBO/src/core /home/terry/ZeosDBO/src/dbc /home/terry/ZeosDBO/src/parsesql And when I try to coompile, it is still saying: Can't find Unit Zconnection I only added the paths in temporarily. On 13/02/2018 15:48 μμ, Terry A. Haimann wrote: > I really do not understand your response. If you are talking about > Lazarus, I already have it working there. OK > I am wanting to get it to > work from a command line batch program using fpc. Using fpc I do not > know how to set required packages and from fpc I do not know where a > Project Inspector would be. Oh! I assumed that the cli application was edited from lazarus in that case add the folder where the code is to your path not the compiled binaries. I Assume something along the lines of /home/terry/ZeosDBO/src/plain /home/terry/ZeosDBO/src/ /home/terry/ZeosDBO/src/component /home/terry/ZeosDBO/src/core /home/terry/ZeosDBO/src/dbc /home/terry/ZeosDBO/src/parsesql ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Trying to compile ZeosDBO cli program
I tried adding the following to my path: /home/terry/ZeosDBO/src/plain /home/terry/ZeosDBO/src/ /home/terry/ZeosDBO/src/component /home/terry/ZeosDBO/src/core /home/terry/ZeosDBO/src/dbc /home/terry/ZeosDBO/src/parsesql And when I try to coompile, it is still saying: Can't find Unit Zconnection I only added the paths in temporarily. On 13/02/2018 15:48 μμ, Terry A. Haimann wrote: > I really do not understand your response. If you are talking about > Lazarus, I already have it working there. OK > I am wanting to get it to > work from a command line batch program using fpc. Using fpc I do not > know how to set required packages and from fpc I do not know where a > Project Inspector would be. Oh! I assumed that the cli application was edited from lazarus in that case add the folder where the code is to your path not the compiled binaries. I Assume something along the lines of /home/terry/ZeosDBO/src/plain /home/terry/ZeosDBO/src/ /home/terry/ZeosDBO/src/component /home/terry/ZeosDBO/src/core /home/terry/ZeosDBO/src/dbc /home/terry/ZeosDBO/src/parsesql ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Trying to compile ZeosDBO cli program
On 13/02/2018 15:48 μμ, Terry A. Haimann wrote: I really do not understand your response. If you are talking about Lazarus, I already have it working there. OK I am wanting to get it to work from a command line batch program using fpc. Using fpc I do not know how to set required packages and from fpc I do not know where a Project Inspector would be. Oh! I assumed that the cli application was edited from lazarus in that case add the folder where the code is to your path not the compiled binaries. I Assume something along the lines of /home/terry/ZeosDBO/src/plain /home/terry/ZeosDBO/src/ /home/terry/ZeosDBO/src/component /home/terry/ZeosDBO/src/core /home/terry/ZeosDBO/src/dbc /home/terry/ZeosDBO/src/parsesql ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Trying to compile ZeosDBO cli program
I really do not understand your response. If you are talking about Lazarus, I already have it working there. I am wanting to get it to work from a command line batch program using fpc. Using fpc I do not know how to set required packages and from fpc I do not know where a Project Inspector would be. Mostly, at this point,I want to compare ZeosDBO's performance against SqlDB. I know how to do this with SqlDB, but think it's performance is lackluster. Terry H On 13/02/2018 04:50 πμ, Terry A. Haimann wrote: > First of all, thank you for looking at this, Terry H. > > To compile a cli FreePascal program to use ZeosDBO library, I assume all > I have to do is include the path to those files. > > On my laptop, the files appear to be in: > > /home/terry/ZeosDBO/packages/lazarus/lib/x86_64-linux > > Well after adding that to the path and put ZConnection in the uses > clause, it comes up with a "Can't find unit ZConnection" > you do not add the path (remove it) you add the ZeosDBO package to your required packages. Open the project inspector and select add new requirement. that will sort the file not found out for you. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Trying to compile ZeosDBO cli program
On 13/02/2018 04:50 πμ, Terry A. Haimann wrote: First of all, thank you for looking at this, Terry H. To compile a cli FreePascal program to use ZeosDBO library, I assume all I have to do is include the path to those files. On my laptop, the files appear to be in: /home/terry/ZeosDBO/packages/lazarus/lib/x86_64-linux Well after adding that to the path and put ZConnection in the uses clause, it comes up with a "Can't find unit ZConnection" you do not add the path (remove it) you add the ZeosDBO package to your required packages. Open the project inspector and select add new requirement. that will sort the file not found out for you. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal