Sign in Join

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

Mailing lists / lazarus / 2013-03

Doubts about target platform selection

2 messages · 2 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've used Lazarus 0.9.30 for 2 years to compile e execute a WinCE arm application. I been used the Project|Project Options|Code generation to control the target platform destination for generate the executable program.

In the next week I installed Lazarus 1.0.6. I pretend to migrate my old 0.9.30 project to this new Lazarus/FPC version.

After some noise mr. Antonio Fortuny show me that I must select Project|Project options|Compiler options|Build Mode and in the IDE Macro values select LCLWidgetType in Macroname and wince in macro value. My project compiles and ran successfully.

I have some doubts that I would like to solved.

1. How is the configuration for use Lazarus to generate Win32 applications? In what dialogs I must do alterations and for which values?
2. In this case how I select between WinCE and Win32 applications?
3. Which is now the function of Code Generation dialog and how I use it in the new version of Lazarus?
4. Which is the relationship between build mode and Code generation?

Thanks in advance

Greetings from S?o Paulo - Brazil

Ricardo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130314/5652fcb1/attachment.html>

Reply by email

Mattias Gaertner
to Arí Ricardo Ody
Show quoted text 5 lines
I've used Lazarus 0.9.30 for 2 years to compile e execute a WinCE arm application. I been used the Project|Project Options|Code generation to control the target platform destination for generate the executable program. In the next week I installed Lazarus 1.0.6. I pretend to migrate my old 0.9.30 project to this new Lazarus/FPC version. After some noise mr. Antonio Fortuny show me that I must select Project|Project options|Compiler options|Build Mode and in the IDE Macro values select LCLWidgetType in Macroname and wince in macro value. My project compiles and ran successfully.

When you set the "Target OS" to "wince" the LCLWidgetType default is "wince". Normally it is enough to install the wince flavor of fpc and change in Lazarus the "Target OS".

I have some doubts that I would like to solved. 1. How is the configuration for use Lazarus to generate Win32 applications? In what dialogs I must do alterations and for which values?

If you installed the Win32 Lazarus IDE, then the default is to create Win32 applications. Simply remove the "LCLWidgetType" macro override from your project options.

2. In this case how I select between WinCE and Win32 applications?

You can create two build modes. One with the Target OS "wince" and one with Target OS empty or "win32". Then you can quickly switch between both modes.

3. Which is now the function of Code Generation dialog and how I use it in the new version of Lazarus?

The "Code Generation / Target Platform" function has not changed.

4. Which is the relationship between build mode and Code generation?

Each build mode has its own set of compiler options, which includes the code generation settings.

Mattias

Reply by email