Sign in Join

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

Mailing lists / lazarus / 2015-02

Cocoa testers needed

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Felipe Monteiro de Carvalho

Hello,

It would be good if people start testing LCL-Cocoa and report bugs.

thanks,

Felipe Monteiro de Carvalho

Reply by email

Schindler Karl-Michael
Show quoted text 16 lines
Message: 1 Date: Sat, 28 Feb 2015 07:51:00 -0300 From: Felipe Monteiro de Carvalho Subject: [Lazarus] Cocoa testers needed To: Lazarus mailing list Message-ID: Content-Type: text/plain; charset=UTF-8 Hello, It would be good if people start testing LCL-Cocoa and report bugs. thanks, -- Felipe Monteiro de Carvalho

RC 1.4 and fixes_1_4:

As 32bit It builds with ?make all LCL_PLATFORM=cocoa PP=ppc386 CPU_TARGET=i386 CPU_SOURCE=i386?

But with 64bit building seems broken:

make all LCL_PLATFORM=cocoa
?
Compiling lazarus.pp
Assembling (pipe) ../units/x86_64-darwin/cocoa/lazarus.s Compiling resource ../units/x86_64-darwin/cocoa/lazarus.or Linking ../lazarus
Undefined symbols for architecture x86_64:
"_GetCurrentEventButtonState", referenced from:
_COCOAINT_TCOCOAWIDGETSET_$__GETKEYSTATE$LONGINT$$SMALLINT in cocoaint.o "_GetThemeMetric", referenced from:
_COCOAGDIOBJECTS_TCOCOACONTEXT_$__DRAWFOCUSRECT$TRECT in cocoagdiobjects.o _COCOAPROC_GETHITHEMEMETRIC$LONGWORD$LONGINT$$LONGINT in cocoaproc.o "_HIThemeDrawFocusRect", referenced from:
_COCOAGDIOBJECTS_TCOCOACONTEXT_$__DRAWFOCUSRECT$TRECT in cocoagdiobjects.o "_HIThemeDrawGroupBox", referenced from:
_COCOAGDIOBJECTS_TCOCOACONTEXT_$__FRAME3D$TRECT$LONGINT$TGRAPHICSBEVELCUT in cocoagdiobjects.o ld: symbol(s) not found for architecture x86_64

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150228/6ae8d743/attachment.bin>

Reply by email

Felipe Monteiro de Carvalho
to Schindler Karl-Michael
Schindler Karl-Michael wrote
RC 1.4 and fixes_1_4:

Please try SVN trunc.

In general, I wanted people to test SVN Lazarus... Cocoa is under development, so it should be used from SVN trunc not from the release branch.

Felipe Monteiro de Carvalho

Reply by email

Schindler Karl-Michael
Show quoted text 14 lines
Date: Sat, 28 Feb 2015 07:51:00 -0300 From: Felipe Monteiro de Carvalho Subject: [Lazarus] Cocoa testers needed To: Lazarus mailing list Message-ID: Content-Type: text/plain; charset=UTF-8 Hello, It would be good if people start testing LCL-Cocoa and report bugs. thanks, -- Felipe Monteiro de Carvalho

svn trunk is the same situation as 1.4RC1

I looked further into 32bit cocoa from svn trunk and found these issues:

1) setup dialog for fpcsrc.

I have my fpcsrc at a different place (namely in /sw from fink). The expected dialog comes up, but searching cannot be stopped. The Halt button is not responsive and i cannot enter text in the line of the path. The fix at the moment was to build the carbon version. With this the dialog is ok and i can set the path. After switching back to cocoa, the IDE can be startet. In addition, I tried pass the correct path to lazarus through the sources, namely tools/install/macosx/environmentoptions.xml and ide/include/unix/lazbaseconf.inc. It seemed to work for carbon, but not for cocoa.

2) Standard Controls.

In the toolbar, the icons of the standard controls are missing. The other controls like Additional, Common Controls, ? are displayed.

3) Compiling gets stuck
After adding a TStaticText and starting compile, lazarus gets stuck compiling and can only be stopped through external task management. In the message window the initial not about compiling FCL can be obtained, but that is where it hangs.

