Recent

Author Topic: run project folder with executable on another computer  (Read 736 times)

Aba5577

  • Newbie
  • Posts: 2
run project folder with executable on another computer
« on: December 21, 2022, 03:22:16 pm »
dear community, I have a small application that uses RX components and connects to a DB in postgres through pqconnection, I must generate an executable of the application, however after compiling I take the folder of the generated executable to another computer and I get error when running, I think I need to copy some files to the folder what I do not know is which files, maybe it can be something like that?

Thank you for your attention.

af0815

  • Hero Member
  • *****
  • Posts: 1407
Re: run project folder with executable on another computer
« Reply #1 on: December 21, 2022, 03:39:46 pm »
What kind of error ? What kind of system ? Windows or Linux ?



regards
Andreas

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2269
  • Fifty shades of code.
    • Delphi & FreePascal
Re: run project folder with executable on another computer
« Reply #2 on: December 21, 2022, 03:43:58 pm »
connects to a DB
I guess your target computer is missing db library files, which they are only you can know.
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

af0815

  • Hero Member
  • *****
  • Posts: 1407
Re: run project folder with executable on another computer
« Reply #3 on: December 21, 2022, 03:52:37 pm »
You have to install the same drivers like on your machine. And try to start the program from command line, often is here visible, what is missing.

RX components IMHO not using special libraries, but for postgres you have to install the drivers. If you have hardcodes some path in your source you must also look if the path on the target machine are valid.
regards
Andreas

Aba5577

  • Newbie
  • Posts: 2
Re: run project folder with executable on another computer
« Reply #4 on: December 21, 2022, 06:39:52 pm »
hello i am using windows 10 i think i am missing libpq.dll postgres libraries, about RX, is it necessary to add any library, another question is where should i put the dll that you are asking me, maybe in the same folder as the executable?

 

TinyPortal © 2005-2018