Jump to content


Photo

packages Delphi version suffix


  • Please log in to reply
5 replies to this topic

#1 Xillion

Xillion
  • Members
  • 41 posts
  • Gender:Male
  • Location:Netherlands & Belgium

Posted 19 May 2010 - 01:07 PM

Hi Boki,

When I installed the latest version of Next Suite (5.5.10.1) I noticed that you have added a suffix to all the package names, corresponding to each Delphi version. I have made my own packages, which include some components that inherit from components in the Next Suite. As a result some of your packages are in the requires section of my own packages, but with the naming change my dependencies are now broken. This is an easy enough fix (just update my requires section in the .dpk files). But this also means that I will now have to mange different versions of my own packages for each Delphi version I want to use. For example, I'm now using D2009, but I will probably upgrade when D2011 comes out. I will then have to update all my existing packages, just to change NxDBGridRun_d2009 to NxDBGridRun_d2011 for example. And maintain two branches of my packages, because I will have to be backwards compatible with "older" d2009 projects (actually I already have this situation with d7 now, but those projects are almost all upgraded).

Do you know of any convenient way so that I could still maintain one branch of my packages, and not one for each Delphi version? Maybe (I don't know if this is possible or not) you could include a "generic" set of packages, without the prefix, for those that do not have more than 1 Delphi version on the same system? (That would be me, I have multiple Delphi versions, but I never install them on the same machine. All hail virtualization wink.gif ) I could then for example keep using NxDBGridRun in my requires section.

Regards,
Stijn.

[EDIT]Fixed a typo[/EDIT]
Xillion ICT Solutions - www.xillion.nl

aut viam inveniam aut faciam

#2 Xillion

Xillion
  • Members
  • 41 posts
  • Gender:Male
  • Location:Netherlands & Belgium

Posted 19 May 2010 - 05:59 PM

Aaarch, troubles...

OK, updating my packages isn't as simple as I mentioned in my previous post. Just editing the requires section alone doesn't appear to cut it.

I have completely removed the previous version of the Next Suit, also completely removed my own packages. I have even cleared every remaining dcu, bpl, dcp that I could find on my system and that was related to Next Suite and/or my own packages. Also I cleared the library paths. I then proceeded with reinstalling Next Suite (using the installer exe) and installing the components as described in the installation guide (I used the Delphi 2009 groupproject from the Next Suite packages dir and compiled/installed in the order they where opened in the group).

I then opened my own package, and changed NxCommonRun to NxCommonRun_d2009, and NxGridRun to NxGridRun_d2009 in my requires section of the dpk file. Compiling and/or building of my own package works as expected. When I then try to install my package I get the following two errors in succession:

First error:
---------------------------
XGUIBasic - CodeGear RAD Studio for Microsoft Windows - XGUIBasic.dproj: bds.exe - System Error
---------------------------
The program can't start because NxGridDsgn_d2009.bpl is missing from your computer. Try reinstalling the program to fix this problem.
---------------------------
OK
---------------------------

Second error:
---------------------------
Error
---------------------------
Can't load package C:\Program Files\CodeGear\Components\Next Suite\Lib\Delphi 2009\NxDBGridDsgn_d2009.bpl.
The specified module could not be found.
---------------------------
OK Details >>
---------------------------

I have checked the library paths, and everything seems to be there. (The installer made the library paths for me). I have also checked the %nextsuite install dir%\Lib\Delphi 2009" dir to check if all the bpl/dcp files are there. They are. This path does also appear in my library path. The bpl and dcp files are no longer in delphi's default bpl and dcp directory's (C:\Users\Public\Documents\RAD Studio\6.0) but that's because the are compiled to the lib\Delphi 2009 folder I presume.

Anyone has any ideas on what might be going on here and what could be done to fix this?
As a last resort I'm going to try to put the bpl and dcp files in delphi's default paths later on, but I don't have much hope here...

Boki: as an emergency measure I might revert to an older version of Next Suite? What is the last version where you haven't renamed the packages?
Xillion ICT Solutions - www.xillion.nl

aut viam inveniam aut faciam

#3 Xillion

Xillion
  • Members
  • 41 posts
  • Gender:Male
  • Location:Netherlands & Belgium

Posted 19 May 2010 - 06:23 PM

Ok, It seems that copying the Nx*.bpl and Nx*.dcp files to the default directory's does solve the problem.

How is this? I could do two things now, either change the output paths of all the Next Suite packages to delphi's default dir. Or I am missing some library/searchpath reference to the lib\Delphi 2009 folder. But where and what?
Xillion ICT Solutions - www.xillion.nl

aut viam inveniam aut faciam

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 20 May 2010 - 06:21 PM

Hello Xilion,

Do you have maybe download latest release from Members Section?

Unfortunately I have need to return storing BPL files into Delphi folder instead in Lib\Delphi 2009 since Delphi have some bugs when loading packages. It won't work after a restart of Delphi.

Now with new release it should work fine.

Please sorry for any troubles.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#5 Xillion

Xillion
  • Members
  • 41 posts
  • Gender:Male
  • Location:Netherlands & Belgium

Posted 21 May 2010 - 10:46 AM

Hi Boki,

Indeed I had downloaded the latest release from the Members Section.
My temporary fix has indeed been to change the packages bpl directory to the Delphi folder. I was not aware that there where some bug in Delphi. So it looks like I implemented the fix myself smile.gif

I have received your new version notification via mail, but I don't find a newer version than 5.5.10.1, which is the version that I'm already using.

Oh, and don't be sorry. It's fixed now, isn't it wink.gif

Regards,
Stijn.
Xillion ICT Solutions - www.xillion.nl

aut viam inveniam aut faciam

#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 22 May 2010 - 05:23 AM

Hi Stijn,

I am glad that it works now. I will not touch this packages anymore smile.gif

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users