User forums > General (but related to Code::Blocks)

Has anybody gotten Qt5 to work with Code::Blocks on Windows?

<< < (2/2)

stahta01:
Did you include the QtWidgets folder in the search path as I needed to do to get MinGW GCC to compile?

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Tim S.

onesteplower:
(Big edit, slimmed down the post but it has the same stuff)

Roger that, but I'm zeroing in on the problem.  It seems to have been a compound issue.  After reinstalling Qt, I get a message that libgmp-32.dll isn't on my system when I try to compile from commandline.  It's not in D:\minigw32\bin as it should be, but it IS in D:\bin.  I've got both in the path and PATH environmental variables for good measure, with no luck.  The system doesn't see it in the folder D:\bin.

update:

I happened upon this: http://mingw-users.1079350.n2.nabble.com/Question-libgmp-10-dll-not-found-td7443661.html

Now, it's weird that I didn't see this before when I tried the command line.  I wonder if the previous Qt install messed with mingw somehow.

The installer on the mingw page I linked above (the one that behaves like a Linux package manager) installed two sets of mingw folders: one set with all the files on the root directory, and another set missing almost everything in the actual mingw32 folder.  The latter one has the cc1plus.exe that was being invoked, which lacked all the DLLs.  I consolidated the folders, and copied the required DLLs.

Now I'm back to this:

fatal error: Qt5Gui: No such file or directory
#include <Qt5Gui>

compilation terminated.

The same thing I was getting before ><  And I thought I had made progress.

I didn't want to implicitly blame Code::Blocks, but I'm all out of ideas and steam.  So, I'll repost with the format the wiki describes.

scarphin:
Are you actually trying to compile Qt or use it? Using Qt with CB is possible but you'll also run into the 'QT_OBJECT' problem after you manage. It has a solution though.

Anyway my qt installations (self compiled 4.8.4 and the official 4.7.3 installer) both lack 'QtBase' and 'activeqtversion.h'. Can you pls direct me to the actual locations of these files so I may be of help.

stahta01:

--- Quote from: scarphin on September 22, 2013, 11:36:09 am ---Anyway my qt installations (self compiled 4.8.4 and the official 4.7.3 installer) both lack 'QtBase' and 'activeqtversion.h'. Can you pls direct me to the actual locations of these files so I may be of help.


--- End quote ---

In the two copies of 5.1.1 I installed the file activeqtversion.h in these paths.


--- Code: ---5.1.1\mingw48_32\include\ActiveQt

--- End code ---


--- Code: ---5.1.1\msvc2010_opengl\include\ActiveQt

--- End code ---

I found no file called "QtBase" in the two installations; I did find files like this one "qtbase_uk.qm" under this folder "translations".

Build command; it fails to run but it does compile and link. I am using "C:\Apps\Qt\Qt5.1.1msvc" as the base install folder location.

--- Code: ---cl.exe /nologo     /IC:\Apps\Qt\Qt5.1.1msvc\5.1.1\msvc2010_opengl\include /IC:\Apps\Qt\Qt5.1.1msvc\5.1.1\msvc2010_opengl\include\QtGui /IC:\Apps\Qt\Qt5.1.1msvc\5.1.1\msvc2010_opengl\include\QtWidgets /IC:\Apps\Qt\Qt5.1.1msvc\5.1.1\msvc2010_opengl\bin /I"C:\Program Files\Microsoft SDKs\Windows\v6.0A\include" /I"C:\Program Files\Microsoft Visual Studio 10.0\VC\include" /c main.cpp /Foobj\Release\main.obj
main.cpp
link.exe /nologo /LIBPATH:C:\Apps\Qt\Qt5.1.1msvc\5.1.1\msvc2010_opengl\lib /LIBPATH:"C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib" /LIBPATH:"C:\Program Files\Microsoft Visual Studio 10.0\VC\lib" /out:bin\Release\testqt5msvc.exe Qt5Core.lib Qt5Gui.lib Qt5Widgets.lib obj\Release\main.obj  
Output file is bin\Release\testqt5msvc.exe with size 32.50 KB

--- End code ---

FYI: I wasted enough time on helping the OP out; so, I am back to doing other things in my free time.


--- Quote from: stahta01 on September 22, 2013, 07:30:37 am ---Did you include the QtWidgets folder in the search path as I needed to do to get MinGW GCC to compile?

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Tim S.

--- End quote ---
Edit: added quote to the request.

The OP seems to be ignoring the post build log request of mine a few posts back without it it is nearly impossible to help, anyway.

Tim S.

Navigation

[0] Message Index

[*] Previous page

Go to full version