[Lazarus] fpGUI
Mark Morgan Lloyd
markMLl.lazarus at telemetry.co.uk
Thu Jan 13 09:44:22 CET 2011
Graeme Geldenhuys wrote:
> On Wed, 2011-01-12 at 17:26 +0000, Mark Morgan Lloyd wrote:
>> Reverting to Linux and trying to build with fpGUI from inside the LCL, I
>> get stuck at
>>
>> fpguiint.pp(42,12) Fatal: Can't find unit fpg_main used by fpguiint
>>
>> Symlinks (3x) appear OK- have I missed something obvious like a prebuild
>> stage?
>
> No idea. I just updated my Lazarus (trunk) and fpGUI (master) on my home
> laptop. I used FPC 2.4.3 (32-bit).
>
> Here are the steps I took:
>
> 1) $ cd ~/programming/lazarus/lcl/interfaces/fpgui/
> 2) $ ln -s /home/graemeg/programming/fpgui/src/corelib/ corelib
> 3) $ ln -s /home/graemeg/programming/fpgui/src/gui/ gui
> 4) This is a temporary work-around until Lazarus is updated:
> $ cd /home/graemeg/programming/fpgui/src
> $ cp ./VERSION_FILE.inc corelib/
> 5) Run Lazarus, then "Tools > Configure build lazarus" In the "Parts"
> set all radio buttons under the "none" column.
> 6) Set LCL under the "build" column.
> 7) Select "fpgui" in the LCL Widget Type combobox.
> 8) Click the "Build" button.
>
> Done!
>
> I created a simple test project with some of the Standard components,
> selected fpGUI as the widget type and it compiled and run successfully.
>
> NOTE:
> There is no need to "pre-compile" the fpGUI source code. When compiling
> LCL-fpGUI, Lazarus finds and compiles the fpGUI code too.
Added your step (4) which isn't in the instructions I'd used.
Still doesn't work on a clean system (good FPC 2.4.2, good Lazarus
28907). Below is the last few lines of console output:
make[1]: Entering directory `/usr/local/share/lazarus-trunk/lcl/interfaces'
/usr/bin/make -C fpgui all
make[2]: Entering directory
`/usr/local/share/lazarus-trunk/lcl/interfaces/fpgui'
/bin/rm -f ../../units/i386-linux/fpgui/interfaces.ppu \
../../units/i386-linux/fpgui/interfaces.o
/usr/local/bin/fpc -gl -dfpgui -Fu../../units/i386-linux -Fu. -Fucorelib
-Fugui -Fucorelib/x11 -Fu/usr/local/lib/fpc/2.4.2/units/i386-linux/rtl
-Ficorelib -Ficorelib/x11 -FE. -FU../../units/i386-linux/fpgui -di386
interfaces.pp
Free Pascal Compiler version 2.4.2 [2010/11/16] for i386
Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Linux for i386
Compiling interfaces.pp
Compiling fpguiint.pp
Fatal: Can't find unit fpg_main used by fpguiint
TExternalToolList.Run Exception:
/usr/local/share/lazarus-trunk/lcl/interfaces/fpgui/fpguiint.pp(1,1)
Fatal: Can't find unit fpg_main used by fpguiint
TMainIDE.DoBuildLazarus: Building standard components (LCL, SynEdit,
CodeTools) failed.
Alternatively make LCL_PLATFORM=fpgui lcl does appear to succeed, but
trying to build a test project (button and label on form) fails.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the Lazarus
mailing list