Sign in Join

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

Mailing lists / lazarus / 2013-03

Error on first compilation of a legacy WinCe project

10 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Arí Ricardo Ody

I downloaded and ran:
lazarus-1.0.6-fpc-2.6.0-win32.exe
lazarus-1.0.6-fpc-2.6.0-cross-arm-wince-win32
Installed sqlite3laz 0.4 in line
Downloaded sqlite3.dll and sqlite3.def precompiled binaries for windows from http://www.sqlite.org/download.html
and copy them to c:\lazarus
I copied the lnet.0.6.5 to c:\lazarus\packager and open it via Lazarus menu Package|open package file(.lpk). I compile. Then open and compile lnetvisaul too(I don't know if it needed but...) I loaded a project for WinCe that I developed and is runnng under Lazarus 0.9.30 Press ctrl-F9 and after some seconds of compilation there was an error. Lazarus opens the Win32WSDialogs form and occurred the following error message: win32\win32wsdialogs.pp(0,0) Fatal: Can not find unit shlobj used by Win32WSDialogs. May someone here tell me what's wrong, please?
There is no other Lazarus versions on this machine. The Lazarus 0.9.30 runs in other computer. Code generation options: Target Os: WinCE Target CPU Family: arm Target processor: default Greetings from S?o Paulo - Brazil
Ricardo
I found the shlobj.ppu on the directory c:\lazarus\fpc\2.6.0\units\i386-Win32\winunits-base -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130312/09a69bd0/attachment.html>

Reply by email

Antonio Fortuny
to Arí Ricardo Ody

Le 12/03/2013 15:18, "Ar? Ricardo Ody" a ?crit :

Show quoted text 11 lines
I downloaded and ran: lazarus-1.0.6-fpc-2.6.0-win32.exe lazarus-1.0.6-fpc-2.6.0-cross-arm-wince-win32 Installed sqlite3laz 0.4 in line Downloaded sqlite3.dll and sqlite3.def precompiled binaries for windows from http://www.sqlite.org/download.html and copy them to c:\lazarus I copied the lnet.0.6.5 to c:\lazarus\packager and open it via Lazarus menu Package|open package file(.lpk). I compile. Then open and compile lnetvisaul too(I don't know if it needed but...) I loaded a project for WinCe that I developed and is runnng under Lazarus 0.9.30 Press ctrl-F9 and after some seconds of compilation there was an error. Lazarus opens the Win32WSDialogs form and occurred the following error message: win32\win32wsdialogs.pp(0,0) Fatal: Can not find unit shlobj used by Win32WSDialogs.

Did you select the good target for the project ? As far as I can read the project is set for Win32 platform. Is tahat what you want ? Maybe the project has to compile on both platforms ? I compile very often for both platforms having some big projecys running on both platforms. But I need sometimes also some {$ifdef WINCE} to target the good windows api

Show quoted text 15 lines
May someone here tell me what's wrong, please? There is no other Lazarus versions on this machine. The Lazarus 0.9.30 runs in other computer. Code generation options: Target Os: WinCE Target CPU Family: arm Target processor: default Greetings from S??o Paulo - Brazil Ricardo I found the shlobj.ppu on the directory c:\lazarus\fpc\2.6.0\units\i386-Win32\winunits-base -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Antonio Fortuny
to Antonio Fortuny

Sorry but the text of my answer was mixed inside your text. I wonder if the unit mentioned is used only by Win32. Differences between Win32 and WinCE must be managed depending on the apis used. The shlobj.pp does exist only in win32 folder. You should check whether the functions and procedures used from that unit have equivalences in WinCE.

Antonio.

Reply by email

Felipe Monteiro de Carvalho
to Antonio Fortuny

Send us a screenshot of your compiler options dialog for this project. You can upload it to imageshack.us and put a link to the image here. Show the place where the target OS and architecture are shown.

I think the widgetset is wrong, it should be wince.

win32<something> files are utilized only by win32, never by wince widgetset.

Felipe Monteiro de Carvalho

Reply by email

Mattias Gaertner
to Felipe Monteiro de Carvalho
Send us a screenshot of your compiler options dialog for this project.

Or simply copy and paste the content of Project / Project Options / Show Options.

Show quoted text 6 lines
You can upload it to imageshack.us and put a link to the image here. Show the place where the target OS and architecture are shown. I think the widgetset is wrong, it should be wince. win32<something> files are utilized only by win32, never by wince widgetset.

Mattias

Reply by email

Arí Ricardo Ody

Hi!

See the link:

http://www.adrive.com/public/GrfVrs/lazarus_project_options_as_you_ask_for.zip

It contains the snapshots you ask for.

Thanks in advance

Ricardo

Earlier message 10 lines
----- Original Message ----- From: Mattias Gaertner Sent: 03/12/13 03:11 PM To: Subject: Re: [Lazarus] Error on first compilation of a legacy WinCe project On Tue, 12 Mar 2013 15:08:54 -0300 Felipe Monteiro de Carvalho wrote: > Send us a screenshot of your compiler options dialog for this project. Or simply copy and paste the content of Project / Project Options / Show Options. > You can upload it to imageshack.us and put a link to the image here. > Show the place where the target OS and architecture are shown. > > I think the widgetset is wrong, it should be wince. > > win32<something> files are utilized only by win32, never by wince widgetset. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130313/48baef21/attachment.html>

Reply by email

Antonio Fortuny
to Arí Ricardo Ody

I think Felipe is right: project options --> build modes check the one with Wince as target
depending on IDE version (I use 1.1)
click on IDE macro values and change LCLWidgetType to WinCE or
on the build mode tab change LCLWidgetType to WinCE

Le 13/03/2013 02:04, "Ar? Ricardo Ody" a ?crit :

Show quoted text 27 lines
Hi! See the link: http://www.adrive.com/public/GrfVrs/lazarus_project_options_as_you_ask_for.zip It contains the snapshots you ask for. Thanks in advance Ricardo ----- Original Message ----- From: Mattias Gaertner Sent: 03/12/13 03:11 PM To: Subject: Re: [Lazarus] Error on first compilation of a legacy WinCe project On Tue, 12 Mar 2013 15:08:54 -0300 Felipe Monteiro de Carvalho wrote: > Send us a screenshot of your compiler options dialog for this project. Or simply copy and paste the content of Project / Project Options / Show Options. > You can upload it to imageshack.us and put a link to the image here. > Show the place where the target OS and architecture are shown. > > I think the widgetset is wrong, it should be wince. > > win32<something> files are utilized only by win32, never by wince widgetset. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Arí Ricardo Ody

Hi Antonio

See in the link below the screens you mentined.

http://migre.me/dEONW

Looking fort these screensI don't understand what you explanation. LCLWidgetType???

Cheers

Ricardo

Earlier message 10 lines
----- Original Message ----- From: Antonio Fortuny Sent: 03/13/13 05:55 AM To: Subject: Re: [Lazarus] Error on first compilation of a legacy WinCe project I think Felipe is right: project options --> build modes check the one with Wince as target depending on IDE version (I use 1.1) click on IDE macro values and change LCLWidgetType to WinCE or on the build mode tab change LCLWidgetType to WinCE Le 13/03/2013 02:04, "Ar? Ricardo Ody" a ?crit : > Hi! > > See the link: > > http://www.adrive.com/public/GrfVrs/lazarus_project_options_as_you_ask_for.zip > > It contains the snapshots you ask for. > > Thanks in advance > > Ricardo > ----- Original Message ----- > From: Mattias Gaertner > Sent: 03/12/13 03:11 PM > To: > Subject: Re: [Lazarus] Error on first compilation of a legacy WinCe project > > On Tue, 12 Mar 2013 15:08:54 -0300 Felipe Monteiro de Carvalho wrote: > Send us a screenshot of your compiler options dialog for this project. Or simply copy and paste the content of Project / Project Options / Show Options. > You can upload it to imageshack.us and put a link to the image here. > Show the place where the target OS and architecture are shown. > > I think the widgetset is wrong, it should be wince. > > win32<something> files are utilized only by win32, never by wince widgetset. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130313/4a72fb30/attachment-0001.html>

Reply by email

Antonio Fortuny
to Arí Ricardo Ody

Le 13/03/2013 17:14, "Ar? Ricardo Ody" a ?crit :

Show quoted text 7 lines
Hi Antonio See in the link below the screens you mentined. http://migre.me/dEONW Looking fort these screensI don't understand what you explanation. LCLWidgetType???

Look at screen "ide_build_modes_screen.jpg"
You have the IDE macro values part.
click on the (none) box (left hand side), a list shouls appear, select "LCLWidgetType"
On the right hand side, onto the same line, select wince thats it
In the list of active build modes you can add another build mode (win32 for instance) and, when selected, change all project options as desired. This time do not forget to change the LCLWidgetType accordingly Do not forget either that all project options are different from one build mode to another.

Show quoted text 23 lines
Cheers Ricardo ----- Original Message ----- From: Antonio Fortuny Sent: 03/13/13 05:55 AM To: Subject: Re: [Lazarus] Error on first compilation of a legacy WinCe project I think Felipe is right: project options --> build modes check the one with Wince as target depending on IDE version (I use 1.1) click on IDE macro values and change LCLWidgetType to WinCE or on the build mode tab change LCLWidgetType to WinCE Le 13/03/2013 02:04, "Ar?? Ricardo Ody" a ??crit : > Hi! > > See the link: > > http://www.adrive.com/public/GrfVrs/lazarus_project_options_as_you_ask_for.zip > > It contains the snapshots you ask for. > > Thanks in advance > > Ricardo > ----- Original Message ----- > From: Mattias Gaertner > Sent: 03/12/13 03:11 PM > To: > Subject: Re: [Lazarus] Error on first compilation of a legacy WinCe project > > On Tue, 12 Mar 2013 15:08:54 -0300 Felipe Monteiro de Carvalho wrote: > Send u s a screenshot of your compiler options dialog for this project. Or simply copy and paste the content of Project / Project Options / Show Options. > You can upload it to imageshack.us and put a link to the image here. > Show the place where the target OS and architecture are shown. > > I think the widgetset is wrong, it should be wince. > > win32<something> files are utilized only by win32, never by wince widgetset. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- _________ ______________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Arí Ricardo Ody

Congratulations!

You're right. My project for WinCe finally compiles ok. I can't test it exactly now, but it compiles. I have no reasons to suppose that it won't run ok.

I would like to ask another favour.

Can you prepare an organized list of what kind of customize list about what I must do to configure Lazarus in the way I can compile for WinCe or Win32.

You mentioned some stuff below but it's so difficult to me.

(IMHO my Lazarus environment is ready to compile for WinCe only. Is it?)

Can I count on your help, please?

BTW, thank you very much, Antonio

Cheers

Ricardo

Earlier message 10 lines
----- Original Message ----- From: Antonio Fortuny Sent: 03/13/13 01:25 PM To: Subject: Re: [Lazarus] Error on first compilation of a legacy WinCe project Le 13/03/2013 17:14, "Ar? Ricardo Ody" a ?crit : > Hi Antonio > > See in the link below the screens you mentined. > > http://migre.me/dEONW > > Looking fort these screensI don't understand what you explanation. LCLWidgetType??? Look at screen "ide_build_modes_screen.jpg" You have the IDE macro values part. click on the (none) box (left hand side), a list shouls appear, select "LCLWidgetType" On the right hand side, onto the same line, select wince thats it In the list of active build modes you can add another build mode (win32 for instance) and, when selected, change all project options as desired. This time do not forget to change the LCLWidgetType accordingly Do not forget either that all project options are different from one build mode to another. > > Cheers > > Ricardo > > ----- Original Message ----- > From: Antonio Fortuny > Sent: 03/13/13 05:55 AM > To: > Subject: Re: [Lazarus] Error on first compilation of a legacy WinCe project > > I think Felipe is right: project options --> build modes check the one with Wince as target depending on IDE version (I use 1.1) click on IDE macro values and change LCLWidgetType to WinCE or on the build mode tab change LCLWidgetType to WinCE Le 13/03/2013 02:04, "Ar?? Ricardo Ody" a ??crit : > Hi! > > See the link: > > http://www.adrive.com/public/GrfVrs/lazarus_project_options_as_you_ask_for.zip > > It contains the snapshots you ask for. > > Thanks in advance > > Ricardo > ----- Original Message ----- > From: Mattias Gaertner > Sent: 03/12/13 03:11 PM > To: > Subject: Re: [Lazarus] Error on first compilation of a legacy WinCe project > > On Tue, 12 Mar 2013 15:08:54 -0300 Felipe Monteiro de Carvalho wrote: > Send u > s a screenshot of your compiler options dialog for this project. Or simply copy and paste the content of Project / Project Options / Show Options. > You can upload it to imageshack.us and put a link to the image here. > Show the place where the target OS and architecture are shown. > > I think the widgetset is wrong, it should be wince. > > win32<something> files are utilized only by win32, never by wince widgetset. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- _________ > ______________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130313/5fdb7491/attachment.html>

Reply by email