Recent

Author Topic: Carbon Lazarus: getting Indy to work ...?  (Read 10903 times)

Hansaplast

  • Hero Member
  • *****
  • Posts: 765
  • Tweaking4All.com
    • Tweaking4All
Carbon Lazarus: getting Indy to work ...?
« on: April 27, 2008, 07:11:03 pm »
I managed to get Lazarus to run successfully (Carbon/Leopard) and it does create applications (incl. bundles).

Now I'm trying to get Indy to work (10.2.0.3), which compiles great, but the rebuild of Lazarus fails (error while linking).

Code: [Select]
ld: warning ignoring -dylib_file option, file not found: /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/ligGL.dylib
ld: cycle in dylib re-exports with /usr/X11R6/lib//libGL.dylib
Error: Error while linking


When building the IDE, I know we need to add the proper -k parameters. For projects we need to apply the dylib "fix".

For projects:
Code: [Select]
-dylib_file '/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'

For the IDE build:
Code: [Select]
-k'-framework' -k'carbon' -k'-framework' -k'OpenGL'

Neither (including leavng it out all together) works ...

Does anybody have a suggestion? :)

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Carbon Lazarus: getting Indy to work ...?
« Reply #1 on: April 27, 2008, 08:02:14 pm »
Quote from: "Hansaplast"
I managed to get Lazarus to run successfully (Carbon/Leopard) and it does create applications (incl. bundles).

Now I'm trying to get Indy to work (10.2.0.3), which compiles great, but the rebuild of Lazarus fails (error while linking).

Code: [Select]
ld: warning ignoring -dylib_file option, file not found: /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/ligGL.dylib
ld: cycle in dylib re-exports with /usr/X11R6/lib//libGL.dylib
Error: Error while linking


When building the IDE, I know we need to add the proper -k parameters. For projects we need to apply the dylib "fix".

For projects:
Code: [Select]
-dylib_file '/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'

For the IDE build:
Code: [Select]
-k'-framework' -k'carbon' -k'-framework' -k'OpenGL'

Neither (including leavng it out all together) works ...

Does anybody have a suggestion? :)


You probably need the fix for compiling the IDE too. It's also a project.

What version of Laz do you have? I see that this fix has been added to compileroptions.pp circa April 9.

Thanks.

-Phil

Hansaplast

  • Hero Member
  • *****
  • Posts: 765
  • Tweaking4All.com
    • Tweaking4All
RE: Re: Carbon Lazarus: getting Indy to work ...?
« Reply #2 on: April 27, 2008, 08:15:01 pm »
Thanks Phil -- I'll download a new version ...

(currently using version 0.9.25 beta, SVN: 14361, Date: 2008-03-02 -- so an update is probably a good plan :) )

Hansaplast

  • Hero Member
  • *****
  • Posts: 765
  • Tweaking4All.com
    • Tweaking4All
RE: Re: Carbon Lazarus: getting Indy to work ...?
« Reply #3 on: April 27, 2008, 10:40:28 pm »
Phil, that worked great ... :)

Now I have to read up on how to get the new components visible in the IDE (top bar) ;)

Hansaplast

  • Hero Member
  • *****
  • Posts: 765
  • Tweaking4All.com
    • Tweaking4All
RE: Re: Carbon Lazarus: getting Indy to work ...?
« Reply #4 on: April 27, 2008, 10:46:16 pm »
In the "Installed Packages" (Package->Configure Installed Packages) it show Indy, but it does no show in the component bar ... did I miss something?
(same for TurboPoweriPro)

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: RE: Re: Carbon Lazarus: getting Indy to work ...?
« Reply #5 on: April 27, 2008, 10:57:39 pm »
Quote from: "Hansaplast"
In the "Installed Packages" (Package->Configure Installed Packages) it show Indy, but it does no show in the component bar ... did I miss something?
(same for TurboPoweriPro)


If there are too many to fit on the palette, there will be a little scroll arrow on the right side that you can click to scroll the palette.

Thanks.

-Phil

Hansaplast

  • Hero Member
  • *****
  • Posts: 765
  • Tweaking4All.com
    • Tweaking4All
RE: Re: RE: Re: Carbon Lazarus: getting Indy to work ...?
« Reply #6 on: April 27, 2008, 11:00:14 pm »
There is plenty of space left -- and there is no scroll arrow showing either ... :(

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: RE: Re: RE: Re: Carbon Lazarus: getting Indy to work ...
« Reply #7 on: April 27, 2008, 11:24:00 pm »
Quote from: "Hansaplast"
There is plenty of space left -- and there is no scroll arrow showing either ... :(


Yeah, that sounds like some kind of rebuild problem.

Can you still compile against Indy? I use Indy but never got the package to install so I just add the path to it to my project. I'm not using any design time parts of Indy, just as part of the Web Service Toolkit.

Thanks.

-Phil

Hansaplast

  • Hero Member
  • *****
  • Posts: 765
  • Tweaking4All.com
    • Tweaking4All
RE: Re: RE: Re: RE: Re: Carbon Lazarus: getting Indy to work
« Reply #8 on: April 28, 2008, 04:57:32 am »
I'll give that approach a try ... I'm running into some more issues (rebuild related probably - still have to some more searching ;) ).
I just imported a Delphi project I had but after converting it to an Lazarus project (incl. the DFM's) it now tells me that it doesn't know Forms or Interfaces.
So there must be more "scr*wed" in my setup than just this :(
Oh well ... keeps me off the street :)

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: RE: Re: RE: Re: RE: Re: Carbon Lazarus: getting Indy to
« Reply #9 on: April 28, 2008, 05:29:50 am »
Quote from: "Hansaplast"
I'll give that approach a try ... I'm running into some more issues (rebuild related probably - still have to some more searching ;) ).
I just imported a Delphi project I had but after converting it to an Lazarus project (incl. the DFM's) it now tells me that it doesn't know Forms or Interfaces.
So there must be more "scr*wed" in my setup than just this :(
Oh well ... keeps me off the street :)


Be sure your converted .dpr (or .lpr) starts with something like this in the uses clause:

{$IFDEF LCL}
  Interfaces,
{$ENDIF}

Thanks.

-Phil

Hansaplast

  • Hero Member
  • *****
  • Posts: 765
  • Tweaking4All.com
    • Tweaking4All
RE: Re: RE: Re: RE: Re: RE: Re: Carbon Lazarus: getting Indy
« Reply #10 on: April 28, 2008, 05:42:15 am »
Weel, teh conversion tool in the IDE didn't add that.
I did add it manually trying to see if it woul make a difference ... but no luck either.

I'm going to reinstall everything from scratch again ... and see what it does ;)

Thanks Phil for your input ... you da man ;)

 

TinyPortal © 2005-2018