mse-org / mseide-msegui

MSEide is a Rapid Application Development IDE for platform independent rich GUI applications in the Pascal language. It comes with its own GUI toolkit called MSEgui. Binaries: https://github.com/mse-org/mseide-msegui/releases
GNU General Public License v2.0
121 stars 15 forks source link

Some projects fail to build with "mseide" 5.6.6 on linux 64 #36

Closed mingodad closed 2 years ago

mingodad commented 2 years ago

tools/POtools/POdemo/podemo.prj

Note: DWARF debug information cannot be used with smart linking on this target, switching to static linking
Free Pascal Compiler version 3.2.2 [2021/07/09] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling podemo.pas
Compiling form_conflang.pas
Compiling po2arrays.pas
po2arrays.pas(75,76) Warning: Implicit string type conversion from "AnsiString" to "UnicodeString"
po2arrays.pas(94,33) Warning: Implicit string type conversion with potential data loss from "UnicodeString" to "AnsiString"
po2arrays.pas(94,14) Warning: Implicit string type conversion from "AnsiString" to "UnicodeString"
po2arrays.pas(98,33) Warning: Implicit string type conversion with potential data loss from "UnicodeString" to "AnsiString"
po2arrays.pas(98,14) Warning: Implicit string type conversion from "AnsiString" to "UnicodeString"
po2arrays.pas(120,16) Error: Identifier not found "extendedty"
po2arrays.pas(120,26) Error: Error in type definition
po2arrays.pas(131,70) Warning: Implicit string type conversion from "RawByteString" to "UnicodeString"
po2arrays.pas(135,15) Error: Identifier not found "lang_modalresult"
po2arrays.pas(135,40) Error: Identifier not found "en_modalresulttext"
po2arrays.pas(137,7) Error: Identifier not found "lang_modalresult"
po2arrays.pas(137,48) Error: Identifier not found "en_modalresulttext"
po2arrays.pas(139,15) Error: Identifier not found "lang_modalresultnoshortcut"
po2arrays.pas(139,50) Error: Identifier not found "en_modalresulttextnoshortcut"
po2arrays.pas(141,7) Error: Identifier not found "lang_modalresultnoshortcut"
po2arrays.pas(142,9) Error: Identifier not found "en_modalresulttextnoshortcut"
po2arrays.pas(144,15) Error: Identifier not found "lang_stockcaption"
po2arrays.pas(144,41) Error: Identifier not found "en_stockcaption"
po2arrays.pas(146,7) Error: Identifier not found "lang_stockcaption"
po2arrays.pas(147,9) Error: Identifier not found "en_stockcaption"
po2arrays.pas(149,15) Error: Identifier not found "lang_extended"
po2arrays.pas(149,37) Error: Identifier not found "en_extendedtext"
po2arrays.pas(150,9) Error: Ordinal expression expected
po2arrays.pas(150,28) Error: Identifier not found "extendedty"
po2arrays.pas(150,48) Error: Identifier not found "extendedty"
po2arrays.pas(151,7) Error: Identifier not found "lang_extended"
po2arrays.pas(151,21) Error: Ordinal expression expected
po2arrays.pas(152,9) Error: Identifier not found "en_extendedtext"
po2arrays.pas(161,43) Error: Identifier not found "en_langnamestext"
po2arrays.pas(162,17) Error: Identifier not found "lang_langnames"
po2arrays.pas(164,17) Error: Identifier not found "lang_langnames"
po2arrays.pas(164,40) Error: Identifier not found "en_langnamestext"
po2arrays.pas(166,26) Error: Identifier not found "en_langnamestext"
po2arrays.pas(167,7) Error: Identifier not found "lang_langnames"
po2arrays.pas(167,28) Error: Identifier not found "en_langnamestext"
po2arrays.pas(169,15) Error: Identifier not found "lang_langnames"
po2arrays.pas(169,40) Error: Identifier not found "en_langnamestext"
po2arrays.pas(171,26) Error: Identifier not found "lang_langnames"
po2arrays.pas(173,29) Error: Identifier not found "lang_langnames"
po2arrays.pas(173,64) Error: Identifier not found "lang_langnames"
po2arrays.pas(179,23) Error: Identifier not found "en_langnamestext"
po2arrays.pas(183,11) Error: Identifier not found "lang_langnames"
po2arrays.pas(215,42) Warning: Implicit string type conversion with potential data loss from "UnicodeString" to "AnsiString"
po2arrays.pas(215,24) Warning: Implicit string type conversion from "AnsiString" to "UnicodeString"
po2arrays.pas(216,42) Warning: Implicit string type conversion with potential data loss from "UnicodeString" to "AnsiString"
po2arrays.pas(216,24) Warning: Implicit string type conversion from "AnsiString" to "UnicodeString"
po2arrays.pas(231,39) Warning: Implicit string type conversion with potential data loss from "UnicodeString" to "AnsiString"
po2arrays.pas(231,21) Warning: Implicit string type conversion from "AnsiString" to "UnicodeString"
po2arrays.pas(232,39) Warning: Implicit string type conversion with potential data loss from "UnicodeString" to "AnsiString"
po2arrays.pas(232,21) Warning: Implicit string type conversion from "AnsiString" to "UnicodeString"
po2arrays.pas(245,42) Warning: Implicit string type conversion with potential data loss from "UnicodeString" to "AnsiString"
po2arrays.pas(245,24) Warning: Implicit string type conversion from "AnsiString" to "UnicodeString"
po2arrays.pas(255,45) Warning: Implicit string type conversion with potential data loss from "UnicodeString" to "AnsiString"
po2arrays.pas(255,24) Warning: Implicit string type conversion from "AnsiString" to "UnicodeString"
po2arrays.pas(266,45) Warning: Implicit string type conversion with potential data loss from "UnicodeString" to "AnsiString"
po2arrays.pas(266,24) Warning: Implicit string type conversion from "AnsiString" to "UnicodeString"
po2arrays.pas(277,45) Warning: Implicit string type conversion with potential data loss from "UnicodeString" to "AnsiString"
po2arrays.pas(277,24) Warning: Implicit string type conversion from "AnsiString" to "UnicodeString"
po2arrays.pas(286,31) Warning: Implicit string type conversion with potential data loss from "UnicodeString" to "AnsiString"
po2arrays.pas(286,13) Warning: Implicit string type conversion from "AnsiString" to "UnicodeString"
po2arrays.pas(287,31) Warning: Implicit string type conversion with potential data loss from "UnicodeString" to "AnsiString"
po2arrays.pas(287,13) Warning: Implicit string type conversion from "AnsiString" to "UnicodeString"
po2arrays.pas(292,47) Error: Identifier not found "en_modalresulttext"
po2arrays.pas(294,55) Error: Identifier not found "en_modalresulttext"
po2arrays.pas(296,57) Error: Identifier not found "en_modalresulttextnoshortcut"
po2arrays.pas(299,9) Error: Identifier not found "en_modalresulttextnoshortcut"
po2arrays.pas(301,44) Error: Identifier not found "en_stockcaption"
po2arrays.pas(304,9) Error: Identifier not found "en_stockcaption"
po2arrays.pas(306,44) Error: Identifier not found "en_extendedtext"
po2arrays.pas(307,9) Error: Ordinal expression expected
po2arrays.pas(307,28) Error: Identifier not found "extendedty"
po2arrays.pas(307,48) Error: Identifier not found "extendedty"
po2arrays.pas(308,28) Error: Ordinal expression expected
po2arrays.pas(309,9) Error: Identifier not found "en_extendedtext"
po2arrays.pas(316,45) Error: Identifier not found "en_langnamestext"
po2arrays.pas(317,26) Error: Identifier not found "en_langnamestext"
po2arrays.pas(317,26) Fatal: There were 50 errors compiling module, stopping
Fatal: Compilation aborted

tools/POtools/MOdemo/modemo.prj

Note: DWARF debug information cannot be used with smart linking on this target, switching to static linking
Free Pascal Compiler version 3.2.2 [2021/07/09] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling modemo.pas
Compiling form_conflang.pas
Compiling mo2arrays.pas
Compiling captionmodemo.pas
mo2arrays.pas(77,76) Warning: Implicit string type conversion from "AnsiString" to "UnicodeString"
mo2arrays.pas(92,54) Warning: Implicit string type conversion with potential data loss from "UnicodeString" to "AnsiString"
mo2arrays.pas(92,21) Warning: Implicit string type conversion from "AnsiString" to "UnicodeString"
mo2arrays.pas(93,35) Warning: Implicit string type conversion with potential data loss from "UnicodeString" to "AnsiString"
mo2arrays.pas(93,15) Warning: Implicit string type conversion from "AnsiString" to "UnicodeString"
mo2arrays.pas(94,35) Warning: Implicit string type conversion with potential data loss from "UnicodeString" to "AnsiString"
mo2arrays.pas(94,15) Warning: Implicit string type conversion from "AnsiString" to "UnicodeString"
mo2arrays.pas(111,53) Error: Identifier not found "en_modalresulttext"
mo2arrays.pas(112,63) Error: Identifier not found "en_modalresulttextnoshortcut"
mo2arrays.pas(113,54) Error: Identifier not found "en_stockcaption"
mo2arrays.pas(114,50) Error: Identifier not found "en_extendedtext"
mo2arrays.pas(134,70) Warning: Implicit string type conversion from "RawByteString" to "UnicodeString"
mo2arrays.pas(138,20) Error: Identifier not found "lang_modalresult"
mo2arrays.pas(138,38) Error: Identifier not found "lang_modalresultnoshortcut"
mo2arrays.pas(138,66) Error: Identifier not found "lang_stockcaption"
mo2arrays.pas(139,20) Error: Identifier not found "lang_extended"
mo2arrays.pas(143,43) Error: Identifier not found "en_langnamestext"
mo2arrays.pas(144,17) Error: Identifier not found "lang_langnames"
mo2arrays.pas(146,17) Error: Identifier not found "lang_langnames"
mo2arrays.pas(146,40) Error: Identifier not found "en_langnamestext"
mo2arrays.pas(151,26) Error: Identifier not found "en_langnamestext"
mo2arrays.pas(152,7) Error: Identifier not found "lang_langnames"
mo2arrays.pas(152,28) Error: Identifier not found "en_langnamestext"
mo2arrays.pas(154,15) Error: Identifier not found "lang_langnames"
mo2arrays.pas(154,40) Error: Identifier not found "en_langnamestext"
mo2arrays.pas(156,26) Error: Identifier not found "lang_langnames"
mo2arrays.pas(158,26) Error: Identifier not found "lang_langnames"
mo2arrays.pas(158,61) Error: Identifier not found "lang_langnames"
mo2arrays.pas(164,23) Error: Identifier not found "en_langnamestext"
mo2arrays.pas(168,11) Error: Identifier not found "lang_langnames"
mo2arrays.pas(177,34) Warning: Implicit string type conversion with potential data loss from "UnicodeString" to "AnsiString"
mo2arrays.pas(182,45) Error: Identifier not found "en_langnamestext"
mo2arrays.pas(185,29) Error: Identifier not found "en_langnamestext"
mo2arrays.pas(187,22) Error: Identifier not found "lang_modalresult"
mo2arrays.pas(188,22) Error: Identifier not found "lang_modalresultnoshortcut"
mo2arrays.pas(189,22) Error: Identifier not found "lang_stockcaption"
mo2arrays.pas(190,22) Error: Identifier not found "lang_extended"
mo2arrays.pas(192,22) Error: Identifier not found "lang_langnames"
mo2arrays.pas(198,43) Error: Identifier not found "lang_langnames"
mo2arrays.pas(200,24) Error: Identifier not found "lang_langnames"
mo2arrays.pas(201,17) Error: Identifier not found "lang_langnames"
mo2arrays.pas(202,27) Error: Identifier not found "lang_langnames"
mo2arrays.pas(204,27) Error: Identifier not found "lang_langnames"
mo2arrays.pas(204,62) Error: Identifier not found "lang_langnames"
mo2arrays.pas(213,11) Error: Identifier not found "lang_langnames"
mo2arrays.pas(222) Fatal: There were 36 errors compiling module, stopping
Fatal: Compilation aborted

tools/i18n/msei18n.prj

Free Pascal Compiler version 3.2.2 [2021/07/09] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling msei18n.pas
msei18n.pas(27,53) Fatal: Can't find unit msegui used by msei18n
Fatal: Compilation aborted

apps/i18ndemo/i18ndemo.prj build but fail at runtime with:

Can not load lang unit "liblangi18ndemo_[fr,de].so
...
No such file or directory
fredvs commented 2 years ago

Hello Domingo.

Oooops + aaaargh indeed (and I dont understand why).

Many thanks to note it, I will fix it tonight.

About tools/i18n/msei18n.prj nothing was done there (by me), I will jump into it to see what is wrong.

Fre;D

fredvs commented 2 years ago

Hello. All should be fixed by commit https://github.com/mse-org/mseide-msegui/commit/1d218395758959efa1c96c5a869a1d3e565a08c8

( I dont really understand why there was problems, the only fix was to add "-B" parameter for all project options.)

About the project /mseide-msegui/tools/i18n/msei18n it compiles but I did not check if all is working but it should be ok. Note that Martin did not totally terminate that msei18n project, for internalization better to use all the "Potools" projects.

Many thanks for your attention.

Fre;D

fredvs commented 2 years ago

Re-hello.

Imho it is a problem with fpc. It seems that if you dont use the "-B" parameter, the compiler dont take care about the "-dmse_dynpo" parameter.

So, to resume, each time that a define is added or changed (for example "-dmse_dynpo"), you must re-compile the application with the "-B" parameter otherwise fpc will ignore it.

Fre;D

fredvs commented 2 years ago

Re-hello.

apps/i18ndemo/i18ndemo.prj build but fail at runtime with: Can not load lang unit "liblangi18ndemo_[fr,de].so No such file or directory

i18ndemo needs lang-libraries that must be compiled before. The idea of Martin for mse-i18n is to use a lang-library that has all the captions of a language + custom layout for that language with other widgets if needed.

Please take a look at explanation in README.TXT:

- How to run i18ndemo

( 3 years ago I jumped into that i18ndemo but lot of things must be fixed and I never try to run it again with last fpc releases ).

Fre;D

mingodad commented 2 years ago

I've been trying to follow the readme as you've pointed out but that is a lot confusing with no explanation about what is going on and why we need to do all of that voodoo magic and all my attempts failed.

How to run i18ndemo
*******************
- Start MSEide.
- 'Project'-'Open'-'yourdirectory/msegui/apps/i18ndemo/i18ndemo.prj'.
- 'Project'-'Make' to create the rsj files.
- 'Project'-'Open'-'yourdirectory/msegui/tools/i18n/msei18n.prj'.
- 'Target'-'Continue'.
In MSEi18n:
 - Adjust 'Settings'-'Configure MSEi18n'-'${MSEDIR}' and ${COMPILER}.
 - 'Open'-'yourdirectory/msegui/apps/i18ndemo/i18ndemo.trp'
 - 'Make'.
 - Close message window.
 - Close MSEi18n.
- 'Project'-'Open'-'yourdirectory/msegui/apps/i18ndemo/i18ndemo.prj'.
- 'Target'-'Continue'.
mingodad commented 2 years ago

Any way thank you for your great work and effort !

fredvs commented 2 years ago

Hum, about "How to run i18ndemo", I agree it is absolutely not clear. Also how to create the trp-lang-libraries is "very" complicated to understand, also how to run-load it.

Imho, it is good if you want to protect the lang-data or need a "kaliedoscope" program and each 'trp" library is a plugin ...

fredvs commented 2 years ago

No more noise so I close the topic.