Home     Company     Products     Services     Community     Download     Store
    [Home arrow Community arrow Forum ]
Community
Community
Login Form





Lost Password?
No account yet? Register
FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
Re:User Include Directory (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: Re:User Include Directory
#14
dag (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
User Include Directory 11 Months, 1 Week ago Karma: 0  
I would like to have a directory contain additional shared source code which I would like to include in several different projects. Can you tell me what would be the preferred method to specify this kind of additional user include path? Is this possible from within RT-Druid or is it necessary to modify compile time _script_s?

Thanks,
Dave
 
Report to moderator   Logged Logged  
 
Last Edit: 2007/11/09 17:56 By dag.
  The administrator has disabled public write access.
#16
paolo.gai (Admin)
Admin
Posts: 77
graph
User Offline Click here to see the profile of this user
Re:User Include Directory 11 Months ago Karma: 3  
Dear Dave,

Thanks for inquiring on the Library topic. The library support has been introduced in the last version of RT-Druid and EE. I just attach an example, trying to clearify the manuals which probably are not clear enough (I'll update them including these notes)

The idea we had is that third parties will need to add custom libraries to _link_ to their code.

We thought at the best place where to put libraries, and for now we decided to store the libraries inside the "contrib" directory of the "ee" tree (as an example, the scicos directories are already there; on my PC, they stays under c:Programmievidenceeecontrib).

Then we have to address the following steps:

1) code and configuaration files of the libraries
---> Please take a look at the example attached (we will add it in the next distribution of Erika Enterprise). You have to copy it into the contrib directory. (Question: are the cfg.mk and libcfg.mk too complex?)

2) compilation of the libraries
---> Library compilation must be possible in two ways: A) once for all the applications. In that case, please instantiate the template application called "All libraries", and compile it. If you need to compile only a subset of the libraries, just use the OIL file at section 3.4.8 of the RT-Druid reference manual. library _link_ed together with the application (see the OIL file of the template app in the following point)

3) inclusion of the libraries inside the application source code
--> Please take a look at the application example attached. The OIL file has two possible configurations: the first takes the library from a precompiled library in a "libraries" project; the library has to be compiled following instructions at point 2 (explained before); the second compiles the library on the fly.

If the support we have does not fit your needs, just give me an idea of what you need, or propose a better way to do it, so we can integrate it in the next version of the tools!

PJ
File Attachment:
File Name: library_example.zip
File Size: 4850
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#17
dag (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:User Include Directory 11 Months ago Karma: 0  
Paolo,

The de_script_ion and example you sent work very nicely. I used it to create a shared library accessible from several projects and everything worked fine. The cfg.mk and libcfg.mk files are a little troublesome, but they are manageable because they will not be modified often. Can you tell me if it is possible to include two separate libraries in this way?

Thanks,
Dave
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#18
paolo.gai (Admin)
Admin
Posts: 77
graph
User Offline Click here to see the profile of this user
Re:User Include Directory 11 Months ago Karma: 3  
Hi Dave,

We'll try to make the cfg.mk and libcfg.mk a little bit nicer in the next version (I have to think a little bit at how to simpify them leaving some freedom to the developer...)

... about the number of libraries...

The original idea was: 1) you can include how many libraries you want 2) ... just be sure to compile them and to include all them in the OIL file...

...but I think I just found a little "missing feature" in the OIL de_script_ion file... which basically prevents to specify more than one library I'll check it tomorrow, and I'll get back on you with some more info...

bye

PJ
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#19
paolo.gai (Admin)
Admin
Posts: 77
graph
User Offline Click here to see the profile of this user
Re:User Include Directory 11 Months ago Karma: 3  
Ok, just a quick reply to confirm that currently RT-Druid supports the inclusion of only one library (It was initially meant to support of course more than one, but somehow this missing feature slipped in the final version).

We will modify it, and in the next version it will be possible to include more than one library...

Sorry for the inconvenience,

bye

PJ
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Evidence S.r.l. - PIVA: 01638690501
Viale Rinaldo Piaggio 32 - Pontedera - Pisa - Italy
Privacy Policy