Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-12

Cannot find GTK

10 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andres Linares

Hello:
I was trying with some examples about using the GTK library in the FreePascal IDE (the blue screen) and it says that this unit is missing. Despite that, I could compile them all using fpc from the command interpreter.

What is happenning? Is there any setting I must change in FP?

Thanks a lot

Andres.

_________________________________________________________________ News, entertainment and everything you care it now! http://www.live.com/getstarted.aspx

Reply by email

Marco van de Voort
to Andres Linares: Hello: I was trying with some examples about using the GTK library in the FreePascal IDE…

In our previous episode, Andres Linares said:

Show quoted text 6 lines
I was trying with some examples about using the GTK library in the FreePascal IDE (the blue screen) and it says that this unit is missing. Despite that, I could compile them all using fpc from the command interpreter. What is happenning? Is there any setting I must change in FP?

The IDE has an own internal compiler and maintains its own unitpath.

So either the IDE's compiler is different from your cmdline compiler (check the version in the about box), _OR_

the unit path in options->directories is not set correctly or completely. Keep in mind that an asterisk at the end means recursion, just like in fpc.cfg

Reply by email

Andres Linares
to Marco van de Voort

I went: Options -> directories, and in "Units" the text box is empty. What must I write there?

I run openSUSE 10.3, if that's important.

Thanks

Andres

Show quoted text 24 lines
Subject: Re: [fpc-pascal] Cannot find GTK To: Date: Tue, 9 Dec 2008 10:43:18 +0100 From: In our previous episode, Andres Linares said: > I was trying with some examples about using the GTK library in the > FreePascal IDE (the blue screen) and it says that this unit is missing. > Despite that, I could compile them all using fpc from the command > interpreter. > > What is happenning? Is there any setting I must change in FP? The IDE has an own internal compiler and maintains its own unitpath. So either the IDE's compiler is different from your cmdline compiler (check the version in the about box), _OR_ the unit path in options->directories is not set correctly or completely. Keep in mind that an asterisk at the end means recursion, just like in fpc.cfg _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

_________________________________________________________________ Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE

Reply by email

Andres Linares
to leledumbo

I wrote that and it still doesn't work.

What I put :

/usr/lib/fpc/2.2.0/units/i386-linux/rtl
/usr/lib/fpc/2.2.0/units/i386-linux/packages/*
/usr/lib/fpc/2.0.0/units/i386-linux/rtl
/usr/lib/fpc/2.0.0/units/i386-linux/packages/*
/usr/lib/fpc/1.0.7/units/i386-linux/rtl
/usr/lib/fpc/1.0.7/units/i386-linux/packages/*

Show quoted text 19 lines
Date: Tue, 9 Dec 2008 21:39:18 -0800 From: To: Subject: RE: [fpc-pascal] Cannot find GTK > What must I write there? The path to your rtl and packages (just copy it from your fpc.cfg), i.e.: /usr/lib/fpc/2.X.X/rtl /usr/lib/fpc/2.X.X/packages/* -- View this message in context: http://www.nabble.com/Cannot-find-GTK-tp20905508p20929531.html Sent from the Free Pascal - General mailing list . _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

_________________________________________________________________ Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE

Reply by email

Tomas Hajny
to Andres Linares
Andres Linares wrote 11 lines
I wrote that and it still doesn't work. What I put : /usr/lib/fpc/2.2.0/units/i386-linux/rtl /usr/lib/fpc/2.2.0/units/i386-linux/packages/* /usr/lib/fpc/2.0.0/units/i386-linux/rtl /usr/lib/fpc/2.0.0/units/i386-linux/packages/* /usr/lib/fpc/1.0.7/units/i386-linux/rtl /usr/lib/fpc/1.0.7/units/i386-linux/packages/*

Sorry for a silly question, but which version do you have installed, isn't it 2.2.2 (which isn't mentioned above)?

BTW, units compiled with older FPC version cannot be used by the newer version (as opposed to their source files, these may work unless they contain something version specific, but there's probably no reason for using old versions anyway), so adding paths to directories of these olde version doesn't help.

Tomas

Show quoted text 13 lines
> Date: Tue, 9 Dec 2008 21:39:18 -0800 > From: > To: > Subject: RE: [fpc-pascal] Cannot find GTK > > > > What must I write there? > > The path to your rtl and packages (just copy it from your fpc.cfg), > i.e.: > /usr/lib/fpc/2.X.X/rtl > /usr/lib/fpc/2.X.X/packages/*

Reply by email

leledumbo
to Tomas Hajny

I guess you didn't fully understand what I mean. The path should point to directories containing .ppu and .o files. What you wrote is just one level above the right path, so the correct one should be:

/usr/lib/fpc/$FPCVERSION/rtl/$FPCTARGET
/usr/lib/fpc/$FPCVERSION/packages/*/$FPCTARGET

PS: Using those macros, you won't need to write all versions you have. Including if someday you want to cross compile.

View this message in context: http://www.nabble.com/Cannot-find-GTK-tp20905508p20953935.html Sent from the Free Pascal - General mailing list .

Reply by email

Andres Linares
to leledumbo

It still doesn't work. Is there any other path? or maybe, is there other unset thing?

Show quoted text 23 lines
Date: Thu, 11 Dec 2008 03:43:39 -0800 From: To: Subject: RE: [fpc-pascal] Cannot find GTK I guess you didn't fully understand what I mean. The path should point to directories containing .ppu and .o files. What you wrote is just one level above the right path, so the correct one should be: /usr/lib/fpc/$FPCVERSION/rtl/$FPCTARGET /usr/lib/fpc/$FPCVERSION/packages/*/$FPCTARGET PS: Using those macros, you won't need to write all versions you have. Including if someday you want to cross compile. -- View this message in context: http://www.nabble.com/Cannot-find-GTK-tp20905508p20953935.html Sent from the Free Pascal - General mailing list . _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

_________________________________________________________________ Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE

Reply by email

Tomas Hajny
to Andres Linares
Andres Linares wrote
It still doesn't work. Is there any other path? or maybe, is there other unset thing?

I believe you mentioned previously that the unit is found if you use the command line compiler, right? Could you please check the path (successfully) used there by using the -vt option if compiling from the command line and compare it to your entry in the FP IDE directory configuration dialogue (use of FPC "macros" instead of some absolute parts as suggested below should be OK, of course). Moreover, could you please check that "fpc -l" and FP IDE About dialogue refer to the same compiler version? Finally: can you please check the physical presence of the files gtk.o and gtk.ppu on your drive (under
/usr/lib/fpc/2.2.2/packages/gtk1/i386-linux (assuming FPC version 2.2.2 and i386-linux as your current platform)?

The path to the library itself should be probably configured in the appropriate section of the same dialogue box obviously, but I believe that you mentioned that the error message in FP IDE complained about not being able to find the unit, right?

Tomas

Show quoted text 17 lines
> Date: Thu, 11 Dec 2008 03:43:39 -0800 > From: > To: > Subject: RE: [fpc-pascal] Cannot find GTK > > > I guess you didn't fully understand what I mean. The path should point > to > directories containing .ppu and .o files. What you wrote is just one > level > above the right path, so the correct one should be: > > /usr/lib/fpc/$FPCVERSION/rtl/$FPCTARGET > /usr/lib/fpc/$FPCVERSION/packages/*/$FPCTARGET > > PS: Using those macros, you won't need to write all versions you have. > Including if someday you want to cross compile.

Reply by email