Forum > Other OS
MorphOS and MorpOS Lazarus from Alb42
molly:
--- Quote from: saashapont on August 04, 2016, 12:37:21 pm ---You want to say that
HasAmiga was not defined, include units Unix and BaseUnix
are superfluous?
--- End quote ---
Bingo ! :)
You might perhaps not have know that, but ask yourself what on earth would a program compiled for windows do with units Unix and BaseUnix (which are units intended to be used for ... well .. unix related targets).
Now, the hardest part is figuring out what was intended. But since you did your homework you already know what was intended (original lazarus source) and what was added to make things misbehave.
In the original code you can clearly see that
--- 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 Windows}blah blah{$ELSE} {$IFDEF darwin} blah, {$ENDIF} Unix, BaseUnix; // <--- if the target is not windows _then_ include units Unix and baseUnix.{$ENDIF} Which in itself is a complete flawed design as there is only room for two targets (with a small side-step for darwin target).
It is what i call the "If windows then do_windows_stuff else we_happily_assume_it_is_always_unix/linux_and_we_simply_do_not_care_about_the_rest" syndrome.
Is that enough information for you to fix the error ?
molly:
--- Quote from: molly on August 04, 2016, 12:47:43 pm ---Is that enough information for you to fix the error ?
--- End quote ---
To correct myself there: perhaps not all information in case you are not familiar with the hasamiga define.
HasAmiga means that the target is Amiga, AmigaOS, MorphOS or AROS.
And with telling you that none of these mentioned targets requires units Unix and baseunix (even stronger: you should not use them for these targets), you should be able to solve it.
Sorry for the inconvenience and/or confusion i might have caused by initially withholding this information.
saashapont:
Thank you!!! I fix it! Now in this lazarus i have correct compilation for
Windows, mac, MORPHOS, Linux, Linux Arm, And for IOS without lcl!
And what can you say about:
1. What are the right options to rebuild this lazarus after packet installation?
molly:
--- Quote from: saashapont on August 04, 2016, 01:20:34 pm ---Thank you!!! I fix it! Now in this lazarus i have correct compilation for
Windows, mac, MORPHOS, Linux, Linux Arm, And for IOS without lcl!
--- End quote ---
Congratulations :D
Please realize i was not doing this to pester you rather to have you (hopefully) learn something.
--- Quote ---And what can you say about:
1. What are the right options to rebuild this lazarus after packet installation?
--- End quote ---
Uhm, yeah i noticed that question in your intial post, but i have to admit that it seems like my English skills are lacking there :-[ That's why i conveniently tried to avoid the question.
Could you perhaps rephrase ?
Right now i have no idea what you meant by 'packages' and/or why you would want to rebuild lazarus. If all else fails (with me understanding), then please describe in small steps what you want to achieve or what you think is happening or is required.
saashapont:
I fix first message :)
I want to instal customdrawn and iphonelazext packages. And then i must rebuild lazarus.
And when i try to build lazarus i always have error...
Navigation
[0] Message Index
[#] Next page
[*] Previous page