Create a package

Hi all,

I would like to create an Avogaro package under Linux and Windows to make
some test of deployment with my plugins.
To compile/install on Linux and Windows, it is OK (all I need work). To
create a package, I have some problems :

  • For Linux, I don’t understand how to.
  • For Windows, I created the package with my plugins, but, after the
    installation, an Avogadro feature does’t work : the loading and the saving
    of chemical files. I have this messages :
    • Message to save current molecule: “File type for file ‘…cml’ is not
      supported for writing.”
    • Message to insert a fragment: “Cannot read file format
      C:/Program Files/…/alcohol.cml”
    • Librairies in bin/ : avogadro.dll avogadro_openqube.dll
      openbabel-2.dll QtCore4.dll QtGui4.dll QtNetwork4.dll QtOpenGL4.dll
      zlib1.dll libinchi.dll libxml2.dll glew32.dll (*.obf *.par *.prm)
    • Compile on Windows Seven with Visual Studio 2008 express, Deployment
      on Windows XP.

I am sur that it is an openbabel librairy problem.
Who has an idea why a compilation/install process works and not a
compilation/package process ?
How can I solve this problem ?
How can I deploy my plugins easily (like Windows installers) on Linux and
Windows ?

Regards,
Mickaël Gadroy

Hi Mickaël,

I do something similar for my XtalOpt extension, which supports both
linux and Windows.

On Tue, Sep 20, 2011 at 5:38 AM, Mickaël Gadroy
mickael.gadroy@gmail.com wrote:

  • For Linux, I don’t understand how to.

Konstantin built some linux installers, and there are also the
"avopkg" scripts for linux. I’ve not really used these myself, but
they may be what you need. There were discussions on the mailing list
about the installers starting last May if you want to look them up.

Even easier, if your plugins build against the 1.0 branch, you could
also just distribute the .so plugin files, which users can place in
[avogadro install prefix]/lib/avogadro/1_0/contrib/. If they need the
1.1 branch, replace 1_0 with 1_1.

  • For Windows, I created the package with my plugins, but, after the
    installation, an Avogadro feature does’t work : the loading and the saving
    of chemical files. I have this messages :

    I am sur that it is an openbabel librairy problem.
    Who has an idea why a compilation/install process works and not a
    compilation/package process ?
    How can I solve this problem ?

I ran into this with XtalOpt – to get the packages to build
correctly, you must build the INSTALL target of openbabel, which
should install OB to C:/Program Files/openbabel, and then use these
directories when you set up CMake for avogadro. If you tell cmake to
look in the source openbabel directories, the formats won’t be found
– it must use the installed directories.

How can I deploy my plugins easily (like Windows installers) on Linux and
Windows ?

There should be some information on the linux installer packages in
the mailing list archives. You may also be able to build an rpm,
depending on your targeted distro:

http://www.cmake.org/Wiki/CMake:CPackPackageGenerators#RPM_.28Unix_Only.29

Hope this helps,

Dave

Hi,

On Tue, Sep 20, 2011 at 11:38 AM, Mickaël Gadroy
mickael.gadroy@gmail.com wrote:

Hi all,

I would like to create an Avogaro package under Linux and Windows to make
some test of deployment with my plugins.
To compile/install on Linux and Windows, it is OK (all I need work). To
create a package, I have some problems :

  • For Linux, I don’t understand how to.
  • For Windows, I created the package with my plugins, but, after the
    installation, an Avogadro feature does’t work : the loading and the saving
    of chemical files. I have this messages :
    • Message to save current molecule: “File type for file ‘…cml’ is not
      supported for writing.”
    • Message to insert a fragment: “Cannot read file format
      C:/Program Files/…/alcohol.cml”
    • Librairies in bin/ : avogadro.dll avogadro_openqube.dll
      openbabel-2.dll QtCore4.dll QtGui4.dll QtNetwork4.dll QtOpenGL4.dll
      zlib1.dll libinchi.dll libxml2.dll glew32.dll (*.obf *.par *.prm)
    • Compile on Windows Seven with Visual Studio 2008 express, Deployment
      on Windows XP.

I am sur that it is an openbabel librairy problem.
Who has an idea why a compilation/install process works and not a
compilation/package process ?
How can I solve this problem ?
How can I deploy my plugins easily (like Windows installers) on Linux and
Windows ?

Although I haven’t tried this yet, CDE might be a good alternative to
build linux packages. The website is
http://www.stanford.edu/~pgbovine/cdepack.html
There is also a google tech talk about this which explains how this
works: http://www.youtube.com/watch?v=6XdwHo1BWwY

Tim

Regards,
Mickaël Gadroy


All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1


Avogadro-devel mailing list
Avogadro-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avogadro-devel