Recent

Author Topic: running Lazarus under Wine  (Read 9477 times)

garydale

  • New Member
  • *
  • Posts: 17
running Lazarus under Wine
« on: July 22, 2011, 11:26:39 pm »
I was contemplating using Firebird for an application and wanted to ensure it would work with the embedded version available for Windows. I installed Lazarus on Wine v1.3.x on an AMD64 version of Debian/Wheezy. It starts OK but my application raises an External: SIGSEGV exception when I try to run it. This seems to be after the compile completes successfully.

The application (not using Firebird in it yet) runs under Linux and in a WinXP virtual machine so I'm guessing it's probably something about launching an application under Wine.

I'd prefer to use Wine for this as will produce a more portable application (e.g. should run on Linux using Wine) and it's a better development environment (no Windows XP window hogging screen space).

Any ideas on how to get the application to run within Lazarus?

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3541
Re: running Lazarus under Wine
« Reply #1 on: July 24, 2011, 07:35:08 pm »
Lazarus applications are all cross-distribution (the same executable generated with Lazarus works in any distribution) ... providing a wine app instead of a native Linux Lazarus app has no advantage as far as I know.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: running Lazarus under Wine
« Reply #2 on: July 25, 2011, 07:48:48 am »
However, it might be a bit tricky if you want to use Lazarus as an embedded database in Linux; see here http://www.firebirdfaq.org/Firebird-Embedded-Linux-HOWTO.htmlfor details. Note: I don't know how up to date this guide is and have not tried it...
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

garydale

  • New Member
  • *
  • Posts: 17
Re: running Lazarus under Wine
« Reply #3 on: July 29, 2011, 12:13:42 am »
felipemdc: The source code might be portable, but the executable is definitely OS specific - actually, in my case, the application doesn't run under Linux although it compiles OK. However, it does run under Wine and on a real Windows virtual machine. And this is with the TDbf component, not Firebird.

The problem is that the Lazarus Run command doesn't launch the executable. It gives the SIGSEGV error I mentioned. Instead I have to manually launch the executable using Wine.

The advantage of having an executable that runs under Wine is that I only need one executable for Linux and Windows. Therefore, and because my application doesn't seem to want to work directly in Linux, I'm using Wine to develop it.