BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to proper Build for 'Deployment' in BDS..

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
JasperP
Guest





PostPosted: Wed Aug 30, 2006 5:54 pm    Post subject: How to proper Build for 'Deployment' in BDS.. Reply with quote



What I know and what I do:
-----------------------------
- Set the standard Build Configuration 'Release Build' to 'Active'.
- Uncheck 'Use dynamic RTL'.
- Uncheck 'Build with runtime packages'.

But do I now Build the Project with unwanted LIB's/Runtime packages and
DLL's?
How should I approach this?


Also,

If I examine the .exe I see:
---------------------------
- Not-used mouse-pointers
for example and SQL-hourglass (which I didn't use or have tried in the
project)
(I know they are 'part of' the default pointers, but other unused default
pointers are NOT in the .exe)

- Not-used Bitmaps (which I didn't use or have tried in the project)
BBABORT
BBALL
BBCANCEL
BBCLOSE
BBHELP
BBIGNORE
BBNO
BBOK
BBRETRY
BBYES
PREVIEWGLYPH

- A TLoginDialog (which I didn't use or have tried in the project)


Jasper
Back to top
oddian@gmail.com
Guest





PostPosted: Thu Aug 31, 2006 4:06 am    Post subject: Re: How to proper Build for 'Deployment' in BDS.. Reply with quote



What you're choosing to do is build with statically linked libraries
thus including the normal RTL libs in your exe. This may mean that you
have a whole bunch of functionality that you do not require or use
built into your appliaction (though by the sounds of it you probably do
use a few of the items you've mentioned below even if you don't know
it) but you don't need the libraries on the final client so the install
is often as simple as copying the executable.

Hope that helps
Regards
Daniel

JasperP wrote:
Quote:
What I know and what I do:
-----------------------------
- Set the standard Build Configuration 'Release Build' to 'Active'.
- Uncheck 'Use dynamic RTL'.
- Uncheck 'Build with runtime packages'.

But do I now Build the Project with unwanted LIB's/Runtime packages and
DLL's?
How should I approach this?


Also,

If I examine the .exe I see:
---------------------------
- Not-used mouse-pointers
for example and SQL-hourglass (which I didn't use or have tried in the
project)
(I know they are 'part of' the default pointers, but other unused default
pointers are NOT in the .exe)

- Not-used Bitmaps (which I didn't use or have tried in the project)
BBABORT
BBALL
BBCANCEL
BBCLOSE
BBHELP
BBIGNORE
BBNO
BBOK
BBRETRY
BBYES
PREVIEWGLYPH

- A TLoginDialog (which I didn't use or have tried in the project)


Jasper
Back to top
Jim Dodd
Guest





PostPosted: Thu Aug 31, 2006 8:10 pm    Post subject: Re: How to proper Build for 'Deployment' in BDS.. Reply with quote



JasperP wrote:
Quote:
What I know and what I do:
-----------------------------
- Set the standard Build Configuration 'Release Build' to 'Active'.
- Uncheck 'Use dynamic RTL'.
- Uncheck 'Build with runtime packages'.

But do I now Build the Project with unwanted LIB's/Runtime packages and
DLL's?
How should I approach this?


Also,

If I examine the .exe I see:
---------------------------
- Not-used mouse-pointers
for example and SQL-hourglass (which I didn't use or have tried in the
project)
(I know they are 'part of' the default pointers, but other unused default
pointers are NOT in the .exe)

- Not-used Bitmaps (which I didn't use or have tried in the project)
BBABORT
BBALL
BBCANCEL
BBCLOSE
BBHELP
BBIGNORE
BBNO
BBOK
BBRETRY
BBYES
PREVIEWGLYPH

- A TLoginDialog (which I didn't use or have tried in the project)


Jasper



I hope others will answer you but for now I will say that it has always
been this way (with C++ Builder at least). It has always seemed wasteful
to me but it is a benign waste Smile My guess is that it could be fixed
but since there are so many other, more important things to fix that
these annoyances have been left alone.

The worst of these, to me at least, is the including of unused libraries
and packages in the project file. When I pass a working project to a
colleague who doesn't happen to have one of the libraries referenced in
the project file, he can't build it until I go in and edit the project
file removing unnecessary libraries and packages.

Sorry for the non-answer.

Regards,
Jim Dodd
Onset Computer Corp.
Back to top
David Dean
Guest





PostPosted: Thu Aug 31, 2006 9:18 pm    Post subject: Re: How to proper Build for 'Deployment' in BDS.. Reply with quote

In article <44f6fbf0$1 (AT) newsgroups (DOT) borland.com>,
Jim Dodd <bcbuilderboy (AT) yahoo (DOT) com> wrote:

Quote:
When I pass a working project to a
colleague who doesn't happen to have one of the libraries referenced in
the project file, he can't build it until I go in and edit the project
file removing unnecessary libraries and packages.

One of the great things in BDS 2006 is the new dialog that pops up
for most of these where you can say "Remove this from project"

--
-David

Quis custodiet custodes ipsos?
Back to top
D. Mills
Guest





PostPosted: Thu Aug 31, 2006 9:26 pm    Post subject: Re: How to proper Build for 'Deployment' in BDS.. Reply with quote

"David Dean" <ozchzhq02 (AT) sneakemail (DOT) com> wrote in message
news:ozchzhq02-1A06C3.12185131082006 (AT) frylock (DOT) local...
Quote:
In article <44f6fbf0$1 (AT) newsgroups (DOT) borland.com>,
Jim Dodd <bcbuilderboy (AT) yahoo (DOT) com> wrote:

When I pass a working project to a
colleague who doesn't happen to have one of the libraries referenced in
the project file, he can't build it until I go in and edit the project
file removing unnecessary libraries and packages.

One of the great things in BDS 2006 is the new dialog that pops up
for most of these where you can say "Remove this from project"

As well as one of the worst, when it doesn't work, and keep asking if you
want to remove idectrls.lib, which doesn't actually exist on any of our
systems, and the "phantom" idectrls.lib entry does not exist anywhere in any
bdsproj file. You tell it to remove the reference and you get a linker error
for the exact file you told it to remove. I'm afraid it's not one of the
great things IMHO, but it would be if it worked every time :)

D.Mills
Back to top
David Dean
Guest





PostPosted: Thu Aug 31, 2006 9:36 pm    Post subject: Re: How to proper Build for 'Deployment' in BDS.. Reply with quote

In article <44f70dd3 (AT) newsgroups (DOT) borland.com>,
"D. Mills" <DMills.spam (AT) spam (DOT) kronos.com> wrote:

Quote:
I'm afraid it's not one of the
great things IMHO, but it would be if it worked every time Smile

I agree that it doesn't work all of the time, but when it works, it
saves a lot of hassle. If you have good test cases where it fails,
please submit them to QC.

--
-David

Quis custodiet custodes ipsos?
Back to top
JasperP
Guest





PostPosted: Thu Aug 31, 2006 9:54 pm    Post subject: Re: How to proper Build for 'Deployment' in BDS.. Reply with quote

Jim Dodd wrote:
Quote:
Sorry for the non-answer.

It is an answer though, I really wanted to hear other people's ideas about
this.

Looks like the including of unused libraries and packages can only be
avoided if you do a check-per-item and that would be a bit of a waste of
time each time.

Jasper
Back to top
D. Mills
Guest





PostPosted: Thu Aug 31, 2006 10:11 pm    Post subject: Re: How to proper Build for 'Deployment' in BDS.. Reply with quote

"David Dean" <ozchzhq02 (AT) sneakemail (DOT) com> wrote in message
news:ozchzhq02-E9004B.12360831082006 (AT) frylock (DOT) local...
Quote:
In article <44f70dd3 (AT) newsgroups (DOT) borland.com>,
"D. Mills" <DMills.spam (AT) spam (DOT) kronos.com> wrote:

I'm afraid it's not one of the
great things IMHO, but it would be if it worked every time :)

I agree that it doesn't work all of the time, but when it works, it
saves a lot of hassle. If you have good test cases where it fails,
please submit them to QC.

Hi David,

I would if I had any way of reproducing it, other than several projects we
have always eventually generate the errors, with no apparent rhyme or
reason, so until then I won't put it into QC. Deleting the .dsk file seems
to fix it at least temporarily anyway, so perhaps they are getting
corrupted, I'll try turning off all the autosave desktop stuff and see if it
goes away.

D.Mills
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.