Recent

Author Topic: Blocked by missing CocoaAll [Resolved]  (Read 7839 times)

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Blocked by missing CocoaAll [Resolved]
« on: April 07, 2012, 06:01:25 pm »
I just updated Lazarus to svn revision 36658, and now get the fatal error:

'Can't find unit CocoaAll used by CarbonPrivate'

I'm not trying to use Cocoa, but now can't compile Carbon. Can anyone tell me how to get around this roadblock?

Cheers,
Frederick

OS X 10.6.8
FPC 2.4.4
« Last Edit: April 07, 2012, 10:54:21 pm by Frederick »
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Blocked by missing CocoaAll
« Reply #1 on: April 07, 2012, 06:08:37 pm »
You'll need to upgrade to FPC 2.6.0.


VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Blocked by missing CocoaAll
« Reply #2 on: April 07, 2012, 06:19:09 pm »
Thanks Phil,

I have been successfully running 2.4.4, developing on OS X and recompiling on Windows.

I did not expect a svn update would require a change in FPC, does Lazaus now require 2.6? 

I'm nervous about jumping ahead to 2.6, but am happy to do so if it is stable and I can compile on Windows.

Am I likely to run into any issues?

Cheers,
Frederick
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • formatio reticularis
Re: Blocked by missing CocoaAll
« Reply #3 on: April 07, 2012, 06:27:57 pm »
The transition to FPC 2.6 should be smooth.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Blocked by missing CocoaAll
« Reply #4 on: April 07, 2012, 06:28:38 pm »
My LCL source is not up-to-date, but it appears as though you should be able to define CarbonDontUseCocoa and recompile LCL with 2.4.x.

However, I would strongly suggest upgrading to 2.6.0 instead.

Thanks.

-Phil

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Blocked by missing CocoaAll
« Reply #5 on: April 07, 2012, 06:36:06 pm »
Thanks,

I think it is worth trying the upgrade to FPC 2.6 then.

I get nervous because I still have trouble figuring out the correct settings in Lazarus.

Will Lazarus require me to install the FPC 2.6 sources?

Cheers,
Frederick
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • formatio reticularis
Re: Blocked by missing CocoaAll
« Reply #6 on: April 07, 2012, 06:37:56 pm »
Will Lazarus require me to install the FPC 2.6 sources?

Yes, you should install FPC 2.6 and the latest version of the FPC sources as well.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Blocked by missing CocoaAll
« Reply #7 on: April 07, 2012, 06:50:59 pm »
Thanks,

I appreciate the help. Will try first on OS X, then Windows.

Cheers,
Frederick
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Blocked by missing CocoaAll
« Reply #8 on: April 07, 2012, 07:07:22 pm »
Some newbie questions:

When I install 'fpc-2.6.0.intel-macosx.dmg' where are the files installed?

Why does OS X Terminal still find FPC 2.4.4?

After I unzip 'fpc-2.6.0.source.zip' where do I put the source files?

Cheers,
Frederick
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Blocked by missing CocoaAll
« Reply #9 on: April 07, 2012, 07:15:53 pm »
Some newbie questions:

When I install 'fpc-2.6.0.intel-macosx.dmg' where are the files installed?

Why does OS X Terminal still find FPC 2.4.4?

After I unzip 'fpc-2.6.0.source.zip' where do I put the source files?

Cheers,
Frederick

Trying to answer myself:

/usr/local/bin/ppc386

/usr/local/share/fpcsrc

but do I want to overwrite the old source?
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Blocked by missing CocoaAll
« Reply #10 on: April 07, 2012, 07:55:25 pm »
So far so good, I just put fpc 'packages' and 'rtl' sources here:

/Developer/freepascal/fpc-2.6.0/fpcsrc/

and told Lazarus where to look.
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Blocked by missing CocoaAll
« Reply #11 on: April 07, 2012, 08:28:50 pm »
A side effect is that my TToolButton assignments don't work. :/

Does anyone know if there were recent changes to TToolButton?


Edit: I found a bug report...
« Last Edit: April 07, 2012, 08:30:22 pm by Frederick »
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Blocked by missing CocoaAll
« Reply #12 on: April 07, 2012, 10:53:53 pm »
Thanks jwdietrich and Phil!

I seem to be up and running on both OS X Intel and Windows 32 now. I'm a little slow, but eventually got everything working.

I had to figure out svn merge to roll back Lazarus and get my ToolButtons working again on Carbon, that is a bit painful.

Anyway, thanks again, and many thanks to the Free Pascal/ Lazarus team!

Cheers,
Frederick
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

 

TinyPortal © 2005-2018