Re: [Lazarus] lazarus 3.2 and qt5, cannot open anything
El 23/5/24 a les 16:11, Luca Olivetti via lazarus ha escrit: El 23/5/24 a les 15:43, zeljko ha escrit: No such error when using gtk2, but I prefer qt5. It is KDE problem (probably bug), disable in IDE options -> Windows -> "IDE title shows project directory" and it'll work. Thank you, I'll try that if it happens again. Strangely enough, it doesn't happen (even with that option active) if I rebuild clean the ide for a different widgetset (I tried gtk2 and qt6) then rebuild it for qt5. Spoke to soon: right after sending the email, I tried opening a file and the error reappeared. Disabling the option solved it. Bye -- Luca Olivetti Wetron Automation Technology https://wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] lazarus 3.2 and qt5, cannot open anything
El 23/5/24 a les 15:43, zeljko ha escrit: No such error when using gtk2, but I prefer qt5. It is KDE problem (probably bug), disable in IDE options -> Windows -> "IDE title shows project directory" and it'll work. Thank you, I'll try that if it happens again. Strangely enough, it doesn't happen (even with that option active) if I rebuild clean the ide for a different widgetset (I tried gtk2 and qt6) then rebuild it for qt5. When it happens if I just rebuild for qt5 (without changing the widgetset) it doesn't solve the problem. Bye -- Luca Olivetti Wetron Automation Technology https://wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] lazarus 3.2 and qt5, cannot open anything
On 23. 05. 2024. 10:37, Luca Olivetti via lazarus wrote: As per the subject, if I compile the ide with qt5 I cannot open anything (projects, units, etc.), since the file open dialog gives an error (localizer, approximate translation) "cannot create worker KIO process. Couldn't create a socket to launch the KIO process for the 'tags' protocol". No such error when using gtk2, but I prefer qt5. It is KDE problem (probably bug), disable in IDE options -> Windows -> "IDE title shows project directory" and it'll work. zeljko -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] lazarus 3.2 and qt5, cannot open anything
El 23/5/24 a les 12:58, Mattias Gaertner via lazarus ha escrit: On 5/23/24 12:47, Luca Olivetti via lazarus wrote: [...] No, it's not supposed to be a GUI program. I added it now, it compiles, but then I have the problem reported in the BGRAbitmap bugtracker (and I wonder why it compiled fine without the interfaces unit and the gtk2 widgetset). I "solved" the "too many libraries" problem using the nogui widgetset. It's a solution I'm not really comfortable with but it seems to work. I wonder why, back when when I originally wrote the program with lazarus 2.0.12, neither the "interfaces" unit was needed nor the project pulled so many libraries. Depends on what you use from BGRA and what that uses from the LCL. I just use it to convert an image to jpeg and scale it to a fixed size, or to generate a jpeg image with a text in it. The use case is to manage user's avatars from a web application, if an image is provided then it's used as the avatar, otherwise a dummy avatar is generated with the user's initials. Most of the LCL requires the interfaces unit. I understand that, what I don't understand is why I didn't need it with lazarus 2.0.12 (and why the program could be build with gtk2 even without the interfaces unit). Keep in mind that the nogui widgetset is for most part an empty stub. That's why I'm not really comfortable with it, though it seems to be enough for this application. Bye -- Luca Olivetti Wetron Automation Technology https://wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] lazarus 3.2 and qt5, cannot open anything
On 5/23/24 12:47, Luca Olivetti via lazarus wrote: [...] No, it's not supposed to be a GUI program. I added it now, it compiles, but then I have the problem reported in the BGRAbitmap bugtracker (and I wonder why it compiled fine without the interfaces unit and the gtk2 widgetset). I "solved" the "too many libraries" problem using the nogui widgetset. It's a solution I'm not really comfortable with but it seems to work. I wonder why, back when when I originally wrote the program with lazarus 2.0.12, neither the "interfaces" unit was needed nor the project pulled so many libraries. Depends on what you use from BGRA and what that uses from the LCL. Most of the LCL requires the interfaces unit. Keep in mind that the nogui widgetset is for most part an empty stub. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] lazarus 3.2 and qt5, cannot open anything
El 23/5/24 a les 12:33, Luca Olivetti via lazarus ha escrit: El 23/5/24 a les 12:26, Marco van de Voort via lazarus ha escrit: Op 23-5-2024 om 12:15 schreef Luca Olivetti via lazarus: Warning: linker: /usr/bin/ld: /home/luca/Datos/laz_3_2/lcl/lib/LCLBase/3.2.2/x86_64-linux/Default/wsimglist.o: in function `REGISTERCUSTOMIMAGELISTRESOLUTION': wsimglist.pp(265,0) Error: linker: undefined reference to `WSRegisterCustomImageListResolution' BTW, this is related to https://github.com/bgrabitmap/bgrabitmap/issues/253 Do you have the interfaces unit early in your .lpr USES list? No, it's not supposed to be a GUI program. I added it now, it compiles, but then I have the problem reported in the BGRAbitmap bugtracker (and I wonder why it compiled fine without the interfaces unit and the gtk2 widgetset). I "solved" the "too many libraries" problem using the nogui widgetset. It's a solution I'm not really comfortable with but it seems to work. I wonder why, back when when I originally wrote the program with lazarus 2.0.12, neither the "interfaces" unit was needed nor the project pulled so many libraries. Bye -- Luca Olivetti Wetron Automation Technology https://wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] lazarus 3.2 and qt5, cannot open anything
El 23/5/24 a les 12:26, Marco van de Voort via lazarus ha escrit: Op 23-5-2024 om 12:15 schreef Luca Olivetti via lazarus: Warning: linker: /usr/bin/ld: /home/luca/Datos/laz_3_2/lcl/lib/LCLBase/3.2.2/x86_64-linux/Default/wsimglist.o: in function `REGISTERCUSTOMIMAGELISTRESOLUTION': wsimglist.pp(265,0) Error: linker: undefined reference to `WSRegisterCustomImageListResolution' BTW, this is related to https://github.com/bgrabitmap/bgrabitmap/issues/253 Do you have the interfaces unit early in your .lpr USES list? No, it's not supposed to be a GUI program. I added it now, it compiles, but then I have the problem reported in the BGRAbitmap bugtracker (and I wonder why it compiled fine without the interfaces unit and the gtk2 widgetset). Bye -- Luca Olivetti Wetron Automation Technology https://wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] lazarus 3.2 and qt5, cannot open anything
Op 23-5-2024 om 12:15 schreef Luca Olivetti via lazarus: Warning: linker: /usr/bin/ld: /home/luca/Datos/laz_3_2/lcl/lib/LCLBase/3.2.2/x86_64-linux/Default/wsimglist.o: in function `REGISTERCUSTOMIMAGELISTRESOLUTION': wsimglist.pp(265,0) Error: linker: undefined reference to `WSRegisterCustomImageListResolution' BTW, this is related to https://github.com/bgrabitmap/bgrabitmap/issues/253 Do you have the interfaces unit early in your .lpr USES list? -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] lazarus 3.2 and qt5, cannot open anything
El 23/5/24 a les 12:01, Luca Olivetti via lazarus ha escrit: El 23/5/24 a les 10:38, Luca Olivetti via lazarus ha escrit: I rebuilt the ide again with qt5 and the problem is gone. Weird. El 23/5/24 a les 10:37, Luca Olivetti via lazarus ha escrit: Forgot to say, this is under debian 12 x86_64 with plasma desktop. As per the subject, if I compile the ide with qt5 I cannot open anything (projects, units, etc.), since the file open dialog gives an error (localizer, approximate translation) "cannot create worker KIO process. Couldn't create a socket to launch the KIO process for the 'tags' protocol". No such error when using gtk2, but I prefer qt5. But now I cannot build my (old) project, I get a bunch of linker errors from LCLBase regarding missing WSRegister* symbols, like Warning: linker: /usr/bin/ld: /home/luca/Datos/laz_3_2/lcl/lib/LCLBase/3.2.2/x86_64-linux/Default/wsimglist.o: in function `REGISTERCUSTOMIMAGELISTRESOLUTION': wsimglist.pp(265,0) Error: linker: undefined reference to `WSRegisterCustomImageListResolution' BTW, this is related to https://github.com/bgrabitmap/bgrabitmap/issues/253 Bye -- Luca Olivetti Wetron Automation Technology https://wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] lazarus 3.2 and qt5, cannot open anything
El 23/5/24 a les 10:38, Luca Olivetti via lazarus ha escrit: I rebuilt the ide again with qt5 and the problem is gone. Weird. El 23/5/24 a les 10:37, Luca Olivetti via lazarus ha escrit: Forgot to say, this is under debian 12 x86_64 with plasma desktop. As per the subject, if I compile the ide with qt5 I cannot open anything (projects, units, etc.), since the file open dialog gives an error (localizer, approximate translation) "cannot create worker KIO process. Couldn't create a socket to launch the KIO process for the 'tags' protocol". No such error when using gtk2, but I prefer qt5. Bye -- Luca Olivetti Wetron Automation Technology https://wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] lazarus 3.2 and qt5, cannot open anything
El 23/5/24 a les 10:37, Luca Olivetti via lazarus ha escrit: Forgot to say, this is under debian 12 x86_64 with plasma desktop. As per the subject, if I compile the ide with qt5 I cannot open anything (projects, units, etc.), since the file open dialog gives an error (localizer, approximate translation) "cannot create worker KIO process. Couldn't create a socket to launch the KIO process for the 'tags' protocol". No such error when using gtk2, but I prefer qt5. Bye -- Luca Olivetti Wetron Automation Technology https://wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus