PDA

View Full Version : Glade.



Kadrus
December 1st, 2007, 11:02 AM
Euuh...I am having some problems compiling a GLADE project..
When I draw the interface and all...and I "build it"...there is something called autogen.sh...
But I cannot run the program...can anyone help?

Majorix
December 1st, 2007, 12:16 PM
This doesn't belong in this section.

I have never used Glade (only wxGlade) but are you sure you made the file executable?

chmod a+x autogen.sh
./autogen.sh

LaRoza
December 1st, 2007, 12:21 PM
This doesn't belong in this section.


It involves compiling a program, Programming Talk is one of two forums where this question fits.

Kadrus
December 1st, 2007, 01:09 PM
This doesn't belong in this section.

I have never used Glade (only wxGlade) but are you sure you made the file executable?

chmod a+x autogen.sh
./autogen.sh

I am getting this...

**Error**: Directory `.' does not look like the top-level package directory

how can I fix that?

Majorix
December 1st, 2007, 01:24 PM
Could you upload your autogen.sh? I believe it should read "./" instead of "." somewhere in it.

Kadrus
December 1st, 2007, 01:30 PM
You mean an attached file?

Majorix
December 1st, 2007, 01:45 PM
If it's short enough, wrap it in [code] tags. If not, upload it on a free hosting site. I don't think attaching would work, but you could try. I always imagined attachments to be picture-only.

Kadrus
December 1st, 2007, 01:59 PM
If it's short enough, wrap it in [code] tags. If not, upload it on a free hosting site. I don't think attaching would work, but you could try. I always imagined attachments to be picture-only.
Euuh I am going to try an attachment..if it doesn't work...I will try on a web site..

So it appears that it works :)

Majorix
December 1st, 2007, 02:16 PM
It appears you lack the file configure.in in the folder of the autogen.sh. This told me that:

(test -f $srcdir/configure.in)
The code above produces the exact error message you posted when it throws an exception.

Try finding the file mentioned, and then change srcdir in line 5 to represent the directory. Do NOT use an ending /, it adds that automatically from what I see.

Kadrus
December 1st, 2007, 06:35 PM
It appears you lack the file configure.in in the folder of the autogen.sh. This told me that:

(test -f $srcdir/configure.in)
The code above produces the exact error message you posted when it throws an exception.

Try finding the file mentioned, and then change srcdir in line 5 to represent the directory. Do NOT use an ending /, it adds that automatically from what I see.
Weird..it's telling me "You must have `glib' installed."
And when i go to this site:
ftp://ftp.gtk.org/pub/gtk

I can't find...anyway...i won't be using GLADE anymore..
So thanks anyway :)

MicahCarrick
December 1st, 2007, 07:12 PM
The "Build" feature of glade is deprecated, and the current version of glade (glade3) no longer uses it at all. But, it was attempting to generate a build script for you. You would need to have all the development files necessary for it to work (libgtk2-dev, libglib-2.0-dev, etc.) as well as the various auto tools (automake, intltool, etc).

Now days, we use a library called Libglade from our application (be it C, Python, C++, PHP, etc.) to build the interface we design in glade. This post: Very, very simple example using libglade (http://www.gtkforums.com/about187.html)

In this example, if you copy/paste that .glade file in the text editor of your choice and save with the .glade extension, you'll be able to open in in glade. Then, there's a few lines of C code which implement that .glade file.

Kadrus
December 1st, 2007, 07:17 PM
The "Build" feature of glade is deprecated, and the current version of glade (glade3) no longer uses it at all. But, it was attempting to generate a build script for you. You would need to have all the development files necessary for it to work (libgtk2-dev, libglib-2.0-dev, etc.) as well as the various auto tools (automake, intltool, etc).

Now days, we use a library called Libglade from our application (be it C, Python, C++, PHP, etc.) to build the interface we design in glade. This post: Very, very simple example using libglade (http://www.gtkforums.com/about187.html)

In this example, if you copy/paste that .glade file in the text editor of your choice and save with the .glade extension, you'll be able to open in in glade. Then, there's a few lines of C code which implement that .glade file.
Oh alright..thanks a lot Micah :D
Appreciated :)