VM dedicated to compiling Deviation

More
29 Sep 2013 09:57 #14132 by Rand__
Replied by Rand__ on topic VM dedicated to compiling Deviation
Hey,

ok, then i did misunderstand the part about the icons - i thought i had read that those where embedded in the library but that probably where the toggle icons then; as i said the actual model icons are working:)

So if the current nightly utilizes the windescren layout too i will stay with that for now and recreate a usefull interface from scratch - or maybe i find a usable config to begin with somewhere in the forum.

Thanks a lot for your help and
@sbstnp - Yes an updated vm would be nice, preferably with an autoupdate option like yum or apt (which i believe ubuntu has) ;)

Please Log in or Create an account to join the conversation.

More
30 Sep 2013 04:03 #14149 by WheresWaldo
Replied by WheresWaldo on topic VM dedicated to compiling Deviation
Sorry if this has been asked before, but I am trying to figure out how to compile my source into an emulator file using this setup.

Please Log in or Create an account to join the conversation.

  • rbe2012
  • rbe2012's Avatar
  • Offline
  • So much to do, so little time...
More
30 Sep 2013 04:56 #14150 by rbe2012
Replied by rbe2012 on topic VM dedicated to compiling Deviation
Linux: make TARGET=emu_devoXX (XX = 10, 6, 8, 12) (creates .elf)
Windows: make TARGET=emu_devoXX WINDOWS=1 (creates .exe)

Please Log in or Create an account to join the conversation.

More
30 Sep 2013 13:30 #14169 by WheresWaldo
Replied by WheresWaldo on topic VM dedicated to compiling Deviation

rbe2012 wrote: Linux: make TARGET=emu_devoXX (XX = 10, 6, 8, 12) (creates .elf)
Windows: make TARGET=emu_devoXX WINDOWS=1 (creates .exe)


OK, figured out I needed to be in the ~/deviation/src subdirectory to issue the make command but I get the following error on compilation:
target/common_emu/sound.c:54:23: fatal error: portaudio.h: No such file or directory compilation terminated.
make: **** [objs/emu_devo10-w32/sound.o] Error 1

The header file is not in that directory, does it exist somewhere else?

Please Log in or Create an account to join the conversation.

  • rbe2012
  • rbe2012's Avatar
  • Offline
  • So much to do, so little time...
More
30 Sep 2013 17:21 #14174 by rbe2012
Replied by rbe2012 on topic VM dedicated to compiling Deviation
Look at the description PB has made some time ago: https://bitbucket.org/PhracturedBlue/deviation
You have to install portaudio if you try to compile for Windows.

Please Log in or Create an account to join the conversation.

More
30 Sep 2013 19:22 #14180 by WheresWaldo
Replied by WheresWaldo on topic VM dedicated to compiling Deviation
Thanks, somehow I had overlooked that.

Please Log in or Create an account to join the conversation.

More
01 Nov 2013 05:01 #15182 by richardclli
Replied by richardclli on topic VM dedicated to compiling Deviation
Can the VM be used to build the emulator? I am trying out the latest beta 3.1.0-beta8 and hope I can build the emulator to have a try first.

Please Log in or Create an account to join the conversation.

More
01 Nov 2013 06:30 #15185 by sbstnp
Replied by sbstnp on topic VM dedicated to compiling Deviation

richardclli wrote: Can the VM be used to build the emulator? I am trying out the latest beta 3.1.0-beta8 and hope I can build the emulator to have a try first.


Only the Linux version. I never got to work on cross compiling he emu, sorry.

Devo 10 + 4in1
Spektrum Dx9
FrSky Taranis + TBS Crossfire

Please Log in or Create an account to join the conversation.

More
01 Nov 2013 16:53 #15201 by WheresWaldo
Replied by WheresWaldo on topic VM dedicated to compiling Deviation
I have been able to build the emulator for all versions of the devo with the VM once I installed portaudio as suggested above, I do get some variable messages but it builds fine and works on my Windows 7 Ultimate. You do have to run the emulator from the VM and not from Windows Explorer.

Please Log in or Create an account to join the conversation.

More
16 Mar 2016 19:03 #44663 by linuxworks
Replied by linuxworks on topic VM dedicated to compiling Deviation
hi, new user, here.

I downloaded and installed the ova file. I'm using virtualbox (latest) on win7.

deviation self-update is failing. I'm assuming the repo is different, now?

TIA,

/bryan

Please Log in or Create an account to join the conversation.

More
16 Mar 2016 19:43 #44664 by mwm
Replied by mwm on topic VM dedicated to compiling Deviation
Yes. It's at ssh://hg@bitbucket.org/deviationTx/deviation these days. I'm not sure this VM will work, as I believe we've moved to newer version of the arm toolchain that has features that don't exist in this VM. Not sure, though.

I've got a docker container that sorta-kinda works. Well, two. See hub.docker.com/u/mwmeyer/ for them. They both have the same issue: they use the latest version of gcc-arm-embedded, which fails to build 7E firmware since the resulting binary is to big.

Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.

My remotely piloted vehicle ("drone") is a yacht.

Please Log in or Create an account to join the conversation.

