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

malx

Posts

23

Joined

Thu Mar 20, 2014 4:02 pm

Building on windows machine

by malx » Thu Mar 20, 2014 4:16 pm

Hi!

I tried setting up a development environment on a new computer running windows 8.1.
I followed all instructions on the wiki (I probably should know it anyway since I done it so many times in the past :) ) and got to the point when I could start building by typing "make all" in my command prompt/sh shell.

However, I don't get past even building the uavobjects since it doesn't seem to find the qt libraries. (I have changed the path:s in the sh.cmd file to the right ones) .
Code: Select all
... mingw32/bin/ld.exe cannot find lQt5Xmld...

Any ideas what it can be? Can't remember if I had this problem in the past.
Using QT 5.2.1
Windows 8.1
Latest Taulabs from git
User avatar
User

guilhermito

Posts

155

Joined

Mon Jan 13, 2014 9:16 pm

Re: Building on windows machine

by guilhermito » Thu Mar 20, 2014 4:47 pm

How/where did you install Qt SDK?
no avatar
User

malx

Posts

23

Joined

Thu Mar 20, 2014 4:02 pm

Re: Building on windows machine

by malx » Thu Mar 20, 2014 4:57 pm

I installed QT with the online installer for windows into C:\Projects\Qt.
my sh.cmd look like:
Code: Select all
call :which MSYSGIT       "C:\Program Files (x86)\Git\bin"       git.exe
call :which QTMINGW       "C:\Projects\Qt\Tools\mingw48_32\bin" mingw32-make.exe
call :which QTSDK         "C:\Projects\Qt\5.2.1\mingw48_32\bin" qmake.exe
call :which ARMTOOLCHAIN  "C:\SysGCC\arm-eabi\bin" arm-none-eabi-gcc.exe
call :which PYTHON        "C:\Python27"                  python.exe
call :which UNSIS         "%ProgramFiles%\NSIS\Unicode"  makensis.exe
call :which OPENOCDBIN    "C:\OpenOCD\0.4.0\bin"         openocd.exe

(The last two is not installed)
User avatar
User

guilhermito

Posts

155

Joined

Mon Jan 13, 2014 9:16 pm

Re: Building on windows machine

by guilhermito » Thu Mar 20, 2014 5:13 pm

You should have installed it with "make qt_sdk_install " or at least install it on the same location make would
User avatar
User

peabody124

Posts

1339

Joined

Tue Feb 18, 2014 12:33 pm

Re: Building on windows machine

by peabody124 » Thu Mar 20, 2014 6:40 pm

Yeah - the makefile sets up your path for windows when you run from the command line. If you want to install it other than tools/Qt5.2.1 then you need to add things to your system path.
no avatar
User

malx

Posts

23

Joined

Thu Mar 20, 2014 4:02 pm

Re: Building on windows machine

by malx » Thu Mar 20, 2014 7:05 pm

hm...
Ok, thanks!
I will need to look at this a little more.
Then the wiki is not uptodate anymore, I thought setting up the sh.cmd would add those things to my system path.
no avatar
User

malx

Posts

23

Joined

Thu Mar 20, 2014 4:02 pm

Re: Building on windows machine

by malx » Sun Mar 23, 2014 12:07 pm

Sorry, the wiki was ok.
Installing QT anywhere and changing sh.cmd is ok as well.

My error was forgetting to make sure that I had fetched the upstream changes to my github fork. I thought I had done that. So I was about 3000 commits after head... (And still required QT 4.XX)

Now it works perfectly! (After installing wget and some of the other tools needed)

Really like how the support for different hardwares have improved! Way easier to find all hardware specific files now.
no avatar
User

joergrohde

Posts

51

Joined

Sun Mar 02, 2014 8:56 am

Re: Building on windows machine

by joergrohde » Sun Apr 20, 2014 1:39 pm

I´m a little bit frustrated. Setting up a new and clean Win7Pro and doing the steps Peabody descriped it doesn´t work.
the compiling starts and then I got the error I need openssl - the first thought for what?
ok, make openssl_install - no wget.
ok downloading but installing, putting where?
Modifing the sh.cmd?
Putting it in the path?
Please help.
User avatar
User

peabody124

Posts

1339

Joined

Tue Feb 18, 2014 12:33 pm

Re: Building on windows machine

by peabody124 » Sun Apr 20, 2014 5:32 pm

I always just drop wget into the base directory of the repository. You need ot make sure you get a wget that is ssl capable - maybe someone can post a link. I don't recall which one i used.
no avatar
User

joergrohde

Posts

51

Joined

Sun Mar 02, 2014 8:56 am

Re: Building on windows machine

by joergrohde » Sun Apr 20, 2014 9:34 pm

I have found it here: http://users.ugent.be/~bpuype/wget/
But it doen´t work:
    $ make openssl_install
    --2014-04-20 23:26:58-- http://slproweb.com/download/Win32OpenSSL_Light-1_0_1f.
    exe
    Resolving slproweb.com... 74.208.44.107
    Connecting to slproweb.com|74.208.44.107|:80... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2014-04-20 23:26:58 ERROR 404: Not Found.

    c:/dev/taulabs/make/tools.mk:544: recipe for target 'openssl_install' failed
    mingw32-make: *** [openssl_install] Error 1

Wouldn´t it be a good solution to put the tools needed together on a own page?
Next

Who is online

Users browsing this forum: No registered users and 1 guest

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron