Does anybody know how to compile a Qt project in devcpp? When I compile I get lots of messages starting with:
[Linker error] undefined reference to
How do I fix it?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Simply answer: You can't!
Even if you download a new Qt version and got all the include files, you still haven't got gcc compatible lib to link. You could go and buy Qt ( just don't ) and then get the sources. You could then try to extract the sources without starting the compilation (and deletion of the sources) automatically.
Qt for windows is designed to be used with MS VC++ and comes with full integration for Visual Studio. So far I haven't heard of anybody who was able to compile it using gcc. And even if someone would do it, it would be a pain in the ass to use. I wouldn't like the idea of invoking the moc and uic over and over again by hand, because Dev-Cpp would have no integration.
If you're looking for an alternative: Give wxWindows a try. It's free, comes as a source release and has almost the same features qt has. Believe me, I work with Qt on my job and I can tell you that for a commercial thing (on windows) it isn't good at all. That's why I stay away from it at home :)
BTW: If you try wxWindows, maybe this adress helps you when compiling and setting it up: http://www.bg.bib.de/~bbsh1akr
I set up a little tutorial there. Got a devpack there, too.
upcase
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does anybody know how to compile a Qt project in devcpp? When I compile I get lots of messages starting with:
[Linker error] undefined reference to
How do I fix it?
Simply answer: You can't!
Even if you download a new Qt version and got all the include files, you still haven't got gcc compatible lib to link. You could go and buy Qt ( just don't ) and then get the sources. You could then try to extract the sources without starting the compilation (and deletion of the sources) automatically.
Qt for windows is designed to be used with MS VC++ and comes with full integration for Visual Studio. So far I haven't heard of anybody who was able to compile it using gcc. And even if someone would do it, it would be a pain in the ass to use. I wouldn't like the idea of invoking the moc and uic over and over again by hand, because Dev-Cpp would have no integration.
If you're looking for an alternative: Give wxWindows a try. It's free, comes as a source release and has almost the same features qt has. Believe me, I work with Qt on my job and I can tell you that for a commercial thing (on windows) it isn't good at all. That's why I stay away from it at home :)
BTW: If you try wxWindows, maybe this adress helps you when compiling and setting it up:
http://www.bg.bib.de/~bbsh1akr
I set up a little tutorial there. Got a devpack there, too.
upcase