Recent

Author Topic: Unable to run app within IDE  (Read 2677 times)

swedishchef

  • Newbie
  • Posts: 1
Unable to run app within IDE
« on: April 02, 2014, 09:00:53 am »
Hiya to all...

Got a curious problem with my Lazarus 1.2 install running under Mavericks.

I am able to design/code my forms without any probe, but when I try to run the form via the IDE, the form is displayed but I am unable to interact with the form.

However, I am able to run the program outside of Lazarus

Any thoughts ?

Thanks in advance

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Unable to run app within IDE
« Reply #1 on: April 02, 2014, 04:26:18 pm »
What GDB version are you using?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9911
  • Debugger - SynEdit - and more
    • wiki
Re: Unable to run app within IDE
« Reply #2 on: April 02, 2014, 04:56:30 pm »
IIRC, there was/is an issue with some versions of gdb internally resolving symbolic links.
(There should be a post about this on the forum)

If that happens, you get the described effect.

Lazarus creates an App-Bundle. Inside the app bundle, where the exe is expected, it places a symbolic link, to the actial exe, which is placed outside the app bundle (not sure why).

Code: [Select]
YourProjectDir/project1.app/Contents/MacOS/project1  << symbolic link
YourProjectDir/project1  << real exe file

If GDB  resolves that link, then the exe is executed *outside* the app bundle. And that gives exactly the effect you describe.

Possible solutions:
- Find a GDB that behaves (I am not sure which one, or if there is)
- Specify the name and location where the compiler creates the exe (see "project options" > "Path"), and get rid of the link

 

TinyPortal © 2005-2018