Recent

Author Topic: Code compiles and runs, but creates invalid app file  (Read 3460 times)

Sternkucker

  • New member
  • *
  • Posts: 8
Code compiles and runs, but creates invalid app file
« on: June 11, 2015, 03:32:55 pm »
Dear all,

I have created a little program in Lazarus which compiles and runs nicely on Windows. Just one form and some math calculations.
Now a friend likes to run it on his Mac. He can open and compile, and the program actually works. However, there is an error message after compile, and no app file is being created. Any idea what's happening there?

Screenshot:
http://abload.de/img/screenshot4flyzt.png

Thanks! Michael

Josh

  • Hero Member
  • *****
  • Posts: 1271
Re: Code compiles and runs, but creates invalid app file
« Reply #1 on: June 11, 2015, 04:25:55 pm »
Under Project Options have you set Use Application bundle for running and debugging, and also clicked the create application bundle.?
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

Sternkucker

  • New member
  • *
  • Posts: 8
Re: Code compiles and runs, but creates invalid app file
« Reply #2 on: June 11, 2015, 05:16:14 pm »
Yes. It creates the same non-working empty .app

Sternkucker

  • New member
  • *
  • Posts: 8
Re: Code compiles and runs, but creates invalid app file
« Reply #3 on: June 12, 2015, 07:44:26 am »
Might I ask anyone with a Mac to try to compile? The files are here: http://www.jaekle.info/Code.zip (40KB). Then we might decide whether it's a problem on a specific Mac installation, or a general Mac problem. Thanks for your help!

esvignolo

  • Full Member
  • ***
  • Posts: 159
  • Using FPC in Windows, Linux, Macos
Re: Code compiles and runs, but creates invalid app file
« Reply #4 on: June 12, 2015, 01:39:29 pm »
Hi, i tested and run ok, and generate a correct binary.
U must check u app bundle.

http://wiki.lazarus.freepascal.org/Application_Bundle


Sternkucker

  • New member
  • *
  • Posts: 8
Re: Code compiles and runs, but creates invalid app file
« Reply #5 on: June 12, 2015, 03:02:05 pm »
Thanks esvignolo! Then i will tell my friend to get his Lazarus installation corrected.
I tried it on Linux (Ubuntu VM) and it runs nicely as well. So it must certainly be his installation.

I just see that in your screenshot some things seem to be missing. Does it never show a bright yellow sun in the lower left part?

 

TinyPortal © 2005-2018