Recent

Author Topic: Lazurus vs CodeTyphoon for cross-compiling GUI applications?  (Read 1238 times)

Peter H

  • New member
  • *
  • Posts: 17
Re: Lazurus vs CodeTyphoon for cross-compiling GUI applications?
« Reply #15 on: May 15, 2019, 06:30:46 pm »
There is no problem I know of. It doesnt interfere with other FPC/Lazarus installations.

It behaves like a portable software or like an installation made with fpcupdeluxe.
On windows Installation of directx is required.

The big IDE compiles only on a 64 bit OS.
In a 32 bit OS only the small IDE is compiled. But after this you can compile the medium sized IDE on a 32 bit OS.
« Last Edit: May 15, 2019, 06:33:23 pm by Peter H »

Wysardry

  • New member
  • *
  • Posts: 7
Re: Lazurus vs CodeTyphoon for cross-compiling GUI applications?
« Reply #16 on: May 15, 2019, 07:16:15 pm »
Thanks. I'll most likely start learning with fccupdeluxe and Lazarus for Windows 10 applications using LCL and possibly install CodeTyphoon later if I have issues with compiling for different platforms.

We're moving house soon, so progress will likely be slow as I won't have as much free time as I would like.

Zoran

  • Hero Member
  • *****
  • Posts: 1357
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Lazurus vs CodeTyphoon for cross-compiling GUI applications?
« Reply #17 on: May 15, 2019, 09:29:14 pm »
I think that cross compilation is often overvalued.

You should be able to test all targets to which you want to distribute your application. You wouldn't offer untested binaries, would you?

And for proper testing, you need to install all OS-s which your application targets (on either real or virtual machine).
Then, when you have another OS installed anyway, isn't it better to install the IDE there and compile your application there natively?

Having said that, I'm not saying that you might not need it sometimes after all -- there are targets where Lazarus IDE cannot be installed, so development must be done on another OS, but if the IDE can be installed, better avoid cross compiling.

So, think well if you really need it -- (apart from 32-bit to 64-bit on Windows, which is a simple setup on plain Lazarus distribution), cross-compiling between main OS-s (Linux, Windows, OSX) is hardly ever needed.

ASBzone

  • Full Member
  • ***
  • Posts: 225
  • Automation leads to relaxation...
    • BrainWaveCC Utilities
Re: Lazurus vs CodeTyphoon for cross-compiling GUI applications?
« Reply #18 on: May 15, 2019, 09:31:10 pm »
Thanks. I'll most likely start learning with fccupdeluxe and Lazarus for Windows 10 applications using LCL and possibly install CodeTyphoon later if I have issues with compiling for different platforms.

I started using FPCupDeluxe regularly just a few months back, and it has been awesome to manage.   I'm only building for Windows x86 & x64 targets, but the cross compiling is pretty easy nonetheless.


We're moving house soon, so progress will likely be slow as I won't have as much free time as I would like.

All the best with that.  :)   

Lots of work there.

-ASB: https://www.BrainWaveCC.com

Lazarus v2.0.3 r61159 / FPC v3.2.0-beta-r42011 (via FpcUpDeluxe) -- Windows 64-bit install w/32-bit cross-compile
Primary System: Windows 10 Pro x64, Version 1809 (Build 17763.379)
Other Systems: Windows 10 Pro x64, Version 1803 or greater

VTwin

  • Hero Member
  • *****
  • Posts: 655
  • Former Turbo Pascal 3 user
Re: Lazurus vs CodeTyphoon for cross-compiling GUI applications?
« Reply #19 on: May 16, 2019, 02:42:56 am »
I agree with Zoran, at least in my experience. While the interface code is perhaps 98% cross platform on Win, Lin, and Mac, there are little differences that should be checked. Sometimes just control placements that may be messed up because of differences in native control sizes. I've also found Windows to throw math exceptions that Mac does not.

On a side note, I know a developer who uses Xojo (aka REALbasic), and releases Linux cross-compiled binaries without any testing at all. In my mind, that is irresponsible.

In terms of getting started, just download the latest stable Windows version. Installation is straightforward, no hiccups, it works great out of the box. Don't worry about  FPCupDeluxe or CT. After you get some time in, you can look further into cross-platform options.
“Talk is cheap. Show me the code.” -Linus Torvalds

macOS 10.11.6: Lazarus 2.1.0 svn 61174M (64 bit Cocoa trunk)
Ubuntu 18.04.2: Lazarus 2.0.0 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.0.0 (64 bit on VBox)

Wysardry

  • New member
  • *
  • Posts: 7
Re: Lazurus vs CodeTyphoon for cross-compiling GUI applications?
« Reply #20 on: May 16, 2019, 03:31:51 am »
Mostly, compiling for other platforms would be for the benefit of others who might wish to use the finished program. The majority of those people aren't likely to want to compile the source code themselves, but some might be willing to test new releases of executable files.

I do have a ten year old laptop with Windows 7 on that I could put Linux on instead at some point, but it's fairly slow so it would likely be quicker to cross-compile on the faster Windows 10 machine.

I also have a Kindle Fire tablet, although I'd need to research how to install non-Amazon apps on that.

Unless I see a cheap Mac for sale at the right time I probably won't be able to test for that platform myself.

Zoran

  • Hero Member
  • *****
  • Posts: 1357
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Lazurus vs CodeTyphoon for cross-compiling GUI applications?
« Reply #21 on: May 16, 2019, 08:44:58 am »
Unless I see a cheap Mac for sale at the right time I probably won't be able to test for that platform myself.

And of course, you won't make and distribute cross-compiled binaries for Mac.

VTwin

  • Hero Member
  • *****
  • Posts: 655
  • Former Turbo Pascal 3 user
Re: Lazurus vs CodeTyphoon for cross-compiling GUI applications?
« Reply #22 on: May 16, 2019, 04:15:45 pm »
I do have a ten year old laptop with Windows 7 on that I could put Linux on instead at some point, but it's fairly slow so it would likely be quicker to cross-compile on the faster Windows 10 machine.

I suggest installing VirtualBox on the Windows 10 machine with Ubuntu. 
“Talk is cheap. Show me the code.” -Linus Torvalds

macOS 10.11.6: Lazarus 2.1.0 svn 61174M (64 bit Cocoa trunk)
Ubuntu 18.04.2: Lazarus 2.0.0 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.0.0 (64 bit on VBox)

MacWomble

  • New member
  • *
  • Posts: 34
Re: Lazurus vs CodeTyphoon for cross-compiling GUI applications?
« Reply #23 on: May 16, 2019, 04:29:10 pm »
Quote
Does anyone know if it is possible to install both Lazarus and CodeTyphoon on Windows 10 together without them clashing?

Yes, it's possible. But CT uses renamed Project files and some libraries are also renamed (I like their name schema)

There are tools to convert projects between Lazarus and CT.
Mint 18.3 Cinnamon, Codetyphon 6.4 64Bit

Handoko

  • Hero Member
  • *****
  • Posts: 3024
  • My goal: build my own game engine using Lazarus
Re: Lazurus vs CodeTyphoon for cross-compiling GUI applications?
« Reply #24 on: May 16, 2019, 04:34:38 pm »
I do have a ten year old laptop with Windows 7 on that I could put Linux on instead at some point, but it's fairly slow so it would likely be quicker to cross-compile on the faster Windows 10 machine.

I suggest installing VirtualBox on the Windows 10 machine with Ubuntu. 

For medium low end computer, I suggest to use Ubuntu Mate. It's more lightweight than Ubuntu and Kubuntu.

Xubuntu and Lubuntu look a bit old, but they are even more lightweight than Ubuntu Mate.

wp

  • Hero Member
  • *****
  • Posts: 5653
Re: Lazurus vs CodeTyphoon for cross-compiling GUI applications?
« Reply #25 on: May 16, 2019, 04:34:48 pm »
I do have a ten year old laptop with Windows 7 on that I could put Linux on instead at some point, but it's fairly slow so it would likely be quicker to cross-compile on the faster Windows 10 machine.
You'll still have to test your Linux version, compilation is only half of the story. I also have a 10 year old notebook which was ok with Windows 7 but too slow for and not fully supported by Win 10. I installed a light-weight Linux (Mint Xfce), and now it is fully usable again, much faster than the many virtual machines that I have on my main PC.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

Wysardry

  • New member
  • *
  • Posts: 7
Re: Lazurus vs CodeTyphoon for cross-compiling GUI applications?
« Reply #26 on: May 16, 2019, 05:10:46 pm »
I'm not looking forward to choosing a Linux distribution to install, but realistically that will be months away anyway. I'll most likely look into what software I'd like to install and which flavours they support first.

Performance shouldn't really be an issue - even for an older machine - as the programs I have in mind wouldn't be much more complex than something like Thingamablog or ADRIFT.