[Lazarus] Keyboard mapping probelm

Brian b_lists at patandbrian.org
Sat May 30 22:04:31 CEST 2020

On 5/30/20 3:22 PM, Brian via lazarus wrote:
> On 5/30/20 2:57 PM, Juha Manninen via lazarus wrote:
>> On Sat, May 30, 2020 at 4:40 PM Brian via lazarus
>> <lazarus at lists.lazarus-ide.org> wrote:
>>> Unless you have some reason to believe that the QT5 version of
>>> fpcupdeluxe doesn't build lazarus with QT5 bindings, I have already
>>> tried this idea and still seen the same problem.  Yes, I deleted back
>>> EVERYTHING except for the actual fpcupdeluxe executable - all config
>>> files and the entire target directory - from the GTK2 build. Then I
>>> downloaded the QT5 version of the executable and ran that. Once again,
>>> it built, but I still saw the key mapping etc. problem.
>> Yes I have a reason to believe so.
>> The LCL widgetset used for fpcupdeluxe executable does not affect how
>> Lazarus is built.
>> You can check the current widgetset of Lazarus executable from Help ->
>> About Lazarus.
>> All this hassle proves that fpcupdeluxe should not be used for the
>> simple task of building native (OS, CPU) version of Lazarus trunk.
>> It only complicates things and confuses.
>> Getting sources and building Lazarus is so easy when FPC is already installed.
>> Things are different when you want FPC trunk. It is not as trivial. (*)
>> Cross-compilation is another good reason to use fpcupdeluxe. I have
>> understood it shines there.
>>> Since I've come this far, though, I guess I'm willing to try building
>>> the lazarus code downloaded via subversion with the QT5 bindings. Is
>>> there a web page, or some other documentation, that leads me though
>>> doing that? I've never previously built the QT5 version except the
>>> attempt to build it via fpcupdeluxe.
>> As John Landmesser showed, Tools -> Configure "Build Lazarus" ...
> OK, my misunderstanding. I thought you were talking about a difference
> in actually building Lazarus from sources. I will give it a try.

Well, I still can't get Lazarus to build from the sources obtained
through subversion. Here's the output, with an initial update to make
sure I was building the latest version.

> brian at brian-mint:~/subversion$ svn update lazarus
> Updating 'lazarus':
> U    lazarus/docs/xml/lcl/stdctrls.xml
> U    lazarus/lcl/include/customcombobox.inc
> U    lazarus/lcl/interfaces/cocoa/cocoawsstdctrls.pas
> U    lazarus/lcl/interfaces/cocoa/cocoadefines.inc
> U    lazarus/lcl/interfaces/cocoa/cocoaint.pas
> U    lazarus/lcl/interfaces/gtk2/gtk2wsstdctrls.pp
> U    lazarus/lcl/interfaces/qt5/qtwsstdctrls.pp
> U    lazarus/lcl/interfaces/win32/win32wsstdctrls.pp
> U    lazarus/lcl/stdctrls.pp
> U    lazarus/lcl/widgetset/wsstdctrls.pp
> U    lazarus/components/datetimectrls/datetimepicker.pas
> U    lazarus/components/ideintf/srceditorintf.pas
> U    lazarus/components/fpweb/fpwebtoolsunit.pas
> U    lazarus/ide/fpdoceditwindow.pas
> U    lazarus/ide/sourceeditor.pp
>  U   lazarus
> Updated to revision 63253.
> brian at brian-mint:~/subversion$ cd lazarus
> brian at brian-mint:~/subversion/lazarus$ make -B
> make -C packager/registration
> make[1]: Entering directory '/home/brian/subversion/lazarus/packager/registration'
> /bin/rm -f ../units/x86_64-linux/fcllaz.ppu
> /bin/mkdir -p ../units/x86_64-linux
> /usr/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -Fu/usr/lib/fpc/3.0.4/units/x86_64-linux/rtl -FE. -FU../units/x86_64-linux -Cg -dx86_64 fcllaz.pas
> Free Pascal Compiler version 3.0.4 [2018/10/29] for x86_64
> Copyright (c) 1993-2017 by Florian Klaempfl and others
> (1002) Target OS: Linux for x86-64
> (3104) Compiling fcllaz.pas
> /home/brian/subversion/lazarus/packager/registration/fcllaz.pas(11,3) Fatal: (10022) Can't find unit db used by fcllaz
> Fatal: (1018) Compilation aborted
> Makefile:2929: recipe for target 'fcllaz.ppu' failed
> make[1]: *** [fcllaz.ppu] Error 1
> make[1]: Leaving directory '/home/brian/subversion/lazarus/packager/registration'
> Makefile:3410: recipe for target 'registration' failed
> make: *** [registration] Error 2
> brian at brian-mint:~/subversion/lazarus$ 

So, I switched to the version which I had successfully built using
fpcupdeluxe, and followed John's instructions. While the gtk2 version
did build correctly, but showed the 'i' and 'm' problems, the qt5
version did not even build. I got an error about an undefined
reference in Qtwidgets.pas to QTextEdit_setPlaceholderText.

If there's anything else you need me to try, let me know. For the
moment, I'm back to using my LMDE VM, which shows none of this 'i' and
'm' nonsense, even with the gtk2 setting.


More information about the lazarus mailing list