lixunguang / qt-msvc-installer

Automatically exported from code.google.com/p/qt-msvc-installer
0 stars 0 forks source link

Does not work with QtCreator #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It works fine with MSVC as expected, but not Creator because of some
hardcoded paths that do not exist on my machine.

What steps will reproduce the problem?
1. Install package
2. Launch QtCreator and create a simple project
3. Build project

What do you see instead?
Starting: C:/Qt/4.5.2/bin/qmake.exe
C:/Users/daniel/Documents/CreatorTest/CreatorTest.pro -spec
E:/Build/Qt/SourceWin32/qt-win-opensource-src-4.5.2/mkspecs/win32-msvc2008 -r 
Failure to read QMAKESPEC conf file
e:/Build/Qt/SourceWin32/qt-win-opensource-src-4.5.2/mkspecs/win32-msvc2008\qmake
.conf.
Error processing project file:
C:/Users/daniel/Documents/CreatorTest/CreatorTest.pro
Exited with code 3.
Error while building project CreatorTest
When executing build step 'QMake'

Please provide any additional information below.
There is no 'e' drive on my machine (vista). Where is this coming from?

Original issue reported on code.google.com by deepblue...@googlemail.com on 16 Aug 2009 at 4:00

GoogleCodeExporter commented 9 years ago
Try launching Qt creator from the Qt command prompt. I think the issue is the 
environment variables and PATH are not set properly. 

That is why there is a shortcut to launch Visual Studio 2008 with proper 
environment 
variables set. QtCreater as a IDE probably needs some similar setup.

Original comment by gaber...@gmail.com on 24 Aug 2009 at 1:02

GoogleCodeExporter commented 9 years ago
I have exactly the same issue, but since I use msvc 10 x64 I don't really expect
anything to work. It didn't work from the qt-prompt either, btw. 

Original comment by frel8...@gmail.com on 27 Sep 2009 at 5:18

GoogleCodeExporter commented 9 years ago
When MSVC 2010 comes out, I'll take a look to see about compatibility or 
creating a 
separate build for it. Thanks for the report.

Original comment by gaber...@gmail.com on 28 Sep 2009 at 7:08

GoogleCodeExporter commented 9 years ago
I have the same issue with the reference to drive E:.  Running Qt Creator from 
the Qt 
command prompt doesn't work either.

Failure to read QMAKESPEC conf file 
e:/Build/Qt/SourceWin32/qt-win-opensource-src-
4.5.2/mkspecs/win32-msvc2008\qmake.conf.

Original comment by robert.c...@gmail.com on 13 Oct 2009 at 9:24

GoogleCodeExporter commented 9 years ago
Alright, for 4.5.3 I'll try building in the default install path C:\Qt\4.5.3

Apparently I can't get Qt to redirect from it's build path in every 
circumstance.

Original comment by gaber...@gmail.com on 13 Oct 2009 at 4:14

GoogleCodeExporter commented 9 years ago
I figured out how to "fix" this problem.
But it requires QT Creator beta (when i am writing, current is 1.2.92 called 
also 
1.3.0-beta).
Install it (without mingw), run it, open any example and try to compile it.
You should see something like this:

---
Running build steps for project puzzle...
Starting: c:/qt/4.5.2/bin/qmake.exe C:/Qt/4.5.2/examples/draganddrop/puzzle/
puzzle.pro -spec 
E:/Build/Qt/SourceWin32/qt-win-opensource-src-4.5.2/mkspecs/win32-
msvc2008 -r 
Failure to read QMAKESPEC conf file e:/Build/Qt/SourceWin32/qt-win-opensource-
src-4.5.2/mkspecs/win32-msvc2008\qmake.conf.
Error processing project file: 
C:/Qt/4.5.2/examples/draganddrop/puzzle/puzzle.pro
Exited with code 3.
Error while building project puzzle
When executing build step 'QMake'
---

On left panel (where are Welcome, Edit, Debug, Projects, Help, Output buttons) 
click 
Projects.
In "Build Steps" section, at QMake, click "Show Details" and in "Additional 
arguments" put:
-spec C:/Qt/4.5.2/mkspecs/win32-msvc2008

Line above adjust to your environment of course.

Happy compiling!

Btw. These hardcoded paths are rally bad idea. Nice to see them fixed soon :)

Original comment by pkrawie...@gmail.com on 15 Oct 2009 at 4:38

GoogleCodeExporter commented 9 years ago
Alright. Thanks for the great info.

I agree the hard-coded paths are a bad idea. But they are Qt's idea :) The best 
I can
do is make the build directory == the "suggested" install directory and try as 
many
other tricks as possible to allow for custom install locations.

But that's the plan for the 4.5.3 build anyway.

Original comment by gaber...@gmail.com on 15 Oct 2009 at 4:47

GoogleCodeExporter commented 9 years ago
SO when will be the next version ??

Original comment by sira...@gmail.com on 21 Dec 2009 at 9:12

GoogleCodeExporter commented 9 years ago
Fair question. I'll give it a go this Christmas season!

Original comment by gaber...@gmail.com on 22 Dec 2009 at 3:06

GoogleCodeExporter commented 9 years ago
If you need any help - say - will help beacuse i reading this
http://www.formortals.com/build-qt-static-small-microsoft-intel-gcc-compiler
and mscv has the best perfomance. Please :)

Have a nice chriistmas and a happy new year :) 

Original comment by sira...@gmail.com on 22 Dec 2009 at 5:37

GoogleCodeExporter commented 9 years ago
I seem to have successfully updated the build to be based in the default 
install 
directory. I think this will take care of the problem if you install to the 
default 
install directory. I will have a build ready to test later today. I also 
updated it to 
build the Postgres and MySQL db plugins where I can (Postgres is win32 only).

I'll will just upload the builds one at a time as they finish, so why don't you 
let me 
know if it works!

Original comment by gaber...@gmail.com on 22 Dec 2009 at 5:46

GoogleCodeExporter commented 9 years ago
@siranen If you get a chance, try the new build:

http://code.google.com/p/qt-msvc-installer/downloads/detail?name=qt-win32-openso
urce-
4.5.3-vs2008.exe

I'm be adding the builds for each platform as they finish (not a very fast 
process when 
compiling on my XP virtual machine).

Original comment by gaber...@gmail.com on 23 Dec 2009 at 2:54

GoogleCodeExporter commented 9 years ago
I have some difficulties with using SQLite in my project ?? A lot of text to 
put 
here but it has something to do with the QSQL things - will look after xmas - 
thx 

Original comment by sira...@gmail.com on 23 Dec 2009 at 7:30

GoogleCodeExporter commented 9 years ago
I did some testing and it seems the 4.5.3 build works with Qt Creator. Please 
create 
new tickets for new issues.

Original comment by gaber...@gmail.com on 25 Dec 2009 at 5:16

GoogleCodeExporter commented 9 years ago
This looks like a a really good solution. I didn't realize it could be 
addressed so simply. I'll definitely try this out when I get home. Thiago | <a 
href='http://www.allnallconstruction.com/services.html' 
>http://www.allnallconstruction.com/services.html</a>

Original comment by thiagoda...@gmail.com on 7 May 2014 at 3:04