Recent

Author Topic: Synapse raspberry.  (Read 4192 times)

Mi-Ki

  • Jr. Member
  • **
  • Posts: 76
Synapse raspberry.
« on: March 05, 2023, 12:02:12 pm »
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

  • Hero Member
  • *****
  • Posts: 1409
Re: Synapse raspberry.
« Reply #1 on: March 05, 2023, 12:56:38 pm »
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.
regards
Andreas

Mi-Ki

  • Jr. Member
  • **
  • Posts: 76
Re: Synapse raspberry.
« Reply #2 on: March 05, 2023, 01:08:05 pm »
It's too sad that there is no synapse for 64 bit Lazarus.  %)

Thaddy

  • Hero Member
  • *****
  • Posts: 18792
  • Glad to be alive.
Re: Synapse raspberry.
« Reply #3 on: March 05, 2023, 01:21:50 pm »
It'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.
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

Mi-Ki

  • Jr. Member
  • **
  • Posts: 76
Re: Synapse raspberry.
« Reply #4 on: March 05, 2023, 01:38:17 pm »
I can't find the FCL-Web component.
Where can I find?

af0815

  • Hero Member
  • *****
  • Posts: 1409
Re: Synapse raspberry.
« Reply #5 on: March 05, 2023, 01:50:43 pm »
It'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.
regards
Andreas

balazsszekely

  • Guest
Re: Synapse raspberry.
« Reply #6 on: March 05, 2023, 02:37:40 pm »
Quote
It'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

  • Hero Member
  • *****
  • Posts: 18792
  • Glad to be alive.
Re: Synapse raspberry.
« Reply #7 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)
« Last Edit: March 05, 2023, 04:37:53 pm by Thaddy »
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

balazsszekely

  • Guest
Re: Synapse raspberry.
« Reply #8 on: March 05, 2023, 05:20:20 pm »
@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

  • Hero Member
  • *****
  • Posts: 6953
Re: Synapse raspberry.
« Reply #9 on: March 05, 2023, 05:27:19 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.

It's too sad that there is no synapse for 64 bit Lazarus.  %)
Synapse works just fine on Lazarus 64 bit.

Thaddy

  • Hero Member
  • *****
  • Posts: 18792
  • Glad to be alive.
Re: Synapse raspberry.
« Reply #10 on: March 05, 2023, 05:33:29 pm »
The issue was that a certain const structure syntax differed between Delphi and FPC.
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

af0815

  • Hero Member
  • *****
  • Posts: 1409
Re: Synapse raspberry.
« Reply #11 on: March 05, 2023, 07:41:09 pm »
It'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
regards
Andreas

rvk

  • Hero Member
  • *****
  • Posts: 6953
Re: Synapse raspberry.
« Reply #12 on: March 05, 2023, 08:09:41 pm »
It'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  ;D)


Thaddy

  • Hero Member
  • *****
  • Posts: 18792
  • Glad to be alive.
Re: Synapse raspberry.
« Reply #13 on: March 05, 2023, 08:13:03 pm »
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
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)
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

Thaddy

  • Hero Member
  • *****
  • Posts: 18792
  • Glad to be alive.
Re: Synapse raspberry.
« Reply #14 on: March 05, 2023, 08:16:07 pm »
Synapse 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.
« Last Edit: March 05, 2023, 08:18:02 pm by Thaddy »
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

 

TinyPortal © 2005-2018