How to install QCA for Qt Creator 5 on a Win7 32bit system
-
Hi and thanks,
no I don't have Visual Studio. Do I need it? -
It depends on which version of Qt you are using. Which package did you install ?
-
Where can I find that Information? I just downloaded the community-license version. In Qt Creator->Help->About it says:
Qt Creator 3.3.0
Based on Qt 5.4.0 (MSVC 2010 32 bit)
Built on Dec 08.2014 at 15:24:21
Revision d36c4d87dbIs that what you wanted to know?
-
In part, the other is: which package exactly did you install ? There are severals available (the name of the file will be enough)
-
You mean the filename of the Qt installer? Sorry but I don't have that file anymore. I just took the suggested. When I download it again it suggests qt-opensource-windows-x86-online.exe so I guess that's the right one.
-
So it's the online installer, then, in your Qt installation you should have a folder name Qt_something for the version you installed, can you tell me what the name looks like ?
-
Uhm unfortunatley I decided to call it just "Qt" during the installation process :/
Inside that folder there are some folders called- 5.3
- 5.4
- Docs
- Examples
- Extas
- Licenses
- temp
- Tools
- vcredist
There are also some files:
- components.xml
- InstallationLog.txt
- MaintenanceTool.dat
- MaintenanceTool.exe
- MaintenanceTool.ini
- network.xml
- qt-project.org.html
- README.txt
- update.rcc
-
I can reinstall Qt if that helps.
-
You should be able to get the information from the Maintenance tool
-
Ok, I found Qt ver. 1.0.8 with Qt 5.4 ver. 5.4.0-1 and Qt 5.3 ver. 5.3.2
-
MSVC ? MinGW ?
-
Oh sorry I missed to open that stuff :/
- Qt 5.4 MinGW 4.9.1 (32 bit) OpenGL ver. 5.4.0-1, Qt WebEngine ver. 5.4.0-1
- Qt 5.3 MinGW 4.8.2 (32 bit) ver. 5.3.2-0
- Tools: MinGW 4.8.2 ver. 4.8.2, MinGW 4.9.1 ver. 4.9.1-2
- Qt Extras Qt Canvas and QtWebView (doesn't matter at this point I guess)
No MSVC selected.
-
No problem, then when calling cmake you should set the generator to "MinGW Makefiles"
-
Ok. make -G "MinGW Makefiles" c:\qca_2-1-0\ says
CMake Error: Error: generator : MinGW Makefiles
Does not match the generator used previously: NMake Makefiles Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.Should I remove the suggested file?
-
Yes, you can empty the folder you used
-
But this is the cmake folder c:\cmake.
Do I only have to delete that file or can i specify a folder and how? -
Don't call cmake from there.
Call it either in a build folder inside QCA's sources or at the same level as the sources
-
Ok I copied cmake into the qca folder and it said
C:\qca_2-1-0>cmake -G "MinGW Makefiles" c:\qca_2-1-0\
C:\qca_2-1-0>cmake -G "MinGW Makefiles" c:\qca_2-1-0
CMake Error: Could not create named generator "MinGW CMake Error: The current CMakeCache.txt directory C:/qca_2-1-0/CMakeCache.txt is different than the directory c:/cmake/bin where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure,
reedit the CMakeCache.txtThen I copied QCA into a folder inside of the cmake folder and it says
C:\cmake\bin>cmake -G "MinGW MakeFiles" c:\cmake\bin\qca
CMake Error: Could not create named generator MinGW MakeFiles -
Don't fiddle with these folders like that
@
cd C:\qca_2-1-0
mkdir build
cd build
C:\cmake\bin\cmake .. -G "MinGW Makefiles"
@And it should start setting things up.
-
I still get the error
CMake Error: Could not create named generator MinGW MakeFiles