Discussion about development tools and environments, such as STLink, OpenOCD, arm-gcc, Eclipse, Qt Creator and Visual Studio.
no avatar
User

droney

Posts

20

Joined

Fri Mar 27, 2015 10:25 am

Re: Building on windows machine

by droney » Wed May 13, 2015 5:37 pm

>> Could use some help regarding building gcs on Windows. Using QT Creator (5.4), I built a release gcs binary. However, none of
>> the QT dlls are present in the bin folder, causing gcs to complain at launch. Sure, I can copy the files or put links in, but I assume I
>> am simply not running creator correctly. Ideas?

> by guilhermito » Wed May 13, 2015 9:55 am
> Use "make standalone"

that was it... thanks guilhermito!
no avatar
User

Phobos

Posts

4

Joined

Sun May 24, 2015 12:29 pm

Re: Building on windows machine

by Phobos » Sun May 31, 2015 12:48 pm

Hi,
I have a weird problem I haven't seen before. I'm compiling with eclipse luna on a win7 x64 machine, everything seems to compile fine, except when producing the .elf file I get this:

14:29:33 **** Incremental Build of configuration Default for project flight ****
make -j1 sparky
D:/DEV/PortableGit/bin/make -f Makefile.Debug
make[2]: Nothing to be done for 'first'.
- Tau Labs UAVObject Generator -
Done: processed 119 XML files and generated 119 objects with no ID collisions. Total size of the data fields is 3889 bytes.
generating flight code
LD build/fw_sparky/fw_sparky.elf
0 [main] sh 2872 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
5139 [main] sh 2872 open_stackdumpfile: Dumping stack trace to sh.exe.stackdump

D:/DEV/[workspace]/TauLabs-next/make/firmware-common.mk:21: recipe for target 'D:/DEV/[workspace]/TauLabs-next/build/fw_sparky/fw_sparky.elf' failed
make[1]: *** [D:/DEV/[workspace]/TauLabs-next/build/fw_sparky/fw_sparky.elf] Error 101120
makefile:894: recipe for target 'fw_sparky_tlfw' failed
make: *** [fw_sparky_tlfw] Error 2

14:29:36 Build Finished (took 3s.802ms)

My environment is set up like this:
eclipse luna for c/c++ x64 with cdt plugin
arm-gcc-none-eabi-4.9_2015q1 x64
git_1.9.5 (for tools like rm mkdir etc.)
qt_mingw_491_32 v5.4.1

I had to modify makefile, it couldn't handle the asterisk in this command:
ALL_BOARDS :=
include $(ROOT_DIR)/flight/targets/*/target-defs.mk
so I replaced it with:
ALL_BOARDS :=
include $(ROOT_DIR)/flight/targets/sparky/target-defs.mk

Other than that everything is intact. I'm building the latest taulabs_next branch.
Path:
D:\DEV\gcc-arm-none-eabi\bin;D:\DEV\PortableGit\bin;D:\DEV\Qt5.4.1\5.4\mingw491_32\bin;D:\DEV\Qt5.4.1\Tools\mingw491_32\bin
no avatar
User

Tao

Posts

4

Joined

Fri Dec 26, 2014 7:26 am

Re: Building on windows machine

by Tao » Tue Jun 09, 2015 5:01 pm

shred wrote:
VArcht wrote:Good to know, I have gcs compiling in qt creator but wasn't having any luck with building from the console. I had installed MinGw too, maybe I'm running into something similar.

Be good if we can update the wiki on how to setup the tool chain with concise steps.


Agreed regarding updating the wiki, I will be more than happy to help once I figured out how to build it. "make package" almost completed, but it fails for some reason building the translations:

Code: Select all
cd taulabs/translations/ && ( test -e Makefile || c:/Qt/5.3/mingw482_32/bin/qmake.exe C:/TauLabs/ground/gcs/share/taulab
s/translations/translations.pro -spec win32-g++ "CONFIG+=release " -o Makefile ) && C:/Git/cmd/make -f Makefile
C:/Git/cmd/make -f Makefile.Release
/C/Qt/5.3/mingw482_32/bin/lrelease C:/TauLabs/ground/gcs/share/taulabs/translations/taulabs_de.ts -qm taulabs_de.qm
process_begin: CreateProcess(NULL, /C/Qt/5.3/mingw482_32/bin/lrelease C:/TauLabs/ground/gcs/share/taulabs/translations/t
aulabs_de.ts -qm taulabs_de.qm, ...) failed.
make (e=2): The system cannot find the file specified.
make[6]: *** [taulabs_de.qm] Error 2
make[5]: *** [release] Error 2
make[4]: *** [sub-taulabs-translations-make_first] Error 2
make[3]: *** [sub-share-make_first-ordered] Error 2
make[2]: *** [gcs] Error 2
make[1]: *** [gcs] Error 2
make: *** [package] Error 2


Any ideas?



I'm able to compile firmwares but having this same problem when I'm trying to compile GCS in Windows. I have tried with next and brain repositories, both ended with same error:

Code: Select all
cp -r -f "D:/code/TauLabs/ground/gcs/share/taulabs/welcome" "D:/code/TauLabs/build/ground/gcs/share/taulabs/welcome"
cd taulabs/translations/ && ( test -e Makefile || d:/Qt/QT54~1.2/5.4/MINGW4~1/bin/qmake.exe D:/code/TauLabs/ground/gcs/share/taulabs/translations/translations.pro -spec win32-g++ "CONFIG+=debug " -o Makefile ) && c:/Users/Tao/bin/make -f Makefile
make[3]: Entering directory 'd:/code/TauLabs/build/ground/gcs/share/taulabs/translations'
c:/Users/Tao/bin/make -f Makefile.Debug
make[4]: Entering directory 'd:/code/TauLabs/build/ground/gcs/share/taulabs/translations'
/D/Qt/QT54~1.2/5.4/MINGW4~1/bin/lrelease D:/code/TauLabs/ground/gcs/share/taulabs/translations/taulabs_de.ts -qm taulabs_de.qm
Makefile.Debug:102: recipe for target 'taulabs_de.qm' failed
process_begin: CreateProcess(NULL, /D/Qt/QT54~1.2/5.4/MINGW4~1/bin/lrelease D:/code/TauLabs/ground/gcs/share/taulabs/translations/taulabs_de.ts -qm taulabs_de.qm, ...) failed.
make (e=2): The system cannot find the file specified.

make[4]: *** [taulabs_de.qm] Error 2
make[4]: Leaving directory 'd:/code/TauLabs/build/ground/gcs/share/taulabs/translations'
Makefile:34: recipe for target 'debug' failed
make[3]: *** [debug] Error 2
make[3]: Leaving directory 'd:/code/TauLabs/build/ground/gcs/share/taulabs/translations'
Makefile:38: recipe for target 'sub-taulabs-translations-make_first' failed
make[2]: *** [sub-taulabs-translations-make_first] Error 2
make[2]: Leaving directory 'd:/code/TauLabs/build/ground/gcs/share'
makefile:83: recipe for target 'sub-share-make_first-ordered' failed
make[1]: *** [sub-share-make_first-ordered] Error 2
make[1]: Leaving directory 'd:/code/TauLabs/build/ground/gcs'
makefile:274: recipe for target 'gcs' failed
make: *** [gcs] Error 2


Have installed following tools:
    gcc-arm-none-eabi-4_9-2015q1-20150306-win32
    qt-opensource-windows-x86-mingw491_opengl-5.4.2
    Python 2.7.3
    Git 1.8.1.2

Any ideas how to fix this issue?
no avatar
User

flea

Posts

11

Joined

Sat Jul 19, 2014 3:39 pm

Re: Building on windows machine

by flea » Wed Jun 10, 2015 7:51 am

@tao
You need to install nsis unicode into tool directory.
I downloaded it from
http://wiki.openpilot.org/download/atta ... de.tar.bz2
or http://www.scratchpaper.com/
no avatar
User

Tao

Posts

4

Joined

Fri Dec 26, 2014 7:26 am

Re: Building on windows machine

by Tao » Fri Jun 12, 2015 3:43 pm

Isn't NSIS for building installer? I'm using make gcs or make standalone. Installed NSIS, modified sh to match this .. didn't help. Same error.

But found a way how was able to compile GCS. I don't need translations, so commented out languages from ./ground/gcs/share/taulabs/translations/translations.pro file

Code: Select all
include(../../../gcs.pri)

# LANGUAGES = de es fr ru zh_CN
LANGUAGES =

# var, prepend, append
defineReplace(prependAll) {
    for(a,$$1):result += $$2$${a}$$3
no avatar
User

Laurakep

Posts

9

Joined

Tue Oct 18, 2016 8:10 pm

Location

Russia

Building on windows machine

by Laurakep » Mon Oct 24, 2016 11:29 am

As README suggests, to build unix/ you either need to have libffi developement files installed, or disable building against it.

windows/ once was supposed to be built with mingw32, but likely bitrotted since then.

___
NEW XRumer + SocPlugin: revolutional method in SEO and SMM
Previous

Who is online

Users browsing this forum: No registered users and 1 guest

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron