Saturday, July 5th 2008, 4:50am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

yoniekai

Beginner

Posts: 22

Location: Philippines

1

Monday, January 28th 2008, 12:02pm

Problem linking qt4.3.3 open source with visual studio 2005

hello. i am new to Qt and i've downloaded the open source win32-mingw binary. i installed both Qt and mingw, ran the command prompt, ran the following commands, configure and make . i have problems regarding compiling tho, for example i made a c++ code and ran
qmake -project and its successful, but then when i type make i get warning errors. in visual studio i have included the libraries and command lines too in its options, but it still has link errors. anybody know why the makefile tool can't be detected? also nmake?
  • Go to the top of the page

macabre13

Trainee

Posts: 127

Location: Poland/ Wroclaw

Occupation: sw developer

2

Monday, January 28th 2008, 12:12pm

Run qtvars.bat from %qtdir%\bin, then browse into yours project directory. And then try to run make.

And if this won't help, try using 'search' in this "installing Qt" part of qt forum.

Cheers!
- ebm - noise - industrial -
I always could be wrong.
Lets share knowledge!
  • Go to the top of the page

yoniekai

Beginner

Posts: 22

Location: Philippines

3

Monday, January 28th 2008, 5:03pm

okay i'll try that thanks. :D one question that bugs me tho, what about nmake? why cant my compilation, even build, detect it? im using visual studio 2005 so it would make sense to be really curious at this... also when i try configure -platform win32-msvc its complaining it cant find nmake. is this really necessary? is it just okay to use make instead of nmake?
  • Go to the top of the page

macabre13

Trainee

Posts: 127

Location: Poland/ Wroclaw

Occupation: sw developer

4

Monday, January 28th 2008, 5:41pm

Did you already read FAQ ?
- ebm - noise - industrial -
I always could be wrong.
Lets share knowledge!
  • Go to the top of the page

yoniekai

Beginner

Posts: 22

Location: Philippines

5

Monday, January 28th 2008, 5:46pm

aw, the FAQ is disorganized and i cant find the question im seeking there. im hoping you or someone could tell me about my previous query
  • Go to the top of the page

macabre13

Trainee

Posts: 127

Location: Poland/ Wroclaw

Occupation: sw developer

6

Monday, January 28th 2008, 9:19pm

1) Ok, so could you maybe paste the error?
2) If I remeber correctly open sources qt does not works with msvc.
- ebm - noise - industrial -
I always could be wrong.
Lets share knowledge!
  • Go to the top of the page

yoniekai

Beginner

Posts: 22

Location: Philippines

7

Tuesday, January 29th 2008, 1:18am

thanks for taking the time man, here is the error message when i try to configure it platform specific, configure -platform win32-msvc

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
Do you accept the terms of the license?
y
Environment:
    INCLUDE=
      Unset
    LIB=
      Unset
    PATH=
      C:\Qt\4.3.3\bin
You are licensed to use this software under the terms of the GNU GPL.
See C:/Qt/4.3.3/LICENSE.GPL

Configuration:
    minimal-config
    small-config
    medium-config
    large-config
    full-config
    build_all
    debug
Qt Configuration:
    release
    debug
    zlib
    png
    accessibility
    qt3support
    opengl
    ipv6
    minimal-config
    small-config
    medium-config
    large-config
    full-config

QMAKESPEC...................win32-msvc (commandline)
Architecture................windows
Maketool....................nmake
Debug symbols...............yes
Accessibility support.......yes
STL support.................yes
Exception support...........yes
RTTI support................yes
MMX support.................no
3DNOW support...............no
SSE support.................no
SSE2 support................no
OpenGL support..............yes
Direct3D support............no
OpenSSL support.............no
QDBus support...............no
Qt3 compatibility...........yes

Third Party Libraries:
    ZLIB support............qt
    GIF support.............plugin
    TIFF support............plugin
    JPEG support............plugin
    PNG support.............qt
    MNG support.............plugin

Styles:
    Windows.................yes
    Windows XP..............no
    Windows Vista...........no
    Plastique...............yes
    Cleanlooks..............yes
    Motif...................yes
    CDE.....................yes

Sql Drivers:
    ODBC....................no
    MySQL...................no
    OCI.....................no
    PostgreSQL..............no
    TDS.....................no
    DB2.....................no
    SQLite..................plugin (qt)
    SQLite2.................no
    InterBase...............no

Sources are in..............C:\Qt\4.3.3
Build is done in............C:\Qt\4.3.3
Install prefix..............C:\Qt\4.3.3
Headers installed to........C:\Qt\4.3.3\include
Libraries installed to......C:\Qt\4.3.3\lib
Plugins installed to........C:\Qt\4.3.3\plugins
Binaries installed to.......C:\Qt\4.3.3\bin
Docs installed to...........C:\Qt\4.3.3\doc
Data installed to...........C:\Qt\4.3.3
Translations installed to...C:\Qt\4.3.3\translations
Examples installed to.......C:\Qt\4.3.3\examples
Demos installed to..........C:\Qt\4.3.3\demos

Creating qmake...
execute: File or path is not found (nmake)
execute: File or path is not found (nmake)
Cleaning qmake failed, return code -1
  • Go to the top of the page

macabre13

Trainee

Posts: 127

Location: Poland/ Wroclaw

Occupation: sw developer

8

Tuesday, January 29th 2008, 7:38am

1) Like I said Qt in open version support mingw linker. Add path to it that and should be fine. Or simply ran qtvars.bat from qt\bin.

2)

Quoted

execute: File or path is not found (nmake)
execute: File or path is not found (nmake)

Do you have a path to your nmake.exe ?
Paste also yours set from command line. And try reading this threads
a) Qt4 with Visual Studio 2005 link error
b) problem building qt4 library for win32-g++
c) QT 4.3.3, WXP, not working

ps.
Wow I pasted urls, and links are displayed as thread names. Nice!
- ebm - noise - industrial -
I always could be wrong.
Lets share knowledge!
  • Go to the top of the page

stinos

Intermediate

9

Tuesday, January 29th 2008, 8:04am

call to admin: make a sticky with links to all threads about installing Qt to avoid the same question being asked over and over again :]
madinsjamania
  • Go to the top of the page

yoniekai

Beginner

Posts: 22

Location: Philippines

10

Tuesday, January 29th 2008, 1:16pm

no its not the environment variables at all, nmake just doesnt exist in qt-opensource-mingw. this really bugged me so i scoured this forum and i read one post that since the open source version doesnt support msvc, it only supports mingw, it uses mingw32-make rather than nmake. is this true? if it is, then that answers a lot of questions i have right now.....
  • Go to the top of the page

stinos

Intermediate

11

Wednesday, January 30th 2008, 11:49am

latest opensource does support msvc compiler 2003 and 2005
madinsjamania
  • Go to the top of the page

yoniekai

Beginner

Posts: 22

Location: Philippines

12

Wednesday, January 30th 2008, 4:56pm

but the opensource version only works with mingw, right? msvc is not officially supported in the open source version so nmake is not available
  • Go to the top of the page

CrackedMind

Beginner

Posts: 34

Location: Russia

Occupation: just programmer

13

Thursday, January 31st 2008, 6:23am

nmake included in vcpp. you must run Visual Studio Command Promt
So you can code punk?
  • Go to the top of the page

stinos

Intermediate

14

Thursday, January 31st 2008, 9:23am

Quoted

Originally posted by yoniekai
but the opensource version only works with mingw, right? msvc is not officially supported in the open source version so nmake is not available


msvc *is* officially supported, the support is in QTDIR\mkspecs.
nmake is Microsoft's equivalent to make. It simply is not 'available' because it has nothing to do with Qt, neither does mingw. Both are ways to get Qt compiled, that's it. And both must be downloaded seperatly.
If you want nmake and MS' compiler/linker/SDK, download Visual Studio Express2005. If you want mingw, so a make/gcc port for Windows, download it.
madinsjamania
  • Go to the top of the page

yoniekai

Beginner

Posts: 22

Location: Philippines

15

Thursday, January 31st 2008, 11:13am

ah so that's how it is... it uses the MS SDK... tell me, is there any considerable differences or advantages between using mingw or msvc?
  • Go to the top of the page

stinos

Intermediate

16

Thursday, January 31st 2008, 1:14pm

I for myself see no point in using Mingw just for Qt. Qt is cross-platform already, it's made so that you can just compile it on a platform with it's native tools, then bring the code to another platform, compile it with different tools, and the end result is the same.
Keeping that in mind, I'd say go with MS, the compiler will probably generate faster code than Mingw's gcc, you get an *excellent* visual debugger for free, and you're sure all Windows API functions behave like they should.
madinsjamania
  • Go to the top of the page

yoniekai

Beginner

Posts: 22

Location: Philippines

17

Thursday, January 31st 2008, 3:53pm

thanks man you convinced me to discard the mingw version :D instead im using visual studio now, and yeah nmake is in the visual studio command prompt

btw in Qt it sets certain environment variables... like PATH and QTDIR. i have a problem since im using magick++ and i need the path variable set to imagemagick's path.... is there a way around this? is it okay if i just append a ";" to the value?
  • Go to the top of the page

stinos

Intermediate

18

Friday, February 1st 2008, 10:07am

indeed, something like PATH=%QTDIR%/bin;%PATH% just adds QTDIR/bin before the rest of the path
madinsjamania
  • Go to the top of the page

yoniekai

Beginner

Posts: 22

Location: Philippines

19

Saturday, February 2nd 2008, 5:09am

so i got nmake running and i tried to build qt statically by configure -static and nmake sub-src. i tried building the plug and paint example that will end up with one executable but i have this error:

Source code

1
2
3
4
5
6
7
8
link /LIBPATH:"c:\Qt\4.3.3\lib" /LIBPATH:"c:\Qt\4.3.3\lib" /NOLOGO /INCR
EMENTAL:NO /NODEFAULTLIB:libc /SUBSYSTEM:windows /OUT:release\plugandpaint.exe @
C:\Users\Yonie\AppData\Local\Temp\nmB090.tmp
LINK : fatal error LNK1181: cannot open input file 'pnp_basictools.lib'
NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 8\VC\BIN\link.EXE"' : return code '0x49d'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe"' : return code '0x2'
Stop.


any idea what's causing this?

also nmake is complaining of

Source code

1
2
NMAKE : fatal error U1073: don't know how to make 'clean'
Stop.


im baffled :(

This post has been edited 2 times, last edit by "yoniekai" (Feb 2nd 2008, 5:31am)

  • Go to the top of the page

Rate this thread