Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-05

Compiling LCL for ARM

23 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Hi,

Compiling LCL for ARM fails with the latest Lazarus & FPC SVN revision. (I am not suggesting this is a newly introduced problem, this was the first time I tried to compile it as instructed on the Lazarus Wiki page.

Here is the log

Compiling lconvencoding.pas
lconvencoding.pas(23,2) Warning: User defined: Windows/Wine/ReactOS locale conversion is not fully supported yet. Sorry. lconvencoding.pas(103,65) Error: Incompatible type for arg no. 3: Got "PChar", expected "PWideChar" lconvencoding.pas(4249) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted

Any idea what to now?

Best Regards,

- Leslie -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080509/f1ce3a50/attachment-0001.html

Reply by email

Unknown author
to Unknown author: Compiling LCL for ARM fails with the latest Lazarus & FPC SVN revision. (I am not…

After subtitutng the type of a local variable from "PChar" to "PWideChar", the unit complies OK, but being all new to Lazarus, I do not know if I should be doing that. Well I tried anyway, but other compile errors have come up with an other unit, so I am not sure what to do now.

Should I report these errors? If yes is this mailing list meant for that?

Any advice is appreciated. :)
- Leslie -

Earlier message 41 lines
----- Original Message ----- From: To: General mailing list Sent: Friday, May 09, 2008 10:38 PM Subject: [Lazarus] Compiling LCL for ARM Hi, Compiling LCL for ARM fails with the latest Lazarus & FPC SVN revision. (I am not suggesting this is a newly introduced problem, this was the first time I tried to compile it as instructed on the Lazarus Wiki page. Here is the log Compiling lconvencoding.pas lconvencoding.pas(23,2) Warning: User defined: Windows/Wine/ReactOS locale conversion is not fully supported yet. Sorry. lconvencoding.pas(103,65) Error: Incompatible type for arg no. 3: Got "PChar", expected "PWideChar" lconvencoding.pas(4249) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted Any idea what to now? Best Regards, - Leslie - ------------------------------------------------------------------------------

Reply by email

Unknown author
to Felipe Monteiro de Carvalho: ARM is too generic. What operating system are you using? What fpc version? etc Felipe…

Oh yes, finally I went for a shortened version of my post and the WinCE part was cut out. :(

WinCE-ARM, FPC 2.21, latest FPC & Lazarus SVN revision , I check them out daily.

If there is anything else you need, please be specific, these are all I can think of. :)

- Leslie -

Earlier message 17 lines
----- Original Message ----- From: "Felipe Monteiro de Carvalho" To: "General mailing list" Sent: Friday, May 09, 2008 11:08 PM Subject: Re: [Lazarus] Compiling LCL for ARM > ARM is too generic. What operating system are you using? What fpc version? > etc > > -- > Felipe Monteiro de Carvalho > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >

Reply by email

Felipe Monteiro de Carvalho
to Unknown author: After subtitutng the type of a local variable from "PChar" to "PWideChar", the unit…

2008/5/9 :

Should I report these errors? If yes is this mailing list meant for that?

Yes. Compile errors and things which you aren't sure if are bugs can be discussed in the mailling list. For the majority of problems the bug tracker is more appropriate.

In your specific problem you not provide enougth information to reproduce it. Please read here:

http://catb.org/~esr/faqs/smart-questions.html#beprecise

Felipe Monteiro de Carvalho

Reply by email

Felipe Monteiro de Carvalho
to Unknown author: Oh yes, finally I went for a shortened version of my post and the WinCE part was cut out.…
WinCE-ARM, FPC 2.21, latest FPC & Lazarus SVN revision , I check them out daily.

Ah, ok, thanks.

This unit is very new, so yes, it's a recently introduced problem.

Mattias, what do you think the solution could be? Pass utf-8 as the wince encoding? WinCE doesn't have a native ansi encoding because it doesn't support ansi, only unicode.

Felipe Monteiro de Carvalho

Reply by email

Unknown author
to Felipe Monteiro de Carvalho: 2008/5/9 : Yes. Compile errors and things which you aren't sure if are bugs can be…

Clear. Thanks.

I am ready to do some WinCE-ARM testing this weekend. So in case you Vincent or someone else has the time to solve them, I'd be happy to deliver the bug reports. :)

Of course first of all I need a working Lazarus to test with. I thought testing with the latest SVN revision would be the most helpful, but if there is any fast way to set up Lazarus, that would do for me.

Anyhow, here are the fatal compilation errors I have collected this far: ( Building the Crosscompiler and FCL went fine, the problems started with the LCL)

lconvencoding.pas(23,2) Warning: User defined: Windows/Wine/ReactOS locale conversion is not fully supported yet. Sorry.
lconvencoding.pas(103,65) Error: Incompatible type for arg no. 3: Got "PChar", expected "PWideChar"
lconvencoding.pas(4249) Fatal: There were 1 errors compiling module, stopping

---
wincewscomctrls.pp(295,23) Error: Identifier not found "InitCommonControlsEx"
wincewscomctrls.pp(383,23) Error: Identifier not found "InitCommonControlsEx"
wincewscomctrls.pp(445,23) Error: Identifier not found "InitCommonControlsEx"
wincewscomctrls.pp(520) Fatal: There were 3 errors compiling module, stopping

---
Compiling wincewsmenus.pp
wincewsmenus.pp(194,21) Error: Identifier not found "SHMENUBARINFO"
wincewsmenus.pp(194,21) Error: Error in type definition
wincewsmenus.pp(197,22) Error: Identifier not found "TBBUTTONINFO"
wincewsmenus.pp(197,22) Error: Error in type definition
wincewsmenus.pp(223,7) Error: Illegal qualifier
wincewsmenus.pp(223,28) Error: Identifier not found "SHFindMenuBar"
wincewsmenus.pp(225,12) Error: Expression type must be class or record type
wincewsmenus.pp(226,11) Error: Identifier not found "cbSize"
wincewsmenus.pp(227,15) Error: Identifier not found "hwndParent"
wincewsmenus.pp(228,12) Error: Identifier not found "dwFlags"
wincewsmenus.pp(228,26) Error: Identifier not found "SHCMBF_HMENU"
wincewsmenus.pp(229,15) Error: Identifier not found "nToolBarId"
wincewsmenus.pp(230,13) Error: Identifier not found "hInstRes"
wincewsmenus.pp(234,11) Error: Illegal qualifier
wincewsmenus.pp(235,38) Error: Illegal qualifier
wincewsmenus.pp(236,38) Error: Illegal qualifier
wincewsmenus.pp(239,27) Error: Identifier not found "SHCreateMenuBar"
wincewsmenus.pp(246,25) Error: Illegal qualifier
wincewsmenus.pp(267,35) Error: Illegal qualifier
wincewsmenus.pp(278,23) Error: Illegal qualifier
wincewsmenus.pp(287,14) Error: Illegal qualifier
wincewsmenus.pp(288,14) Error: Illegal qualifier
wincewsmenus.pp(289,14) Error: Illegal qualifier
wincewsmenus.pp(289,33) Error: Identifier not found "TBIF_TEXT"
wincewsmenus.pp(290,25) Error: Illegal qualifier
wincewsmenus.pp(290,48) Error: Identifier not found "TB_SETBUTTONINFO"
wincewsmenus.pp(291,14) Error: Illegal qualifier
wincewsmenus.pp(291,35) Error: Identifier not found "TBIF_LPARAM"
wincewsmenus.pp(292,26) Error: Illegal qualifier
wincewsmenus.pp(292,50) Error: Identifier not found "TB_GETBUTTONINFO"
wincewsmenus.pp(293,49) Error: Illegal qualifier
wincewsmenus.pp(300,20) Error: Illegal qualifier
wincewsmenus.pp(608) Fatal: There were 32 errors compiling module, stopping

- Leslie -

Earlier message 26 lines
----- Original Message ----- From: "Felipe Monteiro de Carvalho" To: "General mailing list" Sent: Friday, May 09, 2008 11:41 PM Subject: Re: [Lazarus] Compiling LCL for ARM > 2008/5/9 : >> Should I report these errors? If yes is this mailing list meant for that? > > Yes. Compile errors and things which you aren't sure if are bugs can > be discussed in the mailling list. For the majority of problems the > bug tracker is more appropriate. > > In your specific problem you not provide enougth information to > reproduce it. Please read here: > > http://catb.org/~esr/faqs/smart-questions.html#beprecise > > -- > Felipe Monteiro de Carvalho > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >

Reply by email

Felipe Monteiro de Carvalho
to Unknown author
wincewsmenus.pp(194,21) Error: Identifier not found "SHMENUBARINFO"

Are you sure you've set all settings?

Operating System wince
Architecture: arm

How are you building LCL? From the IDE or from the command line?

Felipe Monteiro de Carvalho

Reply by email

Felipe Monteiro de Carvalho
to Unknown author: After subtitutng the type of a local variable from "PChar" to "PWideChar", the unit…

2008/5/9 :

After subtitutng the type of a local variable from "PChar" to "PWideChar", the unit complies OK, but being all new to Lazarus, I do not know if I should be doing that.

That unit was added for support of new IDE features, it doesn't really matter what it contains when building for wince, so this change should be harmless.

Well I tried anyway, but other compile errors have come up with an other unit, so I am not sure what to do now.

The other errors are most likely a configuration problem on your side, althougth I haven't checked, so I am not 100% sure

Felipe Monteiro de Carvalho

Reply by email

Vincent Snijders
to Felipe Monteiro de Carvalho: Are you sure you've set all settings? Operating System wince Architecture: arm How are…
Felipe Monteiro de Carvalho wrote 9 lines
> wincewsmenus.pp(194,21) Error: Identifier not found "SHMENUBARINFO" Are you sure you've set all settings? Operating System wince Architecture: arm How are you building LCL? From the IDE or from the command line?

Maybe related to:
http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=rev&revision=10907

Vincent

Reply by email

Unknown author
to Felipe Monteiro de Carvalho: Are you sure you've set all settings? Operating System wince Architecture: arm How are…
How are you building LCL? From the IDE or from the command line? From the command line as described at

http://wiki.lazarus.freepascal.org/Windows_CE_Interface#Setting_up_the_Windows_CE_interface_manually.

I have installed Lazarus twice to two separte directories. "Q:|\Lazarus" has FPC 2.20, "Q:|\Lazarus_221" has FPC 2.21.
Both were installed by running the respective snapshot installers from http://snapshots.lazarus.shikami.org/lazarus/. Plus installed the WinCE snapshot into "Q:|\Lazarus_221".

Both installations are refreshed daily from SVN.
The FPC 2.21 source too, to the Q:\Lazarus_221\fpc\2.2.1\source\ directory.

These are the batch files I have been using:

for the CrossCompiler
Q:
cd \Lazarus_221\fpc\2.2.1\source\compiler\
PATH=Q:\Lazarus\fpc\2.2.0\bin\i386-win32
make cycle CPU_TARGET=arm OS_TARGET=wince
COPY /Y *.exe Q:\Lazarus_221\fpc\2.2.1\bin\i386-win32\

for the FCL:
Q:
cd \Lazarus_221\fpc\2.2.1\source\packages\
PATH=Q:\Lazarus_221\fpc\2.2.1\bin\i386-win32\
make clean all CPU_TARGET=arm OS_TARGET=wince PP=ppcrossarm.exe OPT="-FUQ:\Lazarus_221\fpc\2.2.1\units\arm-wince"

for the LCL:
Q:
cd \Lazarus_221
PATH=Q:\Lazarus_221\fpc\2.2.1\bin\i386-win32
make lcl LCL_PLATFORM=wince PP=ppcrossarm.exe CPU_TARGET=arm OS_TARGET=wince

Do these clear the picture?

Sometimes it is faster to solve a problem then to understand why it occured. If it is a configuartion promblem could reinstalling solve it?

Thanks a lot for your help and time! :)
- Leslie -

Earlier message 23 lines
----- Original Message ----- From: "Felipe Monteiro de Carvalho" To: "General mailing list" Sent: Saturday, May 10, 2008 5:33 AM Subject: Re: [Lazarus] Compiling LCL for ARM >> wincewsmenus.pp(194,21) Error: Identifier not found "SHMENUBARINFO" > > Are you sure you've set all settings? > > Operating System wince > Architecture: arm > > How are you building LCL? From the IDE or from the command line? > > -- > Felipe Monteiro de Carvalho > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >

Reply by email

Yury Sidorov
to Vincent Snijders: Maybe related to: http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=rev&revision=10907…

From: "Vincent Snijders"

Show quoted text 14 lines
Felipe Monteiro de Carvalho schreef: >> wincewsmenus.pp(194,21) Error: Identifier not found >> "SHMENUBARINFO" > > Are you sure you've set all settings? > > Operating System wince > Architecture: arm > > How are you building LCL? From the IDE or from the command line? > Maybe related to: http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=rev&revision=10907

Yes. It is needed to use commctrl, shellapi, aygshell, etc for extra APIs on wince in fpc 2.2.1 or later.
If FPC 2.2.0 support is needed uses of extra units can be ifdefed like this:

uses Windows {$ifndef VER2_2_0}, aygshell {$endif};

Yury Sidorov.

Reply by email

Unknown author
to Felipe Monteiro de Carvalho

Wow, LCL compilation is finsihed, just ran my first ever PDA test app made by Lazarus. :))
I will try a few things now. Have been waiting for this for a while, so I am quite excited.

I will probably have some more questions, but I realise the importance of having a break so not really expecting replies before next week.

Here is the first one: i have read that the size of the exe file can be decreased quite much. Can it be done for the WinCe apps as well?

Thank you very much Felipe! Especially for doing it in the weekend.

- Leslie -

Earlier message 18 lines
----- Original Message ----- From: "Felipe Monteiro de Carvalho" To: "General mailing list" Sent: Saturday, May 10, 2008 6:20 PM Subject: Re: [Lazarus] Compiling LCL for ARM > Thanks, > > I fixed the compilation problem, please test again. > > -- > Felipe Monteiro de Carvalho > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >

Reply by email

Felipe Monteiro de Carvalho
to Unknown author
Here is the first one: i have read that the size of the exe file can be decreased quite much. Can it be done for the WinCe apps as well?

Yes. In my system I have:

C:\Programas\lazarus22\fpc\2.2.1\bin\i386-win32\arm-wince-strip.exe

You can built a batch script which will call it, like this:

// first set the path like in the other batch scripts arm-wince-strip.exe --strip-all myexecutable.exe
pause

Thank you very much Felipe! Especially for doing it in the weekend.

No problem =P I've been waiting for some feedback, specially about the new unicode support.

Fell free to comunicate questions, problems, etc.

Felipe Monteiro de Carvalho

Reply by email

Lee Jenkins
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 21 lines
On Sat, May 10, 2008 at 2:20 PM, wrote: > Here is the first one: i have read that the size of the exe file can be > decreased quite much. Can it be done for the WinCe apps as well? Yes. In my system I have: C:\Programas\lazarus22\fpc\2.2.1\bin\i386-win32\arm-wince-strip.exe You can built a batch script which will call it, like this: // first set the path like in the other batch scripts arm-wince-strip.exe --strip-all myexecutable.exe pause > Thank you very much Felipe! Especially for doing it in the weekend. No problem =P I've been waiting for some feedback, specially about the new unicode support. Fell free to comunicate questions, problems, etc.

I can't wait to start WinCE development! Unfortunately, I have one major project to do before I can start :( Maybe I can start to play with it soon just for fun.

Leslie, are you using the emulator or testing directly with a device?

Felipe,

Does trunk include the WinCE stuff or is that still a separate setup as as shown on the lazarus wiki?

Warm Regards, Lee

Reply by email

Unknown author
to Lee Jenkins

At the moment I am tesing on a Fujitsu Siemens Loox PDA with Windows Mobile 5.0.

- Leslie -

Earlier message 56 lines
----- Original Message ----- From: "Lee Jenkins" To: "General mailing list" Sent: Saturday, May 10, 2008 8:05 PM Subject: Re: [Lazarus] Compiling LCL for ARM > Felipe Monteiro de Carvalho wrote: >> On Sat, May 10, 2008 at 2:20 PM, wrote: >>> Here is the first one: i have read that the size of the exe file can >>> be >>> decreased quite much. Can it be done for the WinCe apps as well? >> >> Yes. In my system I have: >> >> C:\Programas\lazarus22\fpc\2.2.1\bin\i386-win32\arm-wince-strip.exe >> >> You can built a batch script which will call it, like this: >> >> // first set the path like in the other batch scripts >> arm-wince-strip.exe --strip-all myexecutable.exe >> pause >> >>> Thank you very much Felipe! Especially for doing it in the weekend. >> >> No problem =P I've been waiting for some feedback, specially about the >> new unicode support. >> >> Fell free to comunicate questions, problems, etc. >> > > I can't wait to start WinCE development! Unfortunately, I have one major > project to do before I can start :( Maybe I can start to play with it > soon just > for fun. > > Leslie, are you using the emulator or testing directly with a device? > > Felipe, > > Does trunk include the WinCE stuff or is that still a separate setup as as > shown > on the lazarus wiki? > > > -- > > Warm Regards, > > Lee > > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >

