- Posts: 47
MinGW DeviationTX build environment
- adabman
-
- Offline


Deviation

Please Log in or Create an account to join the conversation.
- RugWarrior
-
Topic Author
- Offline
- Posts: 59
sorry for the problems!
I will upload it also to Cloudzer

Please Log in or Create an account to join the conversation.
- sllewji
-
- Offline
- Posts: 40
Although I can run the emu from within the MinGW shell window, When I try to run from Windows Explorer I get an error dialog saying "The Program can't start because libgcc_s_dw2-1.dll is missing from your computer"
Any ideas what I need to do to overcome this issue?
Thanks,
Ian
Please Log in or Create an account to join the conversation.
- FDR
-
- Offline
libgcc_s_dw2-1.dll
libportaudio-2.dll
libstdc++-6.dll
Please Log in or Create an account to join the conversation.
- sllewji
-
- Offline
- Posts: 40
That works perfectly.
I'm just interested - can you tell me what is different in how the release / nightly build of the emu is made as the pre-built emu doesn't issue this error.
Is it related to post #4857 where rbe2012 reported he had to add linker options?
(and if so could you point me in the direction of where I might need to add them?)
Thanks
Ian
Please Log in or Create an account to join the conversation.
- FDR
-
- Offline
I guess the release compilation embeds those functions into the exe of the emulator, but I don't know what switches it uses to achieve that...
Please Log in or Create an account to join the conversation.
- sllewji
-
- Offline
- Posts: 40

Please Log in or Create an account to join the conversation.
- sllewji
-
- Offline
- Posts: 40
~/deviation/src/target/common_emu/Makefile.inc :-
-LFLAGS = -lfltk
+LFLAGS = -lfltk -static-libgcc -static-libstdc++
I also needed to add libportaudio-2.dll into the ~/deviation/src folder.
In the MinGW shell, I then I used:-
make TARGET=emu_devo7e WINDOWS=1 zip
Edit: I ended up taking FDR's advice and removing the linker options and adding the two missing dlls to the src folder and changing the make file to add them to the emu zipfile.
Ian
Please Log in or Create an account to join the conversation.
- rbe2012
-
- Offline
- So much to do, so little time...
- Posts: 1433
I actually use the original Makefile.inc and have no error messages. I don't remember what was the point to get rid of them, but they are history.
I confess I always start the emulator via MinGW and did never have those issues since then.
But I recommend not to change the linker flags - for the emulator this might do no harm, but the resulting .exe is different when you include different libraries. Don't do that when you want to build dfu files.
Please Log in or Create an account to join the conversation.
- sllewji
-
- Offline
- Posts: 40
Point noted - thanks.
I have a couple of workarounds, so it's no big issue really but, if possible, I would like to understand why we are seeing this difference between our home-built exes and the release ones.
I have tried building MinGW environments using the methods in this thread as well as in the "Development on Windows" article.
Both emu exe files have the same issue when run directly from the Windows explorer - I wonder whether these MinGW environments are subtly different from the one(s) used to build the release and nightly versions?
Ian
Please Log in or Create an account to join the conversation.
- PhracturedBlue
-
- Offline
- Posts: 4402
I never build in MingW, which is why occasionally bugs creep in there.
When I build the Windows exe files, I do it using a cross-compiler on linux. This is why I do not need the static libstdc++ or libgcc dlls.
I'll look into updating the Makefile to work both in MingW without needing those as well (without breaking my cross-compile build)
Please Log in or Create an account to join the conversation.
- sllewji
-
- Offline
- Posts: 40
Thanks for the explanation - this is really not a big issue - and I wouldn't want you to waste time on something so minor.
Ian
Please Log in or Create an account to join the conversation.
- MatCat
-
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- rbe2012
-
- Offline
- So much to do, so little time...
- Posts: 1433
Please Log in or Create an account to join the conversation.
- MatCat
-
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- MatCat
-
- Offline
- Posts: 168
Please Log in or Create an account to join the conversation.
- gdenton
-
- Offline
- Posts: 71
I set up a MinGW DeviationTX build environment on a Windows 7 machine exactly as described on PB's BitBucket page, I can successfully build for individual TX's but when I try "make release clean" I get the following error:
target/common/emu/fltk.cpp:28:19: fatal error: FL/Fl.H: No such file or directory
#include <FL/Fl.H>
^
compilation terminated.
I see that directory\file exists at 'C:\MinGW\msys\1.0\home\Owner\src\fltk-1.3.0\' but I can't figure out how to make the compiler look there, any help would be appreciated.
Please Log in or Create an account to join the conversation.
- richardclli
-
- Offline
- Posts: 199
Please Log in or Create an account to join the conversation.
- gdenton
-
- Offline
- Posts: 71
richardclli wrote: you need to download, build and install fltk first.
I did - as I said I followed PB's instructions exactly per his BitBucket page.
Please Log in or Create an account to join the conversation.
- Cereal_Killer
-
- Offline
Running win 8 (in the vista-like desktop) 64b
started out downloading MinGW and TourtoiseHg, got those installed. Cloned the official repo and just for s'&g's tried to make and I got "Error 1 and Error 2"
A few minutes of research here and I found I needed something else called fltk. I followed PB's link to get that, I typed the next commend in his how-to " Untar fltk: tar -xzf c/users/dan/downloads" (yes that's there the file I just downloaded is lol) and I get "sh: Untar:command not found"
Again I am a total noob at this so please answer in the most simple terms possible what I need to do next. I assume I havent actually gotten that last file (fltk or whatever that is) installed and that's why it's an unknown command.
Also note I opened MinGW DeviationTX home and I notice a few libraries have red X's next to them, is this a related issue or something else I haven't ran into yet?
Thanks!
Dan
Taranis X9E | DEVO 10 | Devo U7E | Taranis Q7
What I do in real life: rivergoequestrian.com/
Please Log in or Create an account to join the conversation.
-
Home
-
Forum
-
Development
-
Development
- MinGW DeviationTX build environment