Page 2 of 2

Building on Windows

Posted: Mon Jan 20, 2014 9:43 pm
by Robert Scheffler
Hello gentlemen,

Hate to drag this back up, but for us "newbies" it is a stumbling block:

The Wiki for building QLC+ on windows has a MinGW link to the new graphical installer, getting me a very new MinGW, not 4.4.

Question: was the Qt 4.8.5 vs 5.2.0 resolved? Or is 4.8.5 the answer.
Question: if using Qt Libs 4.8.5, is QtCreator 3.0.0 ok?
Question: was MinGW 4.4 vs newer version resolved?
Question: gcc 4.8.1 vs 4.6.x resolved?

Massimo,
Seems the last comment here from you was you would check the Wiki and verify the updated process for us windows guys.
I gather that you are not a windows fan (to put it mildly)... Any chance you could help update the "how-to for dummies" so guys like me can get started?

If there is another thread with the new procedure, happy to receive a link to it!

Any help is most appreciated,

Bob

Building on Windows

Posted: Mon Jan 20, 2014 9:48 pm
by Robert Scheffler
A footnote:
My desire is to develop/debug using the QtCreator IDE.

Bob

Building on Windows

Posted: Mon Jan 20, 2014 9:55 pm
by Massimo Callegari
Hello Bob. Building on Windows is definitely not for newbies. Sorry.
Not actually my fault, but a thousand issues arise when trying to compile open source softwares with an open source compiler (mingw) in a non-open source platform.
To put it mildly, I think Microsoft does its best to keep open source away from windows. You might succeed, but they make your life very hard.

The answers of your questions are above except for one: you can use Qt Creator with any Qt version.
Unfortunately there is nothing I can do about binaries incompatibility. Qt 4.8.x was built with GCC 4.4, so it's already a miracle it works with GCC 4.6.
You can use GCC 4.8.x with Qt 5.x.

Unless.....you want to build Qt 4.8.5 from sources with GCC 4.8 yourself. Good luck with that ! :)
I haven't updated the wiki cause Qt 4.8.5 is good enough for windows at the moment. Building on Qt 5 is even more difficult and I don't recommend it to anyone.

By the way, may I ask why you want to build QLC+ on Windows ? If you're not happy please report what you found.
If you want to contribute, I strongly recommend to work on Linux.

Building on Windows

Posted: Mon Jan 20, 2014 10:04 pm
by Massimo Callegari
Now my footnote :)
I'm quite sure that if you use Visual Studio your life will be much easier.
There are prebuilt version of Qt to be used with VS.

I didn't support the idea since the beginning, as I didn't want to fall into the Microsoft trap of using their development suite.
I knew I had to spit blood to use MinGW, but in the end I made it :)

Building on Windows

Posted: Mon Jan 20, 2014 10:17 pm
by Robert Scheffler
Massimo,

I am hoping that like most development environments, this is just a matter of getting it setup. Once past that, I could get to working on code, and not spending too much time working the 'environment'. Fortunately, I don't need to work on other projects, so I don't really care about what MinGW version, or Qt version is used.

I use QLC+ is a theater environment, not really DJ use. My brain works like a theater lighting guy, so there are several things I would like to contribute in that regard.

I have played with every DMX software package I can find, well about 8 of them, including Venue Magic. QLC+ is 99%+ of what I have always wanted. Just want a few things to be more the way my brain thinks. I would like to contribute all of that back to the group.

There are several 'querky' things in operation that could be a Windows thing. Since I operate in a Windows environment, my belief is that I should develop in a Windows environment.

I have ample supply of Windows machines due to my day jobs, so to have a 'one off' machine just for this would be a pain.

As for bugs and issues besides the 'querky' ones above, I will let you smarter guys fix those as I run into them. I do have a list, but building the active repository before I complain about bugs is my intention.

Now in a twist of fate, one church where I installed 48 dimmers plus 18 RGB pars, and 4 moving heads, is running QLC+ on a iMAC. They use ArtNet output to one of my boards.

I am a QLC+ and GitHub newbie, but not a software development newbie...
(btw, no interest in building Qt from sources! I will beg for mercy before I try that!)

Just wanted to ask about the versions before I take the plunge. Didn't want you to come back later and say "why didn't you ask?" I'll go ahead and muddle through it.

Thanks for the advice.

Bob

Building on Windows

Posted: Mon Jan 20, 2014 10:21 pm
by Robert Scheffler
So Visual Studio is an interesting point...

My embedded ARM development environment sits on Visual Studio 10.
Visual C++ uses Visual Studio (of course, supporting your 'boxed in' feelings).

I just didn't want to go off the reservation and it seemed like the MinGW was the way.

as a fun aside, my ARM dev environment uses gcc under Visual Studio as the cross-compiler.

Bob

Re: Building on Windows

Posted: Wed Jan 06, 2016 3:55 pm
by boxy
As it's nearly the anniversary of the last post on this thread I'd like to add a bit :D :

Been trying to build QLC on Qt5 and spent a day on it on Windoze. Lack of a qlcconfig.h lead me here...

Then I read this: "Building on Qt 5 is even more difficult and I don't recommend it to anyone." :(

I am therefore giving up completely since this machine is also riddled with Visual Studio (getting into C++ and QT) and they interfere. Sticking with Linux then... :)

I never will figure out what

error: D8021 : invalid numeric argument '/Werror'

meant. :?

Re: Building on Windows

Posted: Wed Jan 06, 2016 4:33 pm
by plugz
I had no trouble at all following this guide: https://github.com/mcallegari/qlcplus/w ... -Build-Qt5

This "hides" all you need to compile QLC+ in an msys2 environment, so having Qt5 and VS installed should not cause issues.