Reply by email

Unknown author
to Felipe Monteiro de Carvalho: Yes. In my system I have: C:\Programas\lazarus22\fpc\2.2.1\bin\i386-win32\arm-wince-strip.…

Thanks. :)

Just a small thing: in the new Compile options dlg's "Compile" section the "Before compile" and "After compile" captions are reversed. I wanted to post this to bug tracking but it is not working. I am experiencing problems reaching freepascal.org very often, so the problem may be on my side.

- Leslie -

Earlier message 35 lines
----- Original Message ----- From: "Felipe Monteiro de Carvalho" To: "General mailing list" Sent: Saturday, May 10, 2008 7:35 PM Subject: Re: [Lazarus] Compiling LCL for ARM > On Sat, May 10, 2008 at 2:20 PM, wrote: >> Here is the first one: i have read that the size of the exe file can be >> decreased quite much. Can it be done for the WinCe apps as well? > > Yes. In my system I have: > > C:\Programas\lazarus22\fpc\2.2.1\bin\i386-win32\arm-wince-strip.exe > > You can built a batch script which will call it, like this: > > // first set the path like in the other batch scripts > arm-wince-strip.exe --strip-all myexecutable.exe > pause > >> Thank you very much Felipe! Especially for doing it in the weekend. > > No problem =P I've been waiting for some feedback, specially about the > new unicode support. > > Fell free to comunicate questions, problems, etc. > > -- > Felipe Monteiro de Carvalho > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus >

Reply by email

Lee Jenkins
to Unknown author
Show quoted text 38 lines
Thanks. :) Just a small thing: in the new Compile options dlg's "Compile" section the "Before compile" and "After compile" captions are reversed. I wanted to post this to bug tracking but it is not working. I am experiencing problems reaching freepascal.org very often, so the problem may be on my side. - Leslie - ----- Original Message ----- From: "Felipe Monteiro de Carvalho" To: "General mailing list" Sent: Saturday, May 10, 2008 7:35 PM Subject: Re: [Lazarus] Compiling LCL for ARM > On Sat, May 10, 2008 at 2:20 PM, wrote: >> Here is the first one: i have read that the size of the exe file can be >> decreased quite much. Can it be done for the WinCe apps as well? > Yes. In my system I have: > > C:\Programas\lazarus22\fpc\2.2.1\bin\i386-win32\arm-wince-strip.exe > > You can built a batch script which will call it, like this: > > // first set the path like in the other batch scripts > arm-wince-strip.exe --strip-all myexecutable.exe > pause > >> Thank you very much Felipe! Especially for doing it in the weekend. > No problem =P I've been waiting for some feedback, specially about the > new unicode support. > > Fell free to comunicate questions, problems, etc. > > -- > Felipe Monteiro de Carvalho

I reported this to the list a few months ago. I had trouble getting my password confirmation from the mantis system so I didn't report it to the bug tracker. I'll do it now.

Warm Regards, Lee "When my company started out, we were really, really, really, really small. Now...we're just really small."

Reply by email

Lee Jenkins
to Lee Jenkins: I reported this to the list a few months ago. I had trouble getting my password…
Lee Jenkins wrote 45 lines
wrote: > Thanks. :) > > Just a small thing: in the new Compile options dlg's "Compile" section the > "Before compile" and "After compile" captions are reversed. > I wanted to post this to bug tracking but it is not working. I am > experiencing problems reaching freepascal.org very often, so the problem > may be on my side. > > - Leslie - > > ----- Original Message ----- > From: "Felipe Monteiro de Carvalho" > To: "General mailing list" > Sent: Saturday, May 10, 2008 7:35 PM > Subject: Re: [Lazarus] Compiling LCL for ARM > > >> On Sat, May 10, 2008 at 2:20 PM, wrote: >>> Here is the first one: i have read that the size of the exe file can be >>> decreased quite much. Can it be done for the WinCe apps as well? >> Yes. In my system I have: >> >> C:\Programas\lazarus22\fpc\2.2.1\bin\i386-win32\arm-wince-strip.exe >> >> You can built a batch script which will call it, like this: >> >> // first set the path like in the other batch scripts >> arm-wince-strip.exe --strip-all myexecutable.exe >> pause >> >>> Thank you very much Felipe! Especially for doing it in the weekend. >> No problem =P I've been waiting for some feedback, specially about the >> new unicode support. >> >> Fell free to comunicate questions, problems, etc. >> >> -- >> Felipe Monteiro de Carvalho I reported this to the list a few months ago. I had trouble getting my password confirmation from the mantis system so I didn't report it to the bug tracker. I'll do it now.

BTW, I just checked and this appears to be fixed in rev. 15082. I just placed the following in the After Execute edit box under Project > Compiler Options > Compilation and it worked as expected (stripped the exe after build, which I have it set for).

"M:\lazarus\IDE\fpc\2.2.1\bin\i386-win32\strip.exe" --strip-all $(TargetFile)

Warm Regards, Lee "When my company started out, we were really, really, really, really small. Now...we're just really small."

Reply by email

Lee Jenkins
to Felipe Monteiro de Carvalho: Trunk contains all wince code, but you have to prepare a setup as shown in the wiki. I…
Felipe Monteiro de Carvalho wrote 8 lines
On Sat, May 10, 2008 at 3:05 PM, Lee Jenkins wrote: > Does trunk include the WinCE stuff or is that still a separate setup as as shown > on the lazarus wiki? Trunk contains all wince code, but you have to prepare a setup as shown in the wiki. I don't see the opposition between both things, both are true at the same time.

Excellent. I'll have break out my iPAQ this week and give it a try.

Thanks again, Felipe.

Warm Regards, Lee

Reply by email

Mattias Gaertner
to Felipe Monteiro de Carvalho: Ah, ok, thanks. This unit is very new, so yes, it's a recently introduced problem.…
Show quoted text 11 lines
On Fri, May 9, 2008 at 6:34 PM, wrote: > WinCE-ARM, FPC 2.21, latest FPC & Lazarus SVN revision , I check > them out daily. Ah, ok, thanks. This unit is very new, so yes, it's a recently introduced problem. Mattias, what do you think the solution could be? Pass utf-8 as the wince encoding? WinCE doesn't have a native ansi encoding because it doesn't support ansi, only unicode.

What unicode? UTF-16?
What is the normal encoding of text files on WinCE?

Mattias

Reply by email