Michael.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150228/f72713ff/attachment.bin>

Reply by email

C Western
to Felipe Monteiro de Carvalho: It would be good if people start testing LCL-Cocoa and report bugs. Felipe Monteiro de…
Felipe Monteiro de Carvalho wrote 6 lines
Hello, It would be good if people start testing LCL-Cocoa and report bugs. thanks,

I tried lazarus with cocoa; it started OK on a "default" app, but when I loaded one of my own apps I had the following crash shown in the attached file.

Colin
-------------- next part --------------
2015-03-01 18:00:22.762 lazarus[30461:74710] Unable to simultaneously satisfy constraints: (
"<NSAutoresizingMaskLayoutConstraint:0xacccef0 h=-&- v=-&- V:|-(27)-[NSView:0xae8c390] (Names: '|':TCocoaTabControl:0xae70460 )>", "<NSAutoresizingMaskLayoutConstraint:0xacccf30 h=-&- v=-&- V:[NSView:0xae8c390]-(3)-| (Names: '|':TCocoaTabControl:0xae70460 )>", "<NSAutoresizingMaskLayoutConstraint:0xacd3d10 h=-&- v=-&- V:|-(0)-[TCocoaTabPageView:0xae947b0] (Names: '|':NSView:0xae8c390 )>", "<NSAutoresizingMaskLayoutConstraint:0xacd6470 h=--& v=&-- V:[TCocoaTabControl:0xae70460(47)]>", "<NSAutoresizingMaskLayoutConstraint:0xacd3cd0 h=-&- v=-&- V:[TCocoaTabPageView:0xae947b0]-(91)-| (Names: '|':NSView:0xae8c390 )>" )

Will attempt to recover by breaking constraint
<NSAutoresizingMaskLayoutConstraint:0xacd3d10 h=-&- v=-&- V:|-(0)-[TCocoaTabPageView:0xae947b0] (Names: '|':NSView:0xae8c390 )>

Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens. And/or, break on objc_exception_throw to catch this in the debugger. TApplication.HandleException [TCustomIcon.LoadFromResourceName] The resource "cur_11" was not found Stack trace:
$00163528 TCUSTOMICON__LOADFROMRESOURCENAME, line 674 of lcl/graphics.pp $0006554E TSCREEN__GETCURSORS, line 600 of lcl/forms.pp $00065F90 TSCREEN__SETCURSOR, line 904 of lcl/forms.pp $004A4327 TSOURCEEDITORMANAGERBASE__INCUPDATELOCKINTERNAL, line 9072 of ide/sourceeditor.pp $004A4428 TSOURCEEDITORMANAGERBASE__INCUPDATELOCK, line 9097 of ide/sourceeditor.pp $005F1893 TLAZSOURCEFILEMANAGER__CLOSEPROJECT, line 3742 of ide/sourcefilemanager.pas $000921DB TMAINIDE__DOCLOSEPROJECT, line 6204 of ide/main.pp $00092913 TMAINIDE__DOOPENPROJECTFILE, line 6311 of ide/main.pp $005F1AA6 TLAZSOURCEFILEMANAGER__OPENPROJECT, line 3778 of ide/sourcefilemanager.pas $0008A8FD TMAINIDE__MNUOPENPROJECTCLICKED, line 4116 of ide/main.pp $00383805 TIDEMENUITEM__MENUITEMCLICK, line 575 of components/ideintf/menuintf.pas $00386855 TIDEMENUCOMMAND__MENUITEMCLICK, line 1650 of components/ideintf/menuintf.pas $002428E5 TMENUITEM__CLICK, line 84 of lcl/menus.pp $0024300A TMENUITEM__DOCLICKED, line 282 of lcl/menus.pp $00024624 PASCALMAIN, line 142 of ./include/control.inc $002841BE TLCLMENUITEMCALLBACK__ITEMSELECTED, line 1376 of lcl/interfaces/cocoa/cocoawscommon.pas $001C12B8 TCOCOAMENUITEM__LCLITEMSELECTED, line 3340 of lcl/interfaces/cocoa/cocoaprivate.pp

Reply by email