Synapse raspberry. lazarus / 1-Linux ---------------------------------------------------------------------- Mi-Ki · 2023-03-05 11:02 Hello. I installed a new system and Lazarus 2.0.10 FPC 3.2.0 64 bit I have installed component Lazserias and Indi . Synapse via online packger manager cannot be installed. Lazarus freezes. ---------------------------------------------------------------------- af0815 · 2023-03-05 11:56 Raspberry 64 is not a normal target (yet). So problems can arise. But Lazarus is not freezing normal. You can start Lazarus from commandline and look if a message appears. But Synapse is not a component to install in Lazarus. It must only be known by Lazarus, NOT INSTALLED. You can open the downloaded package from OPM and make a compile of the package (Not Lazarus). There can be some errors due the 'special' target. ---------------------------------------------------------------------- Mi-Ki · 2023-03-05 12:08 It's too sad that there is no synapse for 64 bit Lazarus. ---------------------------------------------------------------------- Thaddy · 2023-03-05 12:21 Quote from: Mi-Ki on March 05, 2023, 01:08:05 pmIt's too sad that there is no synapse for 64 bit Lazarus.  That does not matter too much, since fcl-web is just as good and syntactically very close to synapse. I have ported almost all my synapse  code that need not be portable with delphi to fcl-web. ---------------------------------------------------------------------- Mi-Ki · 2023-03-05 12:38 I can't find the FCL-Web component. Where can I find? ---------------------------------------------------------------------- af0815 · 2023-03-05 12:50 Quote from: Mi-Ki on March 05, 2023, 01:08:05 pmIt's too sad that there is no synapse for 64 bit Lazarus.  This is not correct, but nobody have testet it before, but you can look, whats going on :-) Often only the correct defines are missing. ---------------------------------------------------------------------- balazsszekely · 2023-03-05 13:37 QuoteIt's too sad that there is no synapse for 64 bit Lazarus.  Are you sure that synapse is causing the issue, because it's a runtime package. Can you create a backtrace(https://wiki.freepascal.org/Creating_a_Backtrace_with_GDB)? Alternatively build a debug ide and run Lazarus inside Lazarus. Don't forget that is always a lazarus_old executable inside the lazarus folder, so you don't have to reinstall Lazarus it if something goes wrong, just replace the binaries. ---------------------------------------------------------------------- Thaddy · 2023-03-05 15:01 @GetMem There is/was an issue with Synapse. I provided a patch somewhere, dunno if it got applied. Anyway: MY synapse works on my RPi's, but as I said, fcl-web is much the same and I prefer it. (matter of taste, not of quality) ---------------------------------------------------------------------- balazsszekely · 2023-03-05 16:20 @Thaddy OPM has the latest version of synapse trunk r. 267 from 2023.02.09 (just checked), so most likely your patch wasn't applied. ---------------------------------------------------------------------- rvk · 2023-03-05 16:27 Quote from: Thaddy on March 05, 2023, 04:01:40 pm@GetMem There is/was an issue with Synapse. I provided a patch somewhere, dunno if it got applied. Anyway: MY synapse works on my RPi's, but as I said, fcl-web is much the same and I prefer it. (matter of taste, not of quality) Was that an issue that could cause Lazarus to freeze? I don't think the freezing of Lazarus IDE on RPI has anything to do with Synapse. Quote from: Mi-Ki on March 05, 2023, 01:08:05 pmIt's too sad that there is no synapse for 64 bit Lazarus.  Synapse works just fine on Lazarus 64 bit. ---------------------------------------------------------------------- Thaddy · 2023-03-05 16:33 The issue was that a certain const structure syntax differed between Delphi and FPC. ---------------------------------------------------------------------- af0815 · 2023-03-05 18:41 Quote from: rvk on March 05, 2023, 05:27:19 pmQuote from: Mi-Ki on March 05, 2023, 01:08:05 pmIt's too sad that there is no synapse for 64 bit Lazarus.  Synapse works just fine on Lazarus 64 bit. Have you test it with Intel or ARM ? RasPi 4 is a ARM system. As i know this is a new Target, not often used yet ---------------------------------------------------------------------- rvk · 2023-03-05 19:09 Quote from: af0815 on March 05, 2023, 07:41:09 pmQuote from: rvk on March 05, 2023, 05:27:19 pmQuote from: Mi-Ki on March 05, 2023, 01:08:05 pmIt's too sad that there is no synapse for 64 bit Lazarus.  Synapse works just fine on Lazarus 64 bit. Have you test it with Intel or ARM ? RasPi 4 is a ARM system. As i know this is a new Target, not often used yet Linux on Intel 32 and 64 bit and ARM 32 bit. Unfortunately I don't have a spare RPI4 at the moment and they are hard to come by. (And I just repurposed my last RPI3) But like you said yourself, a freezing Lazarus shouldn't be because of Synapse. So there must be something else wrong. (And TS said Indy was installed just before so my guess is that's the culprit  ) ---------------------------------------------------------------------- Thaddy · 2023-03-05 19:13 Quote from: af0815 on March 05, 2023, 07:41:09 pmHave you test it with Intel or ARM ? RasPi 4 is a ARM system. As i know this is a new Target, not often used yet It is probably more used as an OS than FreePascal and Lazarus are used as a compiler suite on an AARM64/Raspberry Pi. The 64 bit OS certainly needs polishing, but both FPC and Lazarus work. (Although I compile by hand, it should be OK with fpcupdeluxe) ---------------------------------------------------------------------- Thaddy · 2023-03-05 19:16 Quote from: rvk on March 05, 2023, 05:27:19 pmSynapse works just fine on Lazarus 64 bit. It is about the AARCH64 architecture, not Intel... On AARCH64/RPi, Synapse needs a patch. Not a difficult one for you and me and some others, but still it needs to address some oversights in Synapse 4.2/4.1. You will know it when you hit it. ---------------------------------------------------------------------- Fred vS · 2023-03-05 19:24 Quote from: rvk on March 05, 2023, 08:09:41 pmUnfortunately I don't have a spare RPI4 at the moment and they are hard to come by. (And I just repurposed my last RPI3) Note that RPI3 has a ARM CPU 64 bit. I have installed Raspberry PI OS 64 bit on some of my RPI3 and fpc works ok, a few faster than on RPi OS 32 bit. ---------------------------------------------------------------------- Thaddy · 2023-03-05 19:53 Quote from: Fred vS on March 05, 2023, 08:24:40 pmI have installed Raspberry PI OS 64 bit on some of my RPI3 and fpc works ok, a few faster than on RPi OS 32 bit. Yes, it does, but there are some Lazarus problems regarding GTK2 on RPi 4's. These are beginning to be sorted out. Skip Wayland for the moment on RPi 4. Lazarus on RPi 4 using Wayland can give troubles. ---------------------------------------------------------------------- Fred vS · 2023-03-05 20:02 Quote from: Thaddy on March 05, 2023, 08:53:23 pmYes, it does, but there are some problems regarding GTK2 on RPi 4's. Ha, ok ( I use a widgetset that directly uses Xlib (or XWayland) so I do not know those kind of problems ). ---------------------------------------------------------------------- Kepsz · 2023-03-06 08:31 Quote from: Mi-Ki on March 05, 2023, 12:02:12 pmHello. I installed a new system and Lazarus 2.0.10 FPC 3.2.0 64 bit I have installed component Lazserias and Indi . Synapse via online packger manager cannot be installed. Lazarus freezes. Last week, I installed Ubuntu x64 on an RPI4 instead of RpiOS x64 because of its limitations and old packages. Then I installed lubuntu-desktop and removed most gnome packages to make it lightweight. On that system with lazarus-ide-qt and libqt5pas-dev, I was able to install synapse with OPM, and also, I built a complex program that uses synapse (synaser). - with QT5 widget set. ---------------------------------------------------------------------- paweld · 2023-03-06 13:00 I've been trying to do this for a long time, so I finally replaced the raspbian buster with RasPi OS x64 (64-bit) and without any problems synapse installed via OPM and works. I use Lazarus trunk and FPC fixes installed via fpcupdeluxe ---------------------------------------------------------------------- Thaddy · 2023-03-06 13:17 Yes, I just updated one of my RPi 4 to test that and it works without the old hick-ups. Reminder to self: update more often. Note that I never experienced any problems with FPC, just Lazarus and that looks fixed with the RasPi AARCH64 OS update. (not x64: that refers to Intel) ---------------------------------------------------------------------- paweld · 2023-03-06 13:46 habit :-) . corrected