Forum > Cocoa
Cocoa build hangs when choosing FPC sources
Clemens:
Hi!
Thanks for the great work you are doing with Free Pascal and Lazarus.
I just used FPC 3.0+fixes to build Lazarus-trunk for Cocoa, which worked nicely. I used this command:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---make -j 1 bigide INSTALL_PREFIX=~/src/fpc/lazarus-trunk-cocoa LCL_PLATFORM=cocoa
When I open startlazarus.app or lazarus.app, there is a problem, however. Lazarus asks for the FPC sources on startup, but it hangs as shown in the screenshot. None of the buttons or fields works, and I cannot quit it either.
I would like to use the 64bit version, because I want to link my program to a 64bit library. I am very happy with Carbon Lazarus so far!
Cheers,
Clemens
skalogryz:
You can still Carbon Lazarus to building Cocoa-64 bit application - all you need is to switch Widgetset type in your project to "Cocoa", as well as CPU target to 64-bit.
There might be a problem with Cocoa LCL at the moment, that's causing Cocoa-IDE to hang.
Clemens:
Thanks for the quick reply!
The good news is that building with
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---lazbuild --cpu=x86_64 --widgetset=cocoa Reconstructor.lpiworks.
The bad news is that setting the compiler options in Lazarus (32bit) does not work according to the instructions in the wiki.
--- Quote ---a.) Choose the Project/ProjectOptions menu item
b.) In the CompilerOptions/CompilerCommands set the Compiler Command field to "/usr/local/bin/ppcx64"
c.) For CompilerOptions/ConfigAndTarget set the "Target CPU family" to "x86_64"
d.) For CompilerOptions/AdditionsAndOverrides store the "LCLWidgetType := cocoa" in the LPI
--- End quote ---
The reason is that in the form for "Compiler Commands", the file chooser doesn't work (although I can enter text); the form "Additions and Overrides" doesn't work at all.
skalogryz:
Hmm... instructions seems to be outdated.
Specifically for the step b) you shouldn't need to specify "/usr/local/bin/ppcx64", instead you should be using "/usr/local/bin/fpc" at all time.
For the rest it looks good.
Since, building Cocoa-64 apps works for my Carbon-32 Lazarus, it should work for you either :)
Clemens:
Ok, I see regarding (b).
The show stopper for me is (d). This form doesn't work for me at all (1.6 built for Carbon).
Alternatively, I could put the right lines into the lpi file, I guess, but what should I put there?
Navigation
[0] Message Index
[#] Next page