1. Dev Saravanan
  2. PowerBuilder
  3. Thursday, 10 September 2020 07:34 AM UTC

Hi,

How to generate PBD? Might be a basic question. But I would like to make sure that I am doing it correctly. 

I usually compile all the PBLs in the target:

  1. Select the PBL.
  2. Select all the objects.
  3. Click regenerate.

Then I would take Build.

  1. Right click the PBL.
  2. And choose 'Build Runtime Library...'

Is this the way to generate PBDs. If so then, what is use of 'Full Build' and 'Incremental Build'.

Please advice.

Thanks in advance.

f bodet Accepted Answer Pending Moderation
  1. Friday, 21 July 2023 11:30 AM UTC
  2. PowerBuilder
  3. # 1

Hello, 
how can i generate all PBD's and executable in ones on powerBuilder 2022 please.

Comment
  1. Andreas Mykonios
  2. Friday, 21 July 2023 12:16 PM UTC
Hi.

You have to create a project to deploy your application (create executable with or without pbd/dlls).

I suggest you to carefully read the content in the following link: https://docs.appeon.com/pb2022/application_techniques/Creating_an.html.

Andreas.
  1. Helpful
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Thursday, 10 September 2020 19:16 PM UTC
  2. PowerBuilder
  3. # 2

Most people use the technique Kevin described for a FULL BUILD. Otherwise, the one at a time method you described works just fine.

Create a PROJECT FILE/OBJECT in the application. 

Open the project and on the second tabpage click the SELECT ALL button.
SAVE.


If you want to create PBDs for the entire app, then DEPLOY the project by clicking the DEPLOY toolbar icon:
(second from the left on the second row)

When finished, every PBL checked on the second tablepage will have a PBD created.


Good Luck,

Olan

Comment
  1. Dev Saravanan
  2. Friday, 11 September 2020 09:38 AM UTC
I tried building with 'DEPLOY'. But it errors stating - 'Invalid variable declaration initialization'. This does not occur while I took individual build for each PBL. Any advice on how this can be resolved?
  1. Helpful
  1. Olan Knight
  2. Friday, 11 September 2020 14:29 PM UTC
Interesting! If you get NO error generating with the Build Runtime File option on the PBL(s) that contain(s) the application and project files, but DO get an error when running DEPLOY from the project file, then something is definitely incorrect!



With no other information, I'd turn on TRACING and try again.

If that fails, you may need to step the code in BEDUG mode to see where it is sying.

If all else fails, reinstall PowerBuilder.



Good Luck!
  1. Helpful
  1. Roland Smith
  2. Friday, 21 July 2023 12:50 PM UTC
Take a look at the object mentioned in the 'Invalid variable declaration initialization' error and fix it. Then try to deploy the project again.
  1. Helpful
There are no comments made yet.
Kevin Ridley Accepted Answer Pending Moderation
  1. Thursday, 10 September 2020 14:49 PM UTC
  2. PowerBuilder
  3. # 3

You have 2 choices to generate PBD's.  You can create a project object File>New>Project>Application (or Application Wizard).  This builds the EXE and all PBD's.  The other way to generate an individual PBD is like you stated above.  At a high level, full build regenerates every object, incremental only regenerates changed objects and references to changed objects.

Comment
  1. Kevin Ridley
  2. Thursday, 10 September 2020 14:51 PM UTC
Actually you could use Orcascript too, so there's 3 ways.
  1. Helpful
  1. Dev Saravanan
  2. Friday, 11 September 2020 09:35 AM UTC
Thank you Kevin..
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.