Hi,
I have a small problem with the GtkUnit.
I have the unit installed, using make every thing just worked. All the tutorial programs compiled and they are ready to use.
But when I try to compile the simple helloworld.pas with this:
gpc -O2 -Wall --automake helloworld.pas -o ../../../pascal/bin/helloworld
I get this error: In file included from helloworld.pas:5: ../units/gtk.inc:23: module/unit `gtkmarshal' could not be compiled
In the helloworld I have changed the path from '../units' to '/home/klaus/temp/gtk/units'
Am I missing something on the command line when I call the compiler, or is there a bug in the unit?
Kind regards,
Klaus F. Oestergaard
Hi!
On Mon, Jan 14, 2002 at 12:07:31PM +0100, Klaus F. Ãstergaard wrote:
But when I try to compile the simple helloworld.pas with this: gpc -O2 -Wall --automake helloworld.pas -o ../../../pascal/bin/helloworld I get this error: In file included from helloworld.pas:5: ../units/gtk.inc:23: module/unit `gtkmarshal' could not be compiled In the helloworld I have changed the path from '../units' to '/home/klaus/temp/gtk/units'
Ty this:
gpc -O2 -Wall \ --unit-path=/home/klaus/temp/gtk/units \ --automake helloworld.pas -o
Is gtkmarshal.pas available?
Eike
----- Original Message ----- From: Eike Lange eike.lange@uni-essen.de To: gpc@gnu.de Sent: Monday, January 14, 2002 1:55 PM Subject: Re: Problems with GtkUnit
Hi!
On Mon, Jan 14, 2002 at 12:07:31PM +0100, Klaus F.
Østergaard wrote:
But when I try to compile the simple helloworld.pas with this: gpc -O2 -Wall --automake helloworld.pas -o ../../../pascal/bin/helloworld I get this error: In file included from helloworld.pas:5: ../units/gtk.inc:23: module/unit `gtkmarshal' could not
be
compiled In the helloworld I have changed the path from
'../units' to
'/home/klaus/temp/gtk/units'
Ty this:
gpc -O2 -Wall \ --unit-path=/home/klaus/temp/gtk/units \ --automake helloworld.pas -o
Is gtkmarshal.pas available?
Eike
Thanks Eike,
When I try that I get following error:
/home/klaus/temp/GtkUnits-20010602/units/gtkmainc.c:2: gtk/gtkmain.h: No such file or directory gpc1: gpc exited with status 1 gpc1: gpc exited with status 1
Is it because is should rename GtkUnits-20010602 to gtk? Just to make it clear, the path both in the hellowaorld.pas and on the -unit-path= ... is the same. The strange thing is that when I installed the GtkUnit I unzipped the unit and run make, and make did as I could see compile all the tutorials with gpc. and when I now try to compile I get these errors.
Klaus
Hi!
Eike:
In the helloworld I have changed the path from
'../units' to
'/home/klaus/temp/gtk/units'
gpc -O2 -Wall \ --unit-path=/home/klaus/temp/gtk/units \ --automake helloworld.pas -o Is gtkmarshal.pas available?
Klaus:
When I try that I get following error: /home/klaus/temp/GtkUnits-20010602/units/gtkmainc.c:2: gtk/gtkmain.h: No such file or directory gpc1: gpc exited with status 1 gpc1: gpc exited with status 1 Is it because is should rename GtkUnits-20010602 to gtk? Just to make it clear, the path both in the hellowaorld.pas and on the -unit-path= ... is the same. The strange thing is that when I installed the GtkUnit I unzipped the unit and run make, and make did as I could see compile all the tutorials with gpc. and when I now try to compile I get these errors.
Ok, it seems, you have Gtk+-devel (or similar name) installed. Gtk+-devel provides all the necessary .h files needed for the GtkUnits package.
Maybe, you'll have to tell gpc where to search for theses include files.
Add `gtk-config --libs --cflags` to your compiler command.
gpc -O2 -Wall \ --unit-path=/home/klaus/temp/gtk/units \ `gtk-config --libs --cflags` \ --automake helloworld.pas -o
(You really need to write the "`", because gtk-config is a command)
Eike