Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » sbml-interoperability » CMake installation of 3rd party libs
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
fbergman


Posts: 122
Registered:
February 2010
Re: CMake installation of 3rd party libs 14 May '12 23:09 Go to previous messageGo to previous message

Hello Totte,

you could of course easily link against static libraries to avoid the problem (and make it easier for the people using the library later on). Apart from that the fact is simply that cmake would not automatically know where you have the DLLs to your library import files. So we would have to let the user specify another set of files he would like to copy to the binary folder. But it would be hard to check whether the DLL you specified really is the one for the library import file. So all in all you would not get total safety that way.

If you think it is a vital set of options to have, I don't mind adding it.

Cheers
Frank

On May 15, 2012, at 12:18 AM, totte_karlsson wrote:

>
> Hi,
> I'm setting up a CMake project that links to an 'installed' libsbml distro.
>
> When I setup my CMake project, there is one question the user have to answer, in the CMake UI, which is the install folder for Libsbml. Using that info, the system get access to headers, libsbml link lib and the dll if building a shared version, + 3rd party dll's. However, the third party link libs, e.g. libxml2 are not installed by libsbml's CMake. Should it not be?
>
> Anything linking to libsbml's lib, will also need to link to the same 3rdpary shared (not if linked static) libs that libsbml itself was linked to, when built.
>
> Right now, I need to manually copy these link libs to the install location of libsbml, and I would rather not. Copying files around manually always end up in problems.. make sense?
>
> Also, it makes it hard to distribute a CMake project linking to libsbml since you have to motivate an end user to copy files around. But maybe I'm missing something...?
>
> Best Regards
> Totte
>
> ____________________________________________________________
> To manage your sbml-interoperability list subscription, visit
> https://utils.its.caltech.edu/mailman/listinfo/sbml-interoperability
>
> For a web interface to the sbml-interoperability mailing list, visit
> http://sbml.org/Forums/
>
> For questions or feedback about the sbml-interoperability list,
> contact sbml-team@caltech.edu

____________________________________________________________
To manage your sbml-interoperability list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/sbml-interoperability

For a web interface to the sbml-interoperability mailing list, visit
http://sbml.org/Forums/

For questions or feedback about the sbml-interoperability list,
contact sbml-team@caltech.edu

      

SubjectPosterDate
Read Message   CMake installation of 3rd party libs totte_karlsson14 May '12 15:17
Read Message   Re: CMake installation of 3rd party libs  fbergman14 May '12 23:09
Read Message   Re: CMake installation of 3rd party libs totte_karlsson15 May '12 13:14
Read Message   Re: CMake installation of 3rd party libs fbergman15 May '12 22:46
Read Message   Re: CMake installation of 3rd party libs totte_karlsson16 May '12 11:03
Previous Topic:Customizing installation
Next Topic:Trouble with linux install of SBML toolbox and libsbml
Go to forum:
-=] Back to Top [=-

Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)

Please use our issue tracking system for any questions or suggestions about this website.