* * *

Author Topic: Compiling app in Cocoa Graphics could not be loaded from resource  (Read 601 times)

josh

  • Sr. Member
  • ****
  • Posts: 370
Hi

Just downloaded lates SVN 54499.

Tried to compile my app for cocoa (both I386 and x86-64), but it generates an error before anything is displayed.

TCocoaWidgetset.RawImage_CreateBitmaps TODO Depth=32 alpharec=8 byteorder=0 alpha=24 red=16 green=8 blue=0
Exception=Graphics could not be loaded from resource.
[FORMS.PP] Exceptionoccurred.

Non of my res files have any graphics in, except the app icon file.

I can compile fine on Carbon, WIn32/Win64

ANy idea?
« Last Edit: March 29, 2017, 12:35:33 pm by josh »
Lazarus 1.3
FPC 2.7.1
Windows 7/8 32/64, OSX, *nix

Phil

  • Hero Member
  • *****
  • Posts: 2145
Re: Compiling app in Cocoa Graphics could not be loaded from resource
« Reply #1 on: March 29, 2017, 03:49:58 pm »
TCocoaWidgetset.RawImage_CreateBitmaps TODO Depth=32 alpharec=8 byteorder=0 alpha=24 red=16 green=8 blue=0
Exception=Graphics could not be loaded from resource.
[FORMS.PP] Exceptionoccurred.

You're calling code that is known to be incomplete, as indicated by the debug message ("TODO").

File a bug report.

josh

  • Sr. Member
  • ****
  • Posts: 370
Re: Compiling app in Cocoa Graphics could not be loaded from resource
« Reply #2 on: March 29, 2017, 10:46:23 pm »
Hi Phil,

Thanks for responding. I reported this back in OCtober (0030675)  with sample proj, and have only very recently got a working laz svn installed again thanks to DonAlfredo; regarding patching 2 files to allow laz to build via fpcupdeluxe.

I was hoping that possibly a fix may have been implemented, also whether anyone else is getting this problem.
Lazarus 1.3
FPC 2.7.1
Windows 7/8 32/64, OSX, *nix

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus