Recent

Author Topic: created execute file on xbuntu but failed run on ubuntu(unity)  (Read 2188 times)

teriyaki

  • New Member
  • *
  • Posts: 19
I have built an execute file on Xbuntu as 'app1' using Lazarus.
I hope to test on ubuntu(unity)
Thus I copy the 'app1' from Xbuntu to Ubuntu unity and call

chmod +x app1
./app1

it reported

segmentation fault(core dumped)

just wonder if I need to build the project on ubuntu(unity)?


Your comment werlcome


fredbrastux

  • New Member
  • *
  • Posts: 12
Re: created execute file on xbuntu but failed run on ubuntu(unity)
« Reply #1 on: April 28, 2014, 06:59:57 pm »
You need to have the Qt libraries installed on your Ubuntu or use Gtk2 crosscompiler and have them installed in your system, because Unity uses Gtk3.

zeljko

  • Hero Member
  • *****
  • Posts: 1096
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: created execute file on xbuntu but failed run on ubuntu(unity)
« Reply #2 on: April 28, 2014, 07:30:33 pm »
How do you know that he's using qt-lcl ?

fredbrastux

  • New Member
  • *
  • Posts: 12
Re: created execute file on xbuntu but failed run on ubuntu(unity)
« Reply #3 on: April 28, 2014, 07:54:15 pm »
Sorry, I'm with kubuntu in my mind, i read so quickly. But I use Ubuntu 12.04 Lts with unity and you need to install gtk2 libraries. I had the same problem when i migrated from Ubuntu 10 to 12.

zeljko

  • Hero Member
  • *****
  • Posts: 1096
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: created execute file on xbuntu but failed run on ubuntu(unity)
« Reply #4 on: April 29, 2014, 08:14:32 am »
Yes, that could be problem. He is probably missing gtk2 libs on his system.