From owner-freebsd-questions@FreeBSD.ORG Fri Feb 11 15:18:18 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 DCCFB16A4D0 for ; Fri, 11 Feb 2005 15:18:18 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29D3443D53 for ; Fri, 11 Feb 2005 15:18:18 +0000 (GMT) (envelope-from gert.cuykens@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so316357rng for ; Fri, 11 Feb 2005 07:18:17 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=B5EfTYn5VR7LFRsxHwbTLCsLxzmupgfdaF9EH7oXb3/82PgBngsqVI5JDhfbbzz9KYK4Nckgfqs4pFiaRypVbE8faBHjjIri8ugwLm+PpTvJ4N1ySCi4mIkHibu1Ft3Jd+RF/OR/g7qyHLPkw3JR6eNPfg6ls5WpjixAElliBD0= Received: by 10.38.151.68 with SMTP id y68mr234800rnd; Fri, 11 Feb 2005 07:18:17 -0800 (PST) Received: by 10.38.74.23 with HTTP; Fri, 11 Feb 2005 07:18:17 -0800 (PST) Message-ID: Date: Fri, 11 Feb 2005 16:18:17 +0100 From: Gert Cuykens To: Dominik Epple In-Reply-To: <20050211103813.GA15683@pion05.tphys.physik.uni-tuebingen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20050211103813.GA15683@pion05.tphys.physik.uni-tuebingen.de> cc: freebsd-questions@freebsd.org Subject: Re: glade-2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Gert Cuykens List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 15:18:19 -0000 On Fri, 11 Feb 2005 11:38:13 +0100, Dominik Epple wrote: > 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. > -- > thx i think i will just go for the editing source code option :) PS When i build in c it works but when i try c++ i get this ? Error running glade-- to generate the C++ source code. Check that you have glade-- installed and that it is in your PATH. Then try running 'glade-- ' in a terminal. Anybody know why ? PS is there much difference between C and C++ ?