Forum > Other OS
MorphOS and MorpOS Lazarus from Alb42
molly:
--- Quote from: saashapont on August 04, 2016, 02:03:49 pm ---I fix first message :)
....
And when i try to build lazarus i always have error...
--- End quote ---
Are you talking about the following message that you 'fixed' ? :
--- Quote from: saashapont on August 04, 2016, 09:54:08 am ---Free Pascal Compiler version 3.0.0 [2016/01/06] for i386
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: Win32 for i386
.......
(3104) Compiling lazfileutils.pas
(3104) Compiling lazutilsstrconsts.pas
(1010) Writing Resource String Table file: lazutilsstrconsts.rsj
/Volumes/MacHD2/Downloads/lazarus-lazarus-morphos/components/lazutils/lazfileutils.pas(175,3) Fatal: (2003) Syntax error, "BEGIN" expected but "identifier UNIX" found
Fatal: (1018) Compilation aborted
Error: /sw/bin/ppc386 returned an error exit code
Are there any easy way to fix that?
--- End quote ---
Because that looks like exactly the same issue. Or to put it into other words: in that case you haven't correctly fixed the issues that we previously discussed. (e.g. you fixed it in such a way that it (only) works for windows target).
Please, show us your 'fixed' ifdef code (only the part that you fixed, not the complete unit).
saashapont:
When i try rebuild lazarus, i set this settings: Compiler /sw/bin/fpc
LCL type Carbon, Target Darwin
The project open is for darwin too
And when i try to build lazarus i have errors
carbonproc.pp(535,13) Error: Identifier not found "ATSUFindFontFromName"
carbonproc.pp(696,11) Error: Identifier not found "HIViewSetVisible"
carbonproc.pp(755,36) Error: Identifier not found "GetControlEventTarget"
carbonproc.pp(1393,28) Warning: Local variable "sz" does not seem to be initialized
The code that fix last error is
--- 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";}};} ---{$IFDEF HASAMIGA} Exec, dos;{$ELSE} {$IFDEF Windows} Windows {$IFnDEF WinCE}, ShlObj, ActiveX, WinDirs{$ENDIF}; {$ELSE} {$IFDEF darwin} MacOSAll, {$ENDIF} Unix, BaseUnix;{$ENDIF}{$ENDIF} {$I lazfileutils.inc}{$IFDEF HASAMIGA} {$I aroslazfileutils.inc}{$ELSE}{$IFDEF windows} {$I winlazfileutils.inc}{$ELSE} {$I unixlazfileutils.inc}{$ENDIF}{$ENDIF}
molly:
Ah ok.. in that case i misunderstood that you 'fixed' your first message to include the _new_ errors :-[.
In that case in was not necessary to show your 'fixed' ifdef solution (afaik it is perfectly ok btw :))
--- Quote from: saashapont on August 04, 2016, 02:44:13 pm ---When i try rebuild lazarus, i set this settings: Compiler /sw/bin/fpc
LCL type Carbon, Target Darwin
The project open is for darwin too
And when i try to build lazarus i have errors
carbonproc.pp(535,13) Error: Identifier not found "ATSUFindFontFromName"
carbonproc.pp(696,11) Error: Identifier not found "HIViewSetVisible"
carbonproc.pp(755,36) Error: Identifier not found "GetControlEventTarget"
carbonproc.pp(1393,28) Warning: Local variable "sz" does not seem to be initialized
--- End quote ---
Sorry, i have to call defeat here :'(
These functions are listed inside ALB42's lazarus branch (e.g. they are present) but, do realize that ALB42's MorphOS branch is more than 6 months old.
Officially ALB42s branch only supports one single target being MorphOS (or AROS in case you installed the AROS branch). Of course that also means that the host OS has to be supported, and this is only verified for host OS' being Linux and/or Windows (and by you doing this we now also know it works for macOS, so thank you very much for that). Everything else you get running/working is to be considered pure luck.
This issue would really require someone with (enough) MacOS knowledge and who's able to help you out there.
mischi:
--- Quote from: saashapont on August 04, 2016, 02:44:13 pm ---When i try rebuild lazarus, i set this settings: Compiler /sw/bin/fpc
LCL type Carbon, Target Darwin
The project open is for darwin too
And when i try to build lazarus i have errors
carbonproc.pp(535,13) Error: Identifier not found "ATSUFindFontFromName"
carbonproc.pp(696,11) Error: Identifier not found "HIViewSetVisible"
carbonproc.pp(755,36) Error: Identifier not found "GetControlEventTarget"
carbonproc.pp(1393,28) Warning: Local variable "sz" does not seem to be initialized
--- End quote ---
Reminds me of 64bit vs 32bit problem.
saashapont:
Yes it was when i use 64 bit compiler
Now i set all permission for all files in lazarus filter and choose 32 bit compiler
And it is work!!!! Thank you!!!!
Navigation
[0] Message Index
[*] Previous page