Ostinato GUI doesn't run after building from source.

172 views
Skip to first unread message

Yiyang Chang

unread,
Aug 13, 2016, 11:46:45 PM8/13/16
to ostinato
Hi there,

I tried to build the latest version Ostinato from source on Ubuntu 14.04.5 LTS (64-bit trusty), but I ran into this issue when trying to launch Ostinato:

$ sudo ostinato
QWSSocket::connectToLocalFile could not connect:: Connection refused
QWSSocket::connectToLocalFile could not connect:: Connection refused
QWSSocket::connectToLocalFile could not connect:: Connection refused
QWSSocket::connectToLocalFile could not connect:: Connection refused
QWSSocket::connectToLocalFile could not connect:: Connection refused
QWSSocket::connectToLocalFile could not connect:: Connection refused
No Qt for Embedded Linux server appears to be running.
If you want to run this program as a server,
add the "-qws" command-line option.

When I ran Ostinato with -qws option, it seemed to run, but no GUI showed up.

I tried to install Ostinato by using apt-get, and the GUI worked fine. However it gives me a 0.6 version, and I would like to use the Python scripting feature.

I have built qt-4.8 for X11 from source following this link: http://doc.qt.io/qt-4.8/install-x11.html
I have built qvfb from source following this link (Not sure if this step is necessary. Please comment. Thanks.): http://doc.qt.io/qt-4.8/qvfb.html
I have tested if qvfb is working following this link (The example programs ran, but no GUI showed up.): http://doc.qt.io/qt-4.8/qt-embedded-testingframebuffer.html
I have built Ostinato from source following this link: http://devguide.ostinato.org/BuildingFromSource.html

Please help. Thanks!


Regards,
Yiyang

Srivats P

unread,
Aug 14, 2016, 2:13:15 AM8/14/16
to Yiyang Chang, ostinato
Any reason you are using Qt Embedded and not the normal Desktop Qt?

Can you describe your platform and what you are trying to accomplish
using Ostinato? That would help us to help you.

Srivats
> --
> Get Ostinato News and Updates on Twitter - Follow @ostinato
> (http://twitter.com/ostinato)
> ---
> You received this message because you are subscribed to the Google Groups
> "ostinato" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ostinato+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
http://ostinato.org/
@ostinato

Yiyang Chang

unread,
Aug 14, 2016, 1:17:25 PM8/14/16
to ostinato, chang.yiyan...@gmail.com
Hi Srivats,

Thank you for the reply. I can't find an installer for Qt4. That's why I tried to build Qt4 from source. The online/offline installers for Qt I can find are for Qt 5.x. Here http://devguide.ostinato.org/BuildingFromSource.html mentinoed Qt5.x should not be used to compile Ostinato. Do you have any suggestion that how I can get the right version of Qt on Ubuntu?

I am trying to use Ostinato on Ubuntu 14.04.5 LTS 64bit. I want to use Ostinato with Mininet as a traffic generator.


Thanks,
Yiyang

Srivats P

unread,
Aug 15, 2016, 1:24:26 AM8/15/16
to Yiyang Chang, ostinato
As mentioned on http://ostinato.org/downloads, prebuilt Ostinato
binary packages for Ubuntu 14.04 is available on OBS -
https://software.opensuse.org/download.html?project=home:pstavirs:ostinato&package=ostinato

Srivats

On Sun, Aug 14, 2016 at 10:47 PM, Yiyang Chang

Yiyang Chang

unread,
Aug 15, 2016, 10:09:52 AM8/15/16
to ostinato, chang.yiyan...@gmail.com
Hi Srivats,

Thanks for the pointer! Got the 0.8 version now. I guess you may want to highlight this in the downloads instructions. I did apt-get on Ubuntu 14.04 earlier and got an older version. I didn't realize I need to add the repository manually.

Thanks a lot for the help!

Best,
Yiyang

Srivats P

unread,
Aug 16, 2016, 11:33:07 AM8/16/16
to Yiyang Chang, ostinato
Yiyang,

The Ubuntu section in the downloads page has the following line -

<snip>
Ostinato is available in the universe repository for Ubuntu 13.10 and later -
$ sudo apt-get install ostinato

For older Ubuntu releases (or if the native package in the distro is
an older version), use the OBS Packages
</snip>

I guess that isn't clear? Would it be clearer if I rewrote the above as -

<snip>
Ostinato is available in the universe repository for Ubuntu 13.10 and later -
$ sudo apt-get install ostinato

If you get an old version of Ostinato using the above command (or if
you are using an older Ubuntu release), use the OBS Packages
</snip>

Srivats

On Mon, Aug 15, 2016 at 7:39 PM, Yiyang Chang

Yiyang Chang

unread,
Aug 16, 2016, 11:45:12 AM8/16/16
to ostinato, chang.yiyan...@gmail.com
Hi Srivats,

I believe the new wording would make more sense and guild the users to try out OBS packages before diving into building source.

That said, I have to admit that I didn't read carefully after I saw "for older Ubuntu releases". And that lead to two-day unsuccessful building Qt from source. :)


Thanks,
Yiyang
Reply all
Reply to author
Forward
0 new messages