From owner-freebsd-questions@FreeBSD.ORG Fri Feb 11 10:38:17 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4730F16A4CE for ; Fri, 11 Feb 2005 10:38:17 +0000 (GMT) Received: from pion19.tphys.physik.uni-tuebingen.de (pion19.tphys.physik.uni-tuebingen.de [134.2.78.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id B356D43D4C for ; Fri, 11 Feb 2005 10:38:15 +0000 (GMT) (envelope-from epple@tphys.physik.uni-tuebingen.de) Received: from pion05.tphys.physik.uni-tuebingen.de (pion05.tphys.physik.uni-tuebingen.de [134.2.78.200]) id j1BAcD00022843; Fri, 11 Feb 2005 11:38:13 +0100 Received: from pion05.tphys.physik.uni-tuebingen.de (localhost [127.0.0.1]) 0.7) with ESMTP id j1BAcD3g016467; Fri, 11 Feb 2005 11:38:13 +0100 Received: (from epple@localhost)j1BAcD6F016466; Fri, 11 Feb 2005 11:38:13 +0100 Date: Fri, 11 Feb 2005 11:38:13 +0100 From: Dominik Epple To: Gert Cuykens Message-ID: <20050211103813.GA15683@pion05.tphys.physik.uni-tuebingen.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: freebsd-questions@freebsd.org Subject: Re: glade-2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 10:38:17 -0000 On Fri, Feb 11, 2005 at 05:52:38AM +0100, Gert Cuykens wrote: > Does anyone know how glade-2 works ? > I made a test gui and now i would like to make a test executable of the gui ? The menu option "Project -> Save" will save your project's xml files. Then, "Project -> Build" will generate C code from your project, together with files used for the GNU autoconf et al build system. If you're not familiar with autoconf, you might want to read its documentation (and that of automake also), see http://www.gnu.org/software/autoconf and .../automake. Then, on the command line, in the Directory where glade has written your project: % setenv ACLOCAL_FLAGS <...> You need to set the ACLOCAL_FLAGS environment variable to the directories containing the .m4 files which are needed by the configure.in script. Have no access now to my FreeBSD box to look up which directories these are -- have only Linux available here at work... :\ Usually, it's something like "-I /usr/X11R6/share/aclocal19 -I /usr/local/share/aclocal19" or something like that. % aclocal19 $ACLOCAL_FLAGS && autoheader259 && automake19 -a -c && autoconf259 (or whatever your aclocal and auto* binaries are available as). Then run % ./configure && make which builds your executables. > PS are there alternatives for glade ? 1. Take another widget set (though imho gtk is one of the best) 2. Write source code directly -- take a look at the C source files generated from glade, and visit http://www.gtk.org/tutorial/ Regards, Dominik. --