Where to get the source for r422?

eepSKYe is the desktop too for flashing and managing your sky9x firmware.
Post Reply
sdavies
Posts: 100
Joined: Wed Jan 21, 2015 6:46 am
Country: Australia
Location: Adelaide SA

Where to get the source for r422?

Post by sdavies » Sat Apr 08, 2017 7:05 am

I am trying to build r422 on my Fedora system but am having trouble working out which source code to use.

I have found one download at github and one at er9x.com but neither wants to build.

The github version fails with warnings against lines 457 and 517 of the Makefile (recipe for qrc_eepskye.cpp) then error moc_GvarAdjustDialog.o: file not recognised: file truncated.

The er9x zip download now seems to only contain the .deb file which is no use on a Fedora box. (Previous versions had the .deb plus the "raw" source.)

One other attempt gave a lot of errors regarding missing image files. I've lost the names but many were of the form X???.png.

Cheers and thanks,
Stephen

User avatar
MikeB
9x Developer
Posts: 14281
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset

Re: Where to get the source for r422?

Post by MikeB » Sat Apr 08, 2017 8:36 am

The latest sources are here: https://github.com/MikeBland/mbtx.

I build on Windows using Qt 4.7.4. There may be compile problems if you are using a later version of Qt.

I just looked and some .png files I added recently are in my "ignore" list instead of having been added. I've just added them and pushed the commit to Github.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

sdavies
Posts: 100
Joined: Wed Jan 21, 2015 6:46 am
Country: Australia
Location: Adelaide SA

Re: Where to get the source for r422?

Post by sdavies » Sat Apr 08, 2017 9:55 am

I'm using Qt 4.8.7 on one box and 4.8.6 on another.
That's a big step!!

Did you add the extra PNG's to the zip download? I don't remember my github login.

User avatar
MikeB
9x Developer
Posts: 14281
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset

Re: Where to get the source for r422?

Post by MikeB » Sat Apr 08, 2017 10:27 am

If you download a .zip, then they should be included.

I do tend to work on the basis of if a development tool is working OK, then don't upgrade it. If I do upgrade it, and then something doesn't compile, it gives me extra work, and it is supposed to be a hobby!
I tried upgrading the GCC compiler for AVR processors at one time, and the resulting compiled code (for er9x) got larger and didn't fit in the M64 any more!

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

sdavies
Posts: 100
Joined: Wed Jan 21, 2015 6:46 am
Country: Australia
Location: Adelaide SA

Re: Where to get the source for r422?

Post by sdavies » Sun Apr 09, 2017 1:06 am

The extra PNG images are indeed in the zip. Thank you.
As you may recall, I have successfully built earlier versions of both eepe and eepskye so I shall persevere with 422 and let you know how I go.
Cheers,
Stephen


sdavies
Posts: 100
Joined: Wed Jan 21, 2015 6:46 am
Country: Australia
Location: Adelaide SA

Re: Where to get the source for r422?

Post by sdavies » Mon Apr 10, 2017 2:38 am

I have finally worked out that the download from er9x is just a 32-bit binary and the source comes from github.
If I install the current 32-bit Qt libraries, the 32-bit binary (r421) from er9x works well on my 64-bit F25 box.
If I build a 64-bit version of eepe 422, it also works well.
However, a 64-bit version of eepskye crashes when I select edit of a model configuration.
There are obviously some big differences between 32-bit Qt and 64-bit and/or between Qt 4.7.4 and 4.8.7.
The simplest of these is that the 32-bit version of eepskye needs a double-click to open the edit window while the 64-bit only requires a single click (eepe also).
The error message when 64-bit eepskye crashes is:
QLayout::parentWidget: A layout can only have another layout as parent.

This suggests that somewhere in the edit window, there is an attempt to assign a widget as the parent of a layout but I don't know enough about Qt to locate this.
Apparently this code is OK in your old version of Qt but not in my 4.8.7.
This problem does not happen with my 64-bit build of eepe.