More
16 Mar 2016 19:47 #44665 by linuxworks
Replied by linuxworks on topic VM dedicated to compiling Deviation
thanks for the quick reply.

my target is the 7e and so I need something that works for that. good to know that this vm is out of date, so I won't waste time on it.

what's my best solution for the 7e, then? I'm using 4.0.1 builds and I'd like to start to hack the builds myself. maybe someday even try to decode and implement a protocol. but first things first, I need a build environment.

I can do native linux admin well enough; but I figured for sanity reasons, a common VM would be the easiest for people to support. maybe that's not the case (?)

thx

/bryan

Please Log in or Create an account to join the conversation.

More
16 Mar 2016 22:02 #44673 by hexfet
Replied by hexfet on topic VM dedicated to compiling Deviation
The 7e still fits with this release for me on linux.

Please Log in or Create an account to join the conversation.

More
16 Mar 2016 23:00 #44678 by mwm
Replied by mwm on topic VM dedicated to compiling Deviation
That release is the recommended on. However, it won't run on a modern Linux kernel, like the ubuntu LTS 14.04 that docker defaults to for ubuntu. The problem is that they are SYSV binaries, where Linux has moved on to ELF. I haven't really looked into fixing this yet, so possibly I can add something to the image. Or Possibly hexfet can point you to the proper Linux distro to use (which might help me as well).

The other option is to use the cygwin version on a windows platform to build it.

Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.

My remotely piloted vehicle ("drone") is a yacht.

Please Log in or Create an account to join the conversation.

More
16 Mar 2016 23:08 #44680 by linuxworks
Replied by linuxworks on topic VM dedicated to compiling Deviation
I could offer to help build up a new working VM, if people want.

if I need to go back to an older linux distro, that's fine. I think a VM is the right thing to do, though, rather than bare metal. and of course, it lets windows people do builds.

if I can avoid windows, though (even cygwin) I'll do it. I've been doing linux work since about 1995 so I'm quite capable on the linux side of things. but I am new to ARM and the toolchain, so I might need to know what the magic versions of the various tools are, as well as some way to verify that the resultant builds are clean. once I can get the tools all setup, I'll be happy to document what I find.

on my own 7e, I removed the walkera rf module and its annoying me that I have to press OK every power-on to dismiss the error dialog ;) that's one reason I want a custom build. and if I comment out all of the walkera cyrf (?) module stuff, I may have more room left for my own playing around.

Please Log in or Create an account to join the conversation.

More
17 Mar 2016 00:03 #44685 by hexfet
Replied by hexfet on topic VM dedicated to compiling Deviation
Well I'm glad no one told me because I'm running ubuntu 15.10 (32 bit) :) The only thing I do is set the CROSS environment variable when building for the tx hardware. The linux tarball is still in my downloads dir so I think that's what I installed. Probably was still on 14.something when installed.

make48 ()
{
    make CROSS=/usr/local/gcc-arm-none-eabi-4_8-2014q3/bin/arm-none-eabi- $*
}

Please Log in or Create an account to join the conversation.

More
17 Mar 2016 08:35 #44704 by sbstnp
Replied by sbstnp on topic VM dedicated to compiling Deviation
Hi, I haven't maintained this for quite a while since nowadays it's much easier to install the toolchain. So, sorry about that.
But, if enough interest arise I will do checkup and update on the VM.

Devo 10 + 4in1
Spektrum Dx9
FrSky Taranis + TBS Crossfire

Please Log in or Create an account to join the conversation.

More
17 Mar 2016 14:58 #44716 by mwm
Replied by mwm on topic VM dedicated to compiling Deviation
Hmm. Maybe it's a 64 bit vs. 32 bit issue.

The docker container is really intended for use in things like a web app for doing builds, CI, and such like. Personally, I think it's a bit easier to use than a vm for local builds, but neither is as good as a proper local builds environment.

Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.

My remotely piloted vehicle ("drone") is a yacht.

Please Log in or Create an account to join the conversation.

More
17 Mar 2016 15:23 #44719 by linuxworks
Replied by linuxworks on topic VM dedicated to compiling Deviation
is there a HOWTO on setting up tools in a non-VM environment? I'm game to try that, too.

Please Log in or Create an account to join the conversation.

More
17 Mar 2016 18:31 #44731 by mwm
Replied by mwm on topic Flyaway due to deviation bug?
The README covers the tools you need. A lot depends on what you want to build. If it's just firmware images, it's make, python, perl and the gcc-arm-embedded/gcc-arm-none-eabi (they changed the name recently). You'll also need gcc 4.8 or better if you want to build the emulator. Clang didn't work last time I tried it if that's your system compiler. To build the windows emulator, you'll need the mingw toolchain plus windows builds of the fltk & portaudio packages.

The second docker image - deviaitonPlus - provides all the tools to build the windows emulator, a Linux emulator, and the manuals. The docker files provide the list of commands to run on ubuntu to install all the bits that needs.

Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.

My remotely piloted vehicle ("drone") is a yacht.

Please Log in or Create an account to join the conversation.

Time to create page: 0.090 seconds
Powered by Kunena Forum