Recent

Author Topic: The installation failed  (Read 20176 times)

idc65

  • Jr. Member
  • **
  • Posts: 50
Re: The installation failed
« Reply #15 on: July 08, 2013, 04:08:17 pm »
Hi,

If I restart mac I can launch Lazarus, if i then exit lazarus and try to re-launch lazarus i then get

You can’t open the application “lazarus” because it is not supported on this type of Mac.

still noting in logs
« Last Edit: July 08, 2013, 04:24:01 pm by idc65 »

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1071
Re: The installation failed
« Reply #16 on: July 08, 2013, 04:26:02 pm »
This is making less and less sense.

Try launching Lazarus from a terminal window with the following command, maybe then you'll see the output I was hoping to get from the log:

Code: [Select]
/Applications/lazarus.app/Contents/MacOS/lazarus

idc65

  • Jr. Member
  • **
  • Posts: 50
Re: The installation failed
« Reply #17 on: July 08, 2013, 04:35:35 pm »
Hi

finally some info to post..

/Applications/lazarus.app/Contents/MacOS/lazarus
CarbonFontIDToFontName Error: ATSUFindFontName Length failed with result -8905
CarbonFontIDToFontName Error: ATSUFindFontName Length failed with result -8905
CarbonFontIDToFontName Error: ATSUFindFontName Length failed with result -8905
CarbonFontIDToFontName Error: ATSUFindFontName Length failed with result -8905
CarbonFontIDToFontName Error: ATSUFindFontName Length failed with result -8905
CarbonFontIDToFontName Error: ATSUFindFontName Length failed with result -8905
CarbonFontIDToFontName Error: ATSUFindFontName Length failed with result -8905
CarbonFontIDToFontName Error: ATSUFindFontName Length failed with result -8905
CarbonFontIDToFontName Error: ATSUFindFontName Length failed with result -8905
CarbonFontIDToFontName Error: ATSUFindFontName Length failed with result -8905
TMainIDE.ParseCmdLineOptions:
  PrimaryConfigPath="/Users/ian/.lazarus"
  SecondaryConfigPath="/etc/lazarus"
NOTE: codetools config file not found - using defaults
NOTE: help options config file not found - using defaults
TCarbonTabsControl.SetFocus Error: SetKeyboardFocus  failed with result -30585
AskIfLoadLastFailingProject START
TCarbonBitBtn.SetFocus Error: SetKeyboardFocus  failed with result -30585
TCarbonBitBtn.SetFocus Error: SetKeyboardFocus  failed with result -30585
TCarbonBitBtn.SetFocus Error: SetKeyboardFocus  failed with result -30585
AskIfLoadLastFailingProject END False
TMainIDE.DoNewProject A
TCarbonTabsControl.SetFocus Error: SetKeyboardFocus  failed with result -30585
TCarbonTabsControl.SetFocus Error: SetKeyboardFocus  failed with result -30585


Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1071
Re: The installation failed
« Reply #18 on: July 08, 2013, 04:47:22 pm »
Just to make sure: after you get that output, you still get the error, right?

Those warnings are all benign and definitely unrelated to the error you are getting. It looks more like Lazarus is starting another program that is triggering that error. If you can find the log file containing the output you just pasted for the times you started Lazarus from the Finder (under 10.5/10.6, it's /var/log/system.log, but I'm not sure whether it's still the case in 10.8; and in any case, it should be accessible from the Console application), it will probably also contain the information regarding the program that cannot be started and information about the reason why this is the case.

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: The installation failed
« Reply #19 on: July 08, 2013, 06:04:37 pm »
What is the advantage of using Fink?

For more than 5 years I use the Mac installers that are hosted at SoureForge (http://sourceforge.net/projects/lazarus/files/Lazarus%20Mac%20OS%20X%20i386/ and http://sourceforge.net/projects/lazarus/files/Lazarus%20Mac%20OS%20X%20powerpc/, respectively) without any problem.

I don't know why I should make simple things complex by using Fink.
In most cases of usage, you are right and i admit that the package descriptions for 10.7/10.8 are still buggy. But fink has a couple of advantages, some of which might be irrelevant for you.

1) fink takes care of dependencies. Quite a number of users forget to install fpcsrcs. (Obviously no problem for you and many others)
2) fink installation can be done through the commandline
3) fink offers easy removal and cleanup
4) fink offers Lazarus with carbon as well as gtk2 GUI and switching from one to the other is super easy. (Qt has not been asked for, and cocoa seems not to be ready)
5) fink offers powerpc-carbon (< 10.7), win32 and wince lcls for cross-builds
6) the fink packages for FreePascal include all kinds of additional crosscompilers, including the corresponding binutils. It would be easy to also have package descriptions for crosscompiler variants (think of arm?). In cases, where they conflict, it would be quite easy to switch from one to another. I haven't done it yet, because i did not need it and no one asked for it.
7) if you already use fink for other software packages, like C libraries, using fink is definitely not making it more complex, but serves as an easy, one-point installation shop. UltraStar Deluxe may serve as an example. On the top level, it depends on about 10 C libraries, which expands to about 40 packages. Downloading and installing all these libraries individually is a pain and error prone. And if you install some other software, it might easily replace some libs in /usr/local causing all kind of wiered problems. Adding Freepascal or lazarus as a dependency to your package is a comfortable way to build software.

In summary, I made the experience that keeping /usr/local clean and working becomes a pain the more packages you use and felt the pressing need to use some package management software. It is the same philosophy when using deb and rpm packages on other unixes. Finally, I went for fink, which does this job.

I hope this helps, why i think it is worth to have Freepascal and also Lazarus available though fink.

Mischi
« Last Edit: July 08, 2013, 06:12:02 pm by kamischi »
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

idc65

  • Jr. Member
  • **
  • Posts: 50
Re: The installation failed
« Reply #20 on: July 09, 2013, 05:54:20 pm »
Hi

Sorry for delay in posting, decided to do fresh install of 10.8 and try install via fink just incase something was messed up on mac.

system has xcode 4.6, sdk 10.6 and sdk 10.7.

install lazarus-gtk2

unfortunately i am getting same error

Compiling treefilteredit.pas
treefilteredit.pas(28,48) Error: Illegal expression
treefilteredit.pas(28,25) Error: Error in type definition
treefilteredit.pas(28,25) Fatal: Syntax error, ">" expected but "CLASS" found
Fatal: Compilation aborted
make[2]: *** [lazcontrols.ppu] Error 1
make[1]: *** [base] Error 2
make: *** [basecomponents] Error 2
### execution of /tmp/fink.ElNgz failed, exit code 2
### execution of /tmp/fink.jgx7O failed, exit code 2

Have I forgot something silly?
Is lazarus going to install on 10.8?

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: The installation failed
« Reply #21 on: July 10, 2013, 12:22:01 am »
Sorry for inconvenience, but i do not have 10.8. So i could not really test my packages. The problem is not really obivous to me. If you want to help me to fix it, you could make a copy of the file lazarus.info and as a first try remove the lines in the gtk2 version, where the carbon libs are also build.

MiSchi
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

idc65

  • Jr. Member
  • **
  • Posts: 50
Re: The installation failed
« Reply #22 on: July 10, 2013, 08:38:24 am »
Hi

I modified the lazarus.info file so the check looks like this

# ** Start compiling lazarus

  AllUnits="registration lazutils codetools lcl ideintf basecomponents bigidecomponents"
  if   [ "%type_raw[uitype]" == "-aqua" ]; then
    make $AllUnits all LCL_PLATFORM=carbon       OPT="$debug_options" $carbon_arch
    make lhelp         LCL_PLATFORM=carbon LHELP_OPT="$debug_options" $carbon_arch
  elif [ "%type_raw[uitype]" == "-gtk2" ]; then
    make $AllUnits all LCL_PLATFORM=gtk2       OPT="$debug_options -dHasX -Fl%p/lib/pango-ft219/lib/ -k-framework -kApplicationServices"
    make lhelp         LCL_PLATFORM=gtk2 LHELP_OPT="$debug_options -dHasX -Fl%p/lib/pango-ft219/lib/ -k-framework -kApplicationServices"

   
  fi


I am getting the same error as above still.

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: The installation failed
« Reply #23 on: July 10, 2013, 11:16:54 am »
Oh well. 2 things come to my mind.

Can you check the version of the compiler, which is actually used. There should be lines like:

Free Pascal Compiler version 2.6.2 ...

and below the compiler command

/sw/bin/ppcx64 .....

Maybe there is still another version around, which is taken.
Can you post the last compiler command before the error shows up?

The other try is to reduce what's build further down to

make all LCL_PLATFORM=gtk2 OPT="$debug_options -dHasX -Fl%p/lib/pango-ft219/lib/ -k-framework -kApplicationServices"

i.e. remove $AllUnits and delete the creation of lhelp.

MiSchi
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

idc65

  • Jr. Member
  • **
  • Posts: 50
Re: The installation failed
« Reply #24 on: July 10, 2013, 12:12:44 pm »
Free Pascal Compiler version 2.6.2 [2013/07/09] for x86_64
Copyright (c) 1993-2012 by Florian Klaempfl and others
Target OS: Darwin for x86_64
Compiling lazcontrols.pas
Compiling dividerbevel.pas
Assembling (pipe) lib/x86_64-darwin/gtk2/dividerbevel.s
Compiling extendednotebook.pas
Assembling (pipe) lib/x86_64-darwin/gtk2/extendednotebook.s
Compiling listfilteredit.pas
Assembling (pipe) lib/x86_64-darwin/gtk2/listfilteredit.s
Compiling treefilteredit.pas
treefilteredit.pas(28,48) Error: Illegal expression
treefilteredit.pas(28,25) Error: Error in type definition
treefilteredit.pas(28,25) Fatal: Syntax error, ">" expected but "CLASS" found
Fatal: Compilation aborted


Trying the mod now




kamischi

  • Full Member
  • ***
  • Posts: 177
Re: The installation failed
« Reply #25 on: July 10, 2013, 12:22:22 pm »
This is really weird. It runs through here with fpc 2.6.2. Although this is on 10.6.8, I can't see, why the compilation fails. Can you go up in the log just a few lines? Mine reads:

/sw/bin/ppcx64 -Px86_64 -MObjFPC -Scghi -O1 -g -gl -vewnhi -l -dLCL -dLCLnogui -Fu../../lcl/units/x86_64-darwin/nogui -Fu../../lcl/units/x86_64-darwin -Fu../lazutils/lib/x86_64-darwin -Fu../../packager/units/x86_64-darwin -Fu. -FE. -FUlib/x86_64-darwin/nogui -gl -gw -dHasX -Fl/sw/lib/pango-ft219/lib/ -k-framework -kApplicationServices -dx86_64  lazcontrols.pas
Hint: Start of reading config file /sw/etc/fpc.cfg
Hint: End of reading config file /sw/etc/fpc.cfg

There must be a difference either in the switches or the config file.

MiSchi
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

idc65

  • Jr. Member
  • **
  • Posts: 50
Re: The installation failed
« Reply #26 on: July 10, 2013, 01:24:22 pm »
Hi

Attached fink log

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: The installation failed
« Reply #27 on: July 10, 2013, 07:20:24 pm »
One possible problem is the option: "-Fu/usr/local/lib/fpc/2.6.2/units/x86_64- darwin/rtl"

This might cause problems and i wonder where  this comes from. Is this option in /sw/etc/fpc.cfg? You could reomve the entry in /sw/etc/fpc.cfg and try to rebuild lazarus-gtk2.

You could also remove the contents in that directory and try to rebuild lazarus-gtk2.

MiSchi
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

idc65

  • Jr. Member
  • **
  • Posts: 50
Re: The installation failed
« Reply #28 on: July 10, 2013, 08:24:30 pm »
Hi

thanks for your continued help.

when i search in /sw/etc/fpc.cfg for x86_64, the only entries are here.. line 175-178

#ifdef cpux86_64
-Fl/usr/lib/gcc/i686-apple-darwin12/4.2.1/x86_64
-Fl/usr/lib/gcc/i686-apple-darwin12/4.0.1/x86_64
#endif

So not sure where to go from here..

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: The installation failed
« Reply #29 on: July 10, 2013, 09:57:22 pm »
That is ok. are there other fpc.cfg files? maybe in /etc or the one in your home directory  ~/.fp/fp.cfg

Does cleaning that directory help?
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

 

TinyPortal © 2005-2018