VirtualTreeView + Qt + armhf = nothing much lazarus / 31-LCL ---------------------------------------------------------------------- MarkMLl · 2020-04-22 09:24 I've just fired up a Raspbian Jessie system that hasn't been used for a while. I can build Lazarus trunk for GTK2 with bigide, but not for Qt: Code: [Select]... make -C virtualtreeview make[2]: Entering directory '/usr/local/share/lazarus- trunk/components/virtualtreeview' /bin/rm -f lib/arm-linux-qt/laz.virtualtreeview_package.ppu /usr/local/bin/ppcarm -MObjFPC -Scgim -O1 -g -gl -l -vewnhibq -dLCL -dLCLqt -Fuunits/qt -Fu../../packager/units/arm-linux -Fu../lazutils/lib/arm-linux -Fu../buildintf/units/arm-linux -Fu../../lcl/units/arm-linux -Fu../../lcl/units/arm-linux/qt -Fu../lazcontrols/lib/arm-linux/qt -Fu../lclextensions/lib/arm-linux- qt -Fu../ideintf/units/arm-linux/qt -Fu. -Fu/usr/local/lib/fpc/3.0.4/units/arm-linux/rtl -Fiinclude/intf/qt -Fiunits -Fiinclude/intf -FE. -FUlib/arm-linux-qt -darm laz.virtualtreeview_package.pas Hint: (11030) Start of reading config file /etc/fpc.cfg Hint: (11031) End of reading config file /etc/fpc.cfg Free Pascal Compiler version 3.0.4 [2020/04/21] for arm Copyright (c) 1993-2017 by Florian Klaempfl and others (1002) Target OS: Linux for ARMHF (3104) Compiling laz.virtualtreeview_package.pas (3104) Compiling laz.virtualtrees.pas (3104) Compiling laz.vtgraphics.pas /usr/local/share/lazarus-trunk/components/virtualtreeview/./include/in tf/qt/laz.vtgraphicsi.inc(4,2) Error: (2050) Illegal assembler style specified "INTEL" /usr/local/share/lazarus-trunk/components/virtualtreeview/./include/in tf/qt/laz.vtgraphicsi.inc(113,17) Error: (5004) Unknown identifier "ESI" /usr/local/share/lazarus-trunk/components/virtualtreeview/./include/in tf/qt/laz.vtgraphicsi.inc(114,17) Error: (5004) Unknown identifier "EDI" /usr/local/share/lazarus-trunk/components/virtualtreeview/./include/in tf/qt/laz.vtgraphicsi.inc(116,20) Error: (5004) Unknown identifier "ESI" ... I mention this because it might indicate a weakness in the makefiles, not because I have any particular need that it be fixed. MarkMLl ---------------------------------------------------------------------- marcov · 2020-04-22 09:51 Nope, that code is hardcode as assembler only with an ifdef for x86_64 and i386, and no pascal default. Since the ifdef for x86_64 is not defined on armhf, it goes to the "else" clause which is i386. Seems that the code is mostly SSE, so I assume performance dependent. ---------------------------------------------------------------------- MarkMLl · 2020-04-22 10:01 Note that the error is Qt-specific. There's a makefile problem in there somewhere IMO. MarkMLl ---------------------------------------------------------------------- balazsszekely · 2020-04-22 10:25 @MarkMLl QuoteI've just fired up a Raspbian Jessie system that hasn't been used for a while. I can build Lazarus trunk for GTK2 with bigide, but not for Qt1. Build Lazarus with GTK2 2. Uninstall OPM 3. Try to rebuild the IDE with QT again, you may face other issues PS: I will try to find a fix for QT, so at least you can use the IDE, I'm not sure if OPM will work though. ---------------------------------------------------------------------- MarkMLl · 2020-04-22 10:47 I'd already tried commenting out virtualtreeview from Makefile.fpc and found the OPM dependency... currently rebuilding with that also removed and so far it looks OK. Building with "all" rather than "bigide" appears OK and I'm pretty sure that the program I want to test doesn't use anything out of the ordinary. GTK2 is obviously OK. Again, please note that I'm not complaining but makefiles are bitchen. Slightly later: Code: [Select]... (9009) Assembling projectwizarddlg (3104) Compiling sourcefilemanager.pas /usr/local/share/lazarus-trunk/ide/sourcefilemanager.pas(4844,20) Hint: (5024) Parameter "Sender" not used (9009) Assembling sourcefilemanager (3104) Compiling notifyprocessend.pas (9009) Assembling notifyprocessend ... (9009) Assembling main /usr/local/share/lazarus-trunk/ide/lazarus.pp(78,5) Fatal: (10022) Can't find unit laz.virtualtreeview_package used by Lazarus Fatal: (1018) Compilation aborted Makefile:4387: recipe for target 'lazarus' failed make[2]: *** [lazarus] Error 1 make[2]: Leaving directory '/usr/local/share/lazarus-trunk/ide' Makefile:4827: recipe for target 'bigide' failed make[1]: *** [bigide] Error 2 make[1]: Leaving directory '/usr/local/share/lazarus-trunk/ide' Makefile:3403: recipe for target 'idebig' failed make: *** [idebig] Error 2 MarkMLl ---------------------------------------------------------------------- marcov · 2020-04-22 10:55 Quote from: MarkMLl on April 22, 2020, 12:01:50 pmNote that the error is Qt-specific. There's a makefile problem in there somewhere IMO. The doubtful code is in a QT specific part of VST. Quote from: GetMem on April 22, 2020, 12:25:53 pmPS: I will try to find a fix for QT, so at least you can use the IDE, I'm not sure if OPM will work though. It is just some optimized blending. Should be easy to have a plain pascal alternative there. Maybe the code has Kylix origins, normally new code always has a pascal eq. ---------------------------------------------------------------------- zeljko · 2020-04-22 12:15 Qt/Qt5 of laz.vtigraphics.inc should be rewritten for arm , also some stuff can be deleted if it isn't used at all. ---------------------------------------------------------------------- MarkMLl · 2020-04-22 12:24 Looks like linking bigide for GTK2 now needs more than the 1Gb RAM in this RPi, which is configured without swap (albeit with a fair amount of USB-connected disc). MarkMLl ---------------------------------------------------------------------- af0815 · 2020-04-22 14:21 Quote from: MarkMLl on April 22, 2020, 02:24:58 pmLooks like linking bigide for GTK2 now needs more than the 1Gb RAM in this RPi, which is configured without swap (albeit with a fair amount of USB-connected disc). MarkMLl Thnis is known and no problem to configure swap for this, you need this swap often if you recompile Lazarus itself. ---------------------------------------------------------------------- MarkMLl · 2020-04-22 20:31 Quote from: af0815 on April 22, 2020, 04:21:01 pmQuote from: MarkMLl on April 22, 2020, 02:24:58 pmLooks like linking bigide for GTK2 now needs more than the 1Gb RAM in this RPi, which is configured without swap (albeit with a fair amount of USB-connected disc). MarkMLl Thnis is known and no problem to configure swap for this, you need this swap often if you recompile Lazarus itself. Well, I remember when building Lazarus on a "Slug" with- I think- 32Mb RAM needed 512Mb swap... and still took a week. This is the first time I've come across a single job demanding >1Gb, and while I can hack something together it's not as easy as "configure swap" since the disc has been set up without a swap partition and is getting a bit tight on space for extra files. I'll sort it out presently, but right now the important thing for me is to test out a particular comms protocol and I don't think I need any of the bigide stuff for it. I /definitely/ don't need Virtual TreeView, and would happily sacrifice it if the Gods looked upon such things favourably :-) MarkMLl