Recent

Author Topic: Testing bgrabitmap,bgracontrols on Mac not compiling.  (Read 4175 times)

Josh

  • Hero Member
  • *****
  • Posts: 1271
Testing bgrabitmap,bgracontrols on Mac not compiling.
« on: October 12, 2018, 09:20:46 pm »
Hi

Updated bgrabitmap and bgracontrols via onlinepacgagemanager, latest trunk of pc and laz

But can't compile, have tried to do a clean build ice but get same error.

Warning: Recompiling BGRASliceScaling, checksum changed for /Users/josh/lazarus_trunk_cocoa/config_lazarus/onlinepackagemanager/packages/bgrabitmap-master/bgrabitmap/lib/x86_64-darwin/3.3.1/bgrabitmap.ppu
« Last Edit: October 12, 2018, 10:26:12 pm by josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

Thaddy

  • Hero Member
  • *****
  • Posts: 14197
  • Probably until I exterminate Putin.
Re: atest bgrabitmap,bgracontrols on Mac not compiling.
« Reply #1 on: October 12, 2018, 09:24:42 pm »
atm it only works on intel windows. (at least here...) Not on arm-linux, not on OSX, not anywhere else.
(definitely a regression)
« Last Edit: October 12, 2018, 09:26:19 pm by Thaddy »
Specialize a type, not a var.

Josh

  • Hero Member
  • *****
  • Posts: 1271
Re: atest bgrabitmap,bgracontrols on Mac not compiling.
« Reply #2 on: October 12, 2018, 10:25:40 pm »
Hi Thaddy,

Quite a problem, as you can't uninstall the failed install. It appears as installed, but can't uninstall from ether OPM or packages Install/Uninstall.

Hopefullly a fix is forth coming...
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: Testing bgrabitmap,bgracontrols on Mac not compiling.
« Reply #3 on: October 13, 2018, 01:54:47 am »
To my knowledge, there is no recent change to BGRASliceScaling.

The error you encountered reminds me of a problem with circular reference, yet this unit is not referenced by any other unit in BGRABitmap package.

Are you sure that's the error that prevents compiling?

Note : I am using it on Linux. Will be happy to find a fix for you, but we first need to identify precisely the problem.
« Last Edit: October 13, 2018, 01:59:16 am by circular »
Conscience is the debugger of the mind

c-sanchez

  • Jr. Member
  • **
  • Posts: 65
Re: Testing bgrabitmap,bgracontrols on Mac not compiling.
« Reply #4 on: October 15, 2018, 03:40:40 am »
Hi circular, I've readed some days ago your post in facebook and LazPaint news, by some reason I can't comment there, but well, I think is better here anyway :P

As I could see it seems that LazPaint will support SVG and text layers right?
I wonder if SVG will not make lazpaint a "bloated" program like others, I guess will be lightweight compared and this will a great feature anyway :)

I wonder also if the Indexed color images will be support too.

But surely make a graphics editor supporting full color, indexed color and vector images it's not a simple task heh :P

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: Testing bgrabitmap,bgracontrols on Mac not compiling.
« Reply #5 on: October 16, 2018, 10:54:06 am »
Indeed. That's quite a challenge. Indexed color is not planned for next release.

Anyway, back to this thread, josh and thaddy, any more info on the error(s) you encounter?
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Testing bgrabitmap,bgracontrols on Mac not compiling.
« Reply #6 on: October 22, 2018, 09:04:09 pm »
Hi, I'm updating all my setups to see what happens.

Maybe the problem comes with BGRAControls, when added the material design package into it.

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Testing bgrabitmap,bgracontrols on Mac not compiling.
« Reply #7 on: October 22, 2018, 10:05:05 pm »
In trunk - trunk there's a problem with BGRAControls, missing unit 'math'. I've fixed it in github.

Cross compiling from Windows 32 to Linux 64 gives me this:

Compile package BGRABitmapPack 9.9: Exit code 1, Errors: 7, Warnings: 5
bgragtkbitmap.pas(72,26) Error: Identifier not found "TGtk2DeviceContext"
bgragtkbitmap.pas(72,44) Error: Error in type definition
bgragtkbitmap.pas(124,36) Warning: unreachable code
bgragtkbitmap.pas(129,5) Error: Illegal type conversion: "HDC" to "TGtkDeviceContext"
bgragtkbitmap.pas(130,5) Error: Illegal type conversion: "HDC" to "TGtkDeviceContext"
bgragtkbitmap.pas(135,36) Warning: unreachable code
bgragtkbitmap.pas(310,38) Warning: unreachable code
bgragtkbitmap.pas(311,27) Error: Illegal type conversion: "HDC" to "TGtkDeviceContext"
bgragtkbitmap.pas(312,7) Error: Illegal type conversion: "HDC" to "TGtkDeviceContext"
bgragtkbitmap.pas(315,38) Warning: unreachable code
bgragtkbitmap.pas(353,5) Error: Illegal type conversion: "HDC" to "TGtkDeviceContext"
bgragtkbitmap.pas(355,36) Warning: unreachable code
Compile package IDEIntf 1.0: Aborted
Codetools, Errors: 1
bgragtkbitmap.pas(72,26) Error: identifier not found: TGtk2DeviceContext

Edit: I've seen there is a bug report about this, and it was solved removing the ifdef with everything inside, but anyways I don't have that change locally even if I'm using the dev branch.
Edit2: The fix is in the master branch, not in the dev branch...

And another edit: it works on Mac OS X as well with qt based IDE (maybe thanks to the bgracontrols fix as well)
« Last Edit: October 22, 2018, 11:24:04 pm by lainz »

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: Testing bgrabitmap,bgracontrols on Mac not compiling.
« Reply #8 on: October 23, 2018, 07:19:41 pm »
Oh I see I've merged into dev the fix about Gtk2.

Alright, so there is this fix to publish.

And according to you Lainz, it works on MacOS, so nothing to do there?
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Testing bgrabitmap,bgracontrols on Mac not compiling.
« Reply #9 on: October 23, 2018, 07:26:51 pm »
It works on Mac os with trunk_trunk QT ide. Mac os 10.13 ( I can't install 10.14 on my machine).

Cocoa ide doesn't works with fpcupdeluxe and I didn't try carbon ide (32 bit).

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: Testing bgrabitmap,bgracontrols on Mac not compiling.
« Reply #10 on: October 24, 2018, 01:47:40 pm »
Thanx.

Alright. I will prepare a next release. I will see If in the meantime I get feedback from Thaddy or josh.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Testing bgrabitmap,bgracontrols on Mac not compiling.
« Reply #11 on: October 24, 2018, 03:19:35 pm »
Ok, thanks  :)

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018