Are you planning on putting up 422 binaries on er9x soon?

Cheers,
Stephen

User avatar
MikeB
9x Developer
Posts: 14281
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset

Re: Where to get the source for r422?

Post by MikeB » Mon Apr 10, 2017 9:23 am

When I build for Linux, I use LUbuntu (32-bit) in a Virtual Box with QT 5.0.2. On that, it seems to work, although I need to build from the latest sources to be certain. I'll do a build as soon as I can and check it out.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
MikeB
9x Developer
Posts: 14281
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset

Re: Where to get the source for r422?

Post by MikeB » Mon Apr 10, 2017 10:54 am

I've just built from the current sources (Linux 32-bit binary) and that works fine (Qt 5.0.2).

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

sdavies
Posts: 100
Joined: Wed Jan 21, 2015 6:46 am
Country: Australia
Location: Adelaide SA

Re: Where to get the source for r422?

Post by sdavies » Tue Apr 11, 2017 12:07 am

I'll install Qt 5 and try again.

sdavies
Posts: 100
Joined: Wed Jan 21, 2015 6:46 am
Country: Australia
Location: Adelaide SA

Re: Where to get the source for r422?

Post by sdavies » Tue Apr 11, 2017 6:43 am

This is a bit weird!
I installed Qt5 and got 5.7.1.
With this, builds of both eepe and eepskye fail with the same error:

overloaded 'abs(qreal)' is ambiguous in common/node.cpp:95:27 followed by a bunch of references to included files that have that function.

I don't understand how 5.7.1 vs 5.0.2 or 32-bit vs 64-bit can cause this error.
Can you make your latest binaries available so I can confirm that they run here.
Cheers,
Stephen

sdavies
Posts: 100
Joined: Wed Jan 21, 2015 6:46 am
Country: Australia
Location: Adelaide SA

Re: Where to get the source for r422?

Post by sdavies » Tue Apr 11, 2017 7:39 am

Some progress:-))
The error above is apparently due to some differences in the various C++ libraries about the place.
The ambiguity can be resolved by changing the references to abs() in node.cpp to std::abs().
The next minor issue is that the zip from github includes a 32-bit version of file.o in the eepe src directory.
This needs to be deleted before a 64-bit build will work.
After those changes, both eepe and eepskye compile and eepe seems to work properly though with a startup warning
"libpng warning:iCCP: known incorrect sRGB profile".
(eepskye gives this warning too. Apparently, it means that one of the PNG images used is non-standard. This doesn't seem to do any harm.)
However, eepskye still crashes with the error about non-layout parent when Edit is selected. This time, it gives the error twice before crashing.

sdavies
Posts: 100
Joined: Wed Jan 21, 2015 6:46 am
Country: Australia
Location: Adelaide SA

Re: Where to get the source for r422?

Post by sdavies » Tue Apr 11, 2017 7:53 am

Did a google on the PNG warning and found that:

for q in *.png; do convert $q -strip $q

in the images directory fixes whichever PNG was "bad".

(convert is part of ImageMagik)

sdavies
Posts: 100
Joined: Wed Jan 21, 2015 6:46 am
Country: Australia
Location: Adelaide SA

Re: Where to get the source for r422?

Post by sdavies » Tue Apr 11, 2017 7:54 am

for q in *.png; do convert $q -strip $q; done

User avatar
MikeB
9x Developer
Posts: 14281
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset

Re: Where to get the source for r422?

Post by MikeB » Tue Apr 11, 2017 12:29 pm

Sometime I may get a chance to install a 64-bit linux in a virtual box and get Qt in there as well to see what might be happening, but this all takes time to do.

I just downloaded a .zip from Github and there was no file.o in it. There may have been one some time ago, but it doesn't seem to be there now (may have been in the next branch.

Mike.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

Post Reply

Return to “eepSKYe”

Who is online

Users browsing this forum: No registered users and 1 guest