Re: [Avogadro-devel] Create a package

2011-09-20 Thread David Lonie
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.gad...@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 :
 snip
   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

--
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


Re: [Avogadro-devel] Building Avogadro on OpenBSD

2011-09-20 Thread Marcus D. Hanwell
On Tue, Sep 20, 2011 at 10:43 AM, David Lonie lonieda...@gmail.com wrote:
 Hi Anthony,

 Run make VERBOSE=1, and look at the gcc/g++ commands that are being
 executed to see what include dirs (-I/include/path) are being
 searched.

 HTH,
 Dave

 On Sun, Sep 18, 2011 at 12:54 PM, Anthony J. Bentley
 anthonyjbent...@gmail.com wrote:
 Hi,

 I am attempting to build Avogadro on OpenBSD 5.0. During the compile,
 I get this error:

 In file included from /usr/local/include/X11/qt4/QtOpenGL/QGLWidget:1,
                 from
 /usr/ports/pobj/avogadro-1.0.3/avogadro-1.0.3/libavogadro/src/glwidget.h:35,
                 from
 /usr/ports/pobj/avogadro-1.0.3/avogadro-1.0.3/libavogadro/src/camera.cpp:26:
 /usr/local/include/X11/qt4/QtOpenGL/qgl.h:77:20: error: GL/gl.h: No
 such file or directory
 /usr/local/include/X11/qt4/QtOpenGL/qgl.h:79:23: error: GL/glu.h: No
 such file or directory

 It looks like it is not finding the GL headers, which are located at
 /usr/X11R6/include/GL/gl.h and /usr/X11R6/include/GL/glu.h.

I suspect we missed a call to include_directories somewhere, I will take a look.

Marcus

--
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