FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

build error on windows

 
Post new topic   Reply to topic     Forum Index -> QtD
View previous topic :: View next topic  
Author Message
Kelvinhan



Joined: 14 Nov 2009
Posts: 1

PostPosted: Sat Nov 14, 2009 12:06 pm    Post subject: build error on windows Reply with quote

Erron on build qtd,here are my environment,

System:Windows7
DMD:1.051
Tango:Trunk,revision 5148.
QTD:At revision 324.

anyone help me,thanks!

------------------------------------------------------------------------------------
Scanning dependencies of target qtdgui
[ 94%] Creating implib qtdgui
Digital Mars Import Library Manager Version 7.6B1n
Copyright (C) Digital Mars 2000. All Rights Reserved.
Input is a Windows NT DLL file 'libcpp_gui.dll'.
Output is a Windows NT import library.
Digital Mars Import Library Creator complete.
D:/DMD/src/qtd/build_dir/build\qt\gui\QColor.d(25): Error: forward reference of
enum QColor_Spec.Invalid
D:/DMD/src/qtd/build_dir/build\qt\gui\QColor.d(25): Error: alias qt.gui.QColor.Q
Color.Invalid cannot alias an expression 0
D:/DMD/src/qtd/build_dir/build\qt\gui\QColor.d(26): Error: forward reference of
enum QColor_Spec.Rgb
D:/DMD/src/qtd/build_dir/build\qt\gui\QColor.d(26): Error: alias qt.gui.QColor.Q
Color.Rgb cannot alias an expression 0
D:/DMD/src/qtd/build_dir/build\qt\gui\QColor.d(27): Error: forward reference of
enum QColor_Spec.Hsv
D:/DMD/src/qtd/build_dir/build\qt\gui\QColor.d(27): Error: alias qt.gui.QColor.Q
Color.Hsv cannot alias an expression 0
D:/DMD/src/qtd/build_dir/build\qt\gui\QColor.d(2Cool: Error: forward reference of
enum QColor_Spec.Cmyk
D:/DMD/src/qtd/build_dir/build\qt\gui\QColor.d(2Cool: Error: alias qt.gui.QColor.Q
Color.Cmyk cannot alias an expression 0
D:/DMD/src/qtd/build_dir/build\qt\gui\QColor_aux.d(3): Error: enum QColor_Spec i
s forward referenced
D:/DMD/src/qtd/build_dir/build\qt\gui\QColor_aux.d(3): Error: enum QColor_Spec i
s forward referenced
D:/DMD/src/qtd/build_dir/build\qt\gui\QColor_aux.d(3): Error: enum QColor_Spec i
s forward referenced
D:/DMD/src/qtd/build_dir/build\qt\gui\QColor_aux.d(3): Error: enum QColor_Spec i
s forward referenced
D:/DMD/src/qtd/build_dir/build\qt\gui\QColor_aux.d(3): Error: enum QColor_Spec i
s forward referenced
D:/DMD/src/qtd/build_dir/build\qt\gui\QColor_aux.d(3): Error: enum QColor_Spec i
s forward referenced
D:/DMD/src/qtd/build_dir/build\qt\gui\QColor_aux.d(3): Error: enum QColor_Spec i
s forward referenced
mingw32-make[5]: *** [CMakeFiles/qtdgui.dir/qtdgui2.obj] Error 1
mingw32-make[4]: *** [CMakeFiles/qtdgui.dir/all] Error 2
mingw32-make[3]: *** [all] Error 2
mingw32-make[2]: *** [main] Error 2
mingw32-make[1]: *** [CMakeFiles/main.dir/all] Error 2
mingw32-make: *** [all] Error 2
Back to top
View user's profile Send private message
stanleyxu2005



Joined: 20 Jul 2009
Posts: 3

PostPosted: Fri Nov 27, 2009 7:12 am    Post subject: Reply with quote

Have you installed the correct Qt SDK and set the environment variables?

try qmake -q to see which Qt version do you use
_________________
[http://stanleyxu2005.blogspot.com/ blog: stanleyxu's area51][[br]]
[http://gosurfbrowser.com project: gosurf webbrowser]
Back to top
View user's profile Send private message
eldar



Joined: 14 Jun 2008
Posts: 101
Location: Ufa, Russia

PostPosted: Wed Dec 16, 2009 2:13 pm    Post subject: Reply with quote

That's a compiler bug. Sorry about that. It's not present in D2 version however.
Back to top
View user's profile Send private message
MichaelZ



Joined: 02 Feb 2010
Posts: 1

PostPosted: Tue Feb 09, 2010 3:52 am    Post subject: Reply with quote

[NOTE: possibly a non-issue; see Edit II at the bottom]

Has this been corrected in the D1 compiler? And if not, is there a chance that a correction will be made?
I still/again get the same error using DMD 1.056 (on linux), although some of the changelog entries for 1.054 sound vaguely promising...

EDIT:
Hmm... actually maybe it's not *exactly* the same error; qtdcore, qtdgui, qtdnetwork, qtdopengl and qtdsvg all (appear) to build succesfully; the error crops up when working on qtdwebkit:

Scanning dependencies of target qtdsvg
ESC[0m[ 96%] ESC[34mESC[1mLinking qtdsvg
ESC[0m[ 96%] Built target qtdsvg
Scanning dependencies of target qtdwebkit
ESC[0m/home/display/_c/build/qtd/framework/bld/build/qt/gui/QColor.d(25): Error: forward reference of enum QColor_Spec.Invalid
/home/display/_c/build/qtd/framework/bld/build/qt/gui/QColor.d(25): Error: alias qt.gui.QColor.QColor.Invalid cannot alias an expression 0
/home/display/_c/build/qtd/framework/bld/build/qt/gui/QColor.d(26): Error: forward reference of enum QColor_Spec.Rgb
/home/display/_c/build/qtd/framework/bld/build/qt/gui/QColor.d(26): Error: alias qt.gui.QColor.QColor.Rgb cannot alias an expression 0
/home/display/_c/build/qtd/framework/bld/build/qt/gui/QColor.d(27): Error: forward reference of enum QColor_Spec.Hsv
/home/display/_c/build/qtd/framework/bld/build/qt/gui/QColor.d(27): Error: alias qt.gui.QColor.QColor.Hsv cannot alias an expression 0
/home/display/_c/build/qtd/framework/bld/build/qt/gui/QColor.d(28): Error: forward reference of enum QColor_Spec.Cmyk
/home/display/_c/build/qtd/framework/bld/build/qt/gui/QColor.d(28): Error: alias qt.gui.QColor.QColor.Cmyk cannot alias an expression 0
make[5]: *** [CMakeFiles/qtdwebkit.dir/qtdwebkit0.o] Fehler 1
make[4]: *** [CMakeFiles/qtdwebkit.dir/all] Fehler 2
make[3]: *** [all] Fehler 2
make[2]: *** [main] Fehler 2
make[1]: *** [CMakeFiles/main.dir/all] Fehler 2
make: *** [all] Fehler 2


As such, it's probably not terribly relevant for me, since I don't think I need webkit or xml (which I think is the only thing which gets build after webkit), but it does leave an uneasy feeling :-|



EDIT II: Today we got our "official" build system and on this the build runs through without issue; it's *supposed* to be configured the same way as the machine I was working on yesterday (I actually just copied the QT, QTD and DMD directories over in the first - successful! - attempt), so there's something decidedly suspicious going on. However, since it's anything but clear where the strangeness is creeping in, I'm going to ignore it for now.
Nevertheless, if it's an issue (still?) plaguing anyone else and I can contribute some information about the non-working system, let me know. Note that it will be decommissioned within a few days though...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> QtD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group