Re: How to static link a program?

2005-02-06 Thread James Frye
Thanks, everyone who replied to my question. I'll save some bandwidth by not replying to each individually. Looks like some of the suggestions will get me on track - assuming, of course, that I get an answer to my next dumb question :-) James ___ gtk-

Re: How to static link a program?

2005-02-06 Thread stian
> I tried on one of my projects, and the only static libraries are those > compiled inside the project. > It seems that those flags are intended for libraries production. To have > static linking of the libraries in the executable, you must probably > list the libraires in the LDFLAGS, i.e. /usr/li

Re: How to static link a program?

2005-02-05 Thread Ben Johnson
On Sat, Feb 05, 2005 at 09:17:59PM +0100, Jean Br?fort wrote: ... > It seems that those flags are intended for libraries production. To have > static linking of the libraries in the executable, you must probably > list the libraires in the LDFLAGS, i.e. /usr/lib/libglib.a instead of > -lglib, which

Re: How to static link a program?

2005-02-05 Thread Jean Bréfort
Le samedi 05 fÃvrier 2005 Ã 10:40 -0800, Ben Johnson a Ãcrit : > On Sat, Feb 05, 2005 at 06:44:15PM +0100, [EMAIL PROTECTED] wrote: > > > [EMAIL PROTECTED]:~/Projects/hpntpos$ vi configure.in > > > [EMAIL PROTECTED]:~/Projects/hpntpos$ autoconf > > > configure.in:14: error: possibly undefined macro

Re: How to static link a program?

2005-02-05 Thread Sven Neumann
Hi, James Frye <[EMAIL PROTECTED]> writes: > OK, this is probably a dumb question, but I can't find the answer. > How can I statically link a Gtk program? That is, I've written a > program that uses Gtk graphics (and the GtkGL extension widget to > allow OpenGl). It works fine on my personal Li

Re: How to static link a program?

2005-02-05 Thread Ben Johnson
On Sat, Feb 05, 2005 at 06:44:15PM +0100, [EMAIL PROTECTED] wrote: > > [EMAIL PROTECTED]:~/Projects/hpntpos$ vi configure.in > > [EMAIL PROTECTED]:~/Projects/hpntpos$ autoconf > > configure.in:14: error: possibly undefined macro: AC_ENABLE_STATIC > > If this token and others are legitimate, p

Re: How to static link a program?

2005-02-05 Thread stian
> [EMAIL PROTECTED]:~/Projects/hpntpos$ vi configure.in > [EMAIL PROTECTED]:~/Projects/hpntpos$ autoconf > configure.in:14: error: possibly undefined macro: AC_ENABLE_STATIC > If this token and others are legitimate, please use > m4_pattern_allow. > See the Autoconf document

Re: How to static link a program?

2005-02-05 Thread Jean Bréfort
Le samedi 05 fÃvrier 2005 Ã 09:35 -0800, Ben Johnson a Ãcrit : > On Sat, Feb 05, 2005 at 10:05:39AM +0100, Jean Br?fort wrote: > ... > > Add: > > AC_ENABLE_STATIC > > AX_DISABLE_SHARED > > to configure.in (or configure.ac), run autoconf then configure. > > [EMAIL PROTECTED]:~/Projects/hpntpos$ vi

Re: How to static link a program?

2005-02-05 Thread Ben Johnson
On Sat, Feb 05, 2005 at 10:05:39AM +0100, Jean Br?fort wrote: ... > Add: > AC_ENABLE_STATIC > AX_DISABLE_SHARED > to configure.in (or configure.ac), run autoconf then configure. [EMAIL PROTECTED]:~/Projects/hpntpos$ vi configure.in [EMAIL PROTECTED]:~/Projects/hpntpos$ autoconf configure.in:14: e

Re: How to static link a program?

2005-02-05 Thread Jean Bréfort
Le samedi 05 fÃvrier 2005 Ã 00:54 -0800, Ben Johnson a Ãcrit : > On Sat, Feb 05, 2005 at 08:48:49AM +0100, Jean Br?fort wrote: > ... > > use configure --enable-static --disable-dynamic doesn't work? > > no, that doesn't seem to do anything at all. I'm using the configure > script that glade made

Re: How to static link a program?

2005-02-05 Thread Ben Johnson
On Sat, Feb 05, 2005 at 08:48:49AM +0100, Jean Br?fort wrote: ... > use configure --enable-static --disable-dynamic doesn't work? no, that doesn't seem to do anything at all. I'm using the configure script that glade made for me to build my app. Should it work? [EMAIL PROTECTED]:~/Projects/hpnt

Re: How to static link a program?

2005-02-04 Thread Jean Bréfort
Le vendredi 04 fÃvrier 2005 Ã 21:28 -0800, Ben Johnson a Ãcrit : > On Fri, Feb 04, 2005 at 07:48:14PM -0800, James Frye wrote: > ... > > > > So how can I statically link my program (or at least the GtkGl library > > part of it) so that the executable will run on any system? There doesn't > > seem

Re: How to static link a program?

2005-02-04 Thread Ben Johnson
On Fri, Feb 04, 2005 at 07:48:14PM -0800, James Frye wrote: ... > > So how can I statically link my program (or at least the GtkGl library > part of it) so that the executable will run on any system? There doesn't > seem to be a make or configure option to even make static libs... huh. as far a

How to static link a program?

2005-02-04 Thread James Frye
Hi, OK, this is probably a dumb question, but I can't find the answer. How can I statically link a Gtk program? That is, I've written a program that uses Gtk graphics (and the GtkGL extension widget to allow OpenGl). It works fine on my personal Linux boxes, where I have control and can install