Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-03

Mac OS X : Trying to build Lazarus from source...

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dominique Louis

When trying to build Lazarus from source on Mac OS X I'm running into some problems...

When I do try
sudo make LCL_PLATFORM=carbon OPT="-kframework -kCarbon" CPU_TARGET=i386

I get the following error message...
Fatal: Syntax error, "IMPLEMENTATION" expected but "shl" found on the file ccodeparsetool.pas(62,1)

Doe anyone know how I can fix this error and proceed?

I'm using FPC version 2.3.1, if that makes any difference and the lazarus code is straight from SVN.

Thanks,

Dominique.

Reply by email

Vincent Snijders
to Dominique Louis
Dominique Louis wrote 14 lines
When trying to build Lazarus from source on Mac OS X I'm running into some problems... When I do try sudo make LCL_PLATFORM=carbon OPT="-kframework -kCarbon" CPU_TARGET=i386 I get the following error message... Fatal: Syntax error, "IMPLEMENTATION" expected but "shl" found on the file ccodeparsetool.pas(62,1) Doe anyone know how I can fix this error and proceed? I'm using FPC version 2.3.1, if that makes any difference and the lazarus code is straight from SVN.

straight from SVN, but with local changes and conflicts. Inspect the file and remove the conflict (or do svn revert ccodeparsetool.pas).

Vincent

Reply by email

Mattias Gaertner
to Dominique Louis: When trying to build Lazarus from source on Mac OS X I'm running into some problems...…
Show quoted text 10 lines
When trying to build Lazarus from source on Mac OS X I'm running into some problems... When I do try sudo make LCL_PLATFORM=carbon OPT="-kframework -kCarbon" CPU_TARGET=i386 I get the following error message... Fatal: Syntax error, "IMPLEMENTATION" expected but "shl" found on the file ccodeparsetool.pas(62,1)

Strange: There is no 'shl' nor 'implementation' in this file at this place.
Did you 'make clean'?

Doe anyone know how I can fix this error and proceed? I'm using FPC version 2.3.1, if that makes any difference and the lazarus code is straight from SVN.

Can you try with a fpc 2.1.1?

Mattias

Reply by email

Dominique Louis
to Vincent Snijders: straight from SVN, but with local changes and conflicts. Inspect the file and remove the…

OK I did another svn update on lazarus and tried again and this time it compiles lazarus. But when I try to compile my project it now says... "Installation failed
The package "Printer4Lazarus 0.5 failed to compile. Remove it from the installation list?"

The line in error is 86,15 of carbonprndialogs.inc with a compilation error of
"Can't take the address of constant expressions"

Any help would be great.

Dominique.

Vincent Snijders wrote 21 lines
Dominique Louis schreef: > When trying to build Lazarus from source on Mac OS X I'm running into > some problems... > > When I do try > sudo make LCL_PLATFORM=carbon OPT="-kframework -kCarbon" CPU_TARGET=i386 > > I get the following error message... > Fatal: Syntax error, "IMPLEMENTATION" expected but "shl" found > on the file ccodeparsetool.pas(62,1) > > Doe anyone know how I can fix this error and proceed? > > I'm using FPC version 2.3.1, if that makes any difference and the > lazarus code is straight from SVN. straight from SVN, but with local changes and conflicts. Inspect the file and remove the conflict (or do svn revert ccodeparsetool.pas). Vincent

Reply by email

Dominique Louis
to Dominique Louis: When trying to build Lazarus from source on Mac OS X I'm running into some problems...…

Could someone please apply the attached patch to carbonprndialogs.inc in SVN.

This is what was stopping me from compiling from both the IDE and via the command line.

I now have a linking issue via the command line which does not occur via the IDE :(. Something to do with undefined symbols for _CGLChoosePixelformat, _CGLClearDrawable and a few other calls which all look like OpenGL calls to me, but I could be wrong.

I'll investigate further before posting more about it here.

PS what is the correct procedure for submitting patches?

Dominique

Dominique Louis wrote 14 lines
When trying to build Lazarus from source on Mac OS X I'm running into some problems... When I do try sudo make LCL_PLATFORM=carbon OPT="-kframework -kCarbon" CPU_TARGET=i386 I get the following error message... Fatal: Syntax error, "IMPLEMENTATION" expected but "shl" found on the file ccodeparsetool.pas(62,1) Doe anyone know how I can fix this error and proceed? I'm using FPC version 2.3.1, if that makes any difference and the lazarus code is straight from SVN.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed... Name: carbonprndialogs.inc.patch
Url: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080318/78f35be4/attachment.pl

Reply by email