* * *

Author Topic: Lazarus Release Candidate 1 of 1.2  (Read 81649 times)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 4170
    • wiki
Re: Lazarus Release Candidate 1 of 1.2
« Reply #30 on: November 11, 2013, 04:43:01 pm »
P.S.: looks like it also crashes when I click "new unit" button on the toolbar

That shouldn't use any file dialog, so it should be reported (works fine on my 32 bit win)

Edson

  • Hero Member
  • *****
  • Posts: 663
Re: Lazarus Release Candidate 1 of 1.2
« Reply #31 on: November 11, 2013, 06:34:31 pm »
I've installed again as a secondary installation on spanish.
But now, every time I open a project, it shows me a Windows with the message: "Error: system.ppu no found. Verify your fpc.cfg.". Then run OK.

I don't know what It was bad on my instalation.
Lazarus 1.6 - FPC 3.0.0 - x86_64-win64 on  Windows 7

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 4170
    • wiki
Re: Lazarus Release Candidate 1 of 1.2
« Reply #32 on: November 11, 2013, 07:24:05 pm »
I've installed again as a secondary installation on spanish.
But now, every time I open a project, it shows me a Windows with the message: "Error: system.ppu no found. Verify your fpc.cfg.". Then run OK.

1)
Do you have a 32bit win or 64 bit win?

2)
Did you install the 32bit version of Lazarus? It seems form the error, that you did, but please confirm.
(And yes the 32bit IDE can be installed on both 32 and 64 bit win)

3)
During installation, you where ask for a path, to store config. What did you enter?

4)
In c:\Lazarus2 should be a file: lazarus.cfg. Open in a text editor, what does it contain?

5)
There should be a file
C:\lazarus2\fpc\2.6.2\bin\i386-win32\fpc.cfg

What does it contain? (please attach it to your next post)


Edson

  • Hero Member
  • *****
  • Posts: 663
Re: Lazarus Release Candidate 1 of 1.2
« Reply #33 on: November 12, 2013, 05:55:46 am »
1) 32 bits - Windows 7 Starter.

2) Yes, I used the 32 bits.

3) For config, I used c:\lazarus2

4) c:\lazarus2\lazarus.cfg contain:

Code: [Select]
--primary-config-path=C:\lazarus2
5) Attached fpc.cfg
Lazarus 1.6 - FPC 3.0.0 - x86_64-win64 on  Windows 7

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: Lazarus Release Candidate 1 of 1.2
« Reply #34 on: November 12, 2013, 01:13:42 pm »
I did some tests on Mac OS X 10.7.5.

1) make all crashes with:

Linking ../lazbuild
Undefined symbols for architecture x86_64:
  "_LSOpenCFURLRef", referenced from:
      _LCLINTF_OPENURL$ANSISTRING$$BOOLEAN in lclintf.o
ld: symbol(s) not found for architecture x86_64
An error occurred while linking
lazbuild.lpr(1629) Error: Error while linking

This is also a problem for other 64 bit darwin targets, like GTK2 or cocoa.

Adding OPT="-gl -gw -k-framework -kApplicationServices" resolves it. No idea, why this is not needed for 32 bit. Also, it still leads to this crash:

Compiling carbondbgconsts.pp
Assembling (pipe) ../../units/x86_64-darwin/carbon/carbondbgconsts.s
carbonproc.pp(518,33) Error: Identifier not found "ATSUFindFontFromName"
carbonproc.pp(541,30) Error: Identifier not found "ATSUFindFontName"
carbonproc.pp(548,30) Error: Identifier not found "ATSUFindFontName"
carbonproc.pp(569,34) Error: Identifier not found "FMGetFontFamilyFromName"
carbonproc.pp(676,25) Error: Identifier not found "HIViewChangeFeatures"
carbonproc.pp(679,27) Error: Identifier not found "HIViewSetVisible"
carbonproc.pp(680,25) Error: Identifier not found "HIViewSetFrame"
carbonproc.pp(703,19) Error: Identifier not found "GetControlBounds"
carbonproc.pp(713,17) Error: Identifier not found "SetControlData"
carbonproc.pp(738,57) Error: Identifier not found "GetControlEventTarget"
carbonproc.pp(1341,24) Error: Identifier not found "GetThemeFont"
carbonproc.pp(1341,63) Error: Identifier not found "GetApplicationScript"
carbonproc.pp(1343,28) Warning: Local variable "sz" does not seem to be initialized
carbonproc.pp(1403) Fatal: There were 12 errors compiling module, stopping
Fatal: Compilation aborted

The problem here is the clash of two defaults. Fpc defaults to ppcx64 and lazarus defaults to carbon-lcl, which is 32 bit only. Adding CPU_TARGET=i386 resolves this and the carbon version of Lazarus is built. I think that the default settings "make all" should be more fool proof.

2) make all LCL_PLATFORM=gtk2 with gtk2 from fink fails with:

Linking ../lazarus
ld: library not found for -lpango-1.0.0

fink has only libpango-1.0.dylib in its primary place and no libpango-1.0.0.dylib.  libpango-1.0.0.dylib is present, but somewhat "hidden" by 2 symlinks. Passing the explicit path by OPT="-Fl/sw/lib/pango-ft219/lib/" resolves it. Couldn't lazarus use pkgconfig or simply use libpango-1.0.dylib?

make all LCL_PLATFORM=cocoa fails with:

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

I think the problem is that for example GetThemeMetric is part of univint, which is 32bit, IIRC.

3) make all LCL_PLATFORM=cocoa CPU_TARGET=i386 runs through. The resulting lazarus.app shows the splash screen for a moment, but then crashes/hangs.

4) Summary
With the fixes I can do the following fink packages: The 32bit carbon and the 64bit GTK2 version of lazarus; the (cross-)compilation versions of the lcl for cocoa(64bit), win32 and wince (arm and i386). fpgui and customdrawn lcl failed to build and i did not further investigate them. Also, I got stuck with my first try of a Qt version, because the Qt4pas unit failed to build.

So, currently the situation is that a 32bit carbon based Lazarus and a 64bit GTK2 based Lazarus and some cross compiled lcls can be made available through fink. I would be nice if the following 3 things could be fixed.

a) clash of defaults for fps (ppcx64) and lazarus (carbon)
b) usage of -framework ApplicationServices
c) using pkgconfig for libpango

Sorry for the long post.

MiSchi.
« Last Edit: November 12, 2013, 01:24:06 pm by kamischi »
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 4170
    • wiki
Re: Lazarus Release Candidate 1 of 1.2
« Reply #35 on: November 12, 2013, 01:19:14 pm »
I believe I was able to reproduce it:

The problem happens when you double click an project.lpi file?

If you start the lazarus by double-clicking lazarus.exe, or choosing it from startmenu; and then use open to choose a project, then the problem does not happen?

At lest that is what happens to me.

I will look into it.
In the meantime, please start the ide directly, and then open the project.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 4170
    • wiki
Re: Lazarus Release Candidate 1 of 1.2
« Reply #36 on: November 12, 2013, 02:27:20 pm »
@kamischi

On Mac currently all GUI development is limited to 32 bit

This is what I got from one my colleagues:

Quote
Carbon is 32-bit only, so any attempt to compile it for 64-bit is expected to fail.
Cocoa, in its implementation (at least originally) were using a lot of Carbon functions. In this particular sample - theme drawing.
That can be definitely removed (as the API is or intent to be deprecated by Apple), however the widgetset itself will have less functionality.

Better ask those on the mail list.

bigeno

  • Full Member
  • ***
  • Posts: 169
Re: Lazarus Release Candidate 1 of 1.2
« Reply #37 on: November 12, 2013, 02:32:32 pm »
OT but when I install sqlite3laz.lpk from sqlite component Lararus will not start. Ther is error about sqlite3.dll
So until you get sqlite3.dll you not run Lazarus. Maybe sqlite3.dll should be added to installer ? or Lazarus should after all run (to be able to uninstall sqlite package).

taazz

  • Hero Member
  • *****
  • Posts: 3695
Re: Lazarus Release Candidate 1 of 1.2
« Reply #38 on: November 12, 2013, 02:47:03 pm »
OT but when I install sqlite3laz.lpk from sqlite component Lararus will not start. Ther is error about sqlite3.dll

Correct there is no reason to install sqlite with out the dll to give you access to the databases.

So until you get sqlite3.dll you not run Lazarus. Maybe sqlite3.dll should be added to installer ? or Lazarus should after all run (to be able to uninstall sqlite package).
No no external dlls should be installed with lazarus this opens the expectation door that the library is somehow maintained-supported by the team.
As always after a failed or successful compilation there is a backup lazarus exe as it was before the latest compilation, use that.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

bigeno

  • Full Member
  • ***
  • Posts: 169
Re: Lazarus Release Candidate 1 of 1.2
« Reply #39 on: November 12, 2013, 02:56:37 pm »
There is no problem for me, I know how to work around this problem. But many users can think that installing sqlite, sqlite.dll will be included somewhere but instead of lazarus can't start.

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: Lazarus Release Candidate 1 of 1.2
« Reply #40 on: November 12, 2013, 03:03:31 pm »
@kamischi

On Mac currently all GUI development is limited to 32 bit

This is what I got from one my colleagues:

Quote
Carbon is 32-bit only, so any attempt to compile it for 64-bit is expected to fail.
Cocoa, in its implementation (at least originally) were using a lot of Carbon functions. In this particular sample - theme drawing.
That can be definitely removed (as the API is or intent to be deprecated by Apple), however the widgetset itself will have less functionality.

Just for the records: With the tweaks I mentioned above, the fink based 64bit GTK2 version is working.

MiSchi
« Last Edit: November 12, 2013, 05:24:49 pm by kamischi »
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 4170
    • wiki
Re: Lazarus Release Candidate 1 of 1.2
« Reply #41 on: November 12, 2013, 03:11:22 pm »
about sqlite: best would be if the dll was not hard-linked, but loaded dynamical  at runtime.

Then the IDE (and any app) would still run, but could give an error if trying to use sqlite.

Not sure if the relevant developers will read this at the forum. Better to be discussed on the mail list.
Or add a feature request on mantis, or a patch ;)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 4170
    • wiki
Re: Lazarus Release Candidate 1 of 1.2
« Reply #42 on: November 12, 2013, 10:48:43 pm »
I've installed again as a secondary installation on spanish.
But now, every time I open a project, it shows me a Windows with the message: "Error: system.ppu no found. Verify your fpc.cfg.". Then run OK.

Looks like we get this fixed in the next RC2

In the meantime just do not use the install dir (C:\lazarus2) as config path too (I would not recommend that at all, because files could conflict in future...)

You can use a path inside the install dir e.g. C:\lazarus2\conf


You can change your existing secondary install.
- Close the IDE
- Open C:\lazarus2\lazarus.cfg in a texteditor
- change the folder to C:\lazarus2\conf  (NO spaces at the end, NO quotes)
Code: [Select]
--primary-config-path=C:\lazarus2\conf- Save it done.

The IDE should to the rest on next start up . For the first startup, start the IDE direct, instead of clicking a project. It may display the setup dialog once that first time you start it (but I do not think it will)

After that it should be fine.

Edson

  • Hero Member
  • *****
  • Posts: 663
Re: Lazarus Release Candidate 1 of 1.2
« Reply #43 on: November 13, 2013, 02:45:30 am »
Thanks Martin, for give one solution.

Currently, I have erased the instalaltion but I will try to install again later.
Lazarus 1.6 - FPC 3.0.0 - x86_64-win64 on  Windows 7

LA.Center

  • Full Member
  • ***
  • Posts: 244
    • LA.Center
Re: Lazarus Release Candidate 1 of 1.2
« Reply #44 on: November 16, 2013, 09:11:32 pm »
I have tested it under Mac OSX 10.8.2 and it freezes on start. I see the splash and then it enters the freeze, I am trying to get a dump, but was not successful so far.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus