Discussion:
[Interest] Nmake has error U1038:internal error, When building project in Qt Creator.
rcyboom
2012-04-26 10:58:57 UTC
Permalink
Hi,
I have a very troubled problem:
In my Qt Creator,The Nmake sometimes would reported  error “U 1038” when I building a project.
It occurs  using moc.exe create the *.moc files.
The Qt Creator's complie output window like:
~~~
~~~
moc.exe -I"..."~~~~ -I"Qt\include" -FoRelease @**.moc
nmake return -1,U1038:internal error
~~~

I can confirm that the **.moc file does not exist in the "myprodir\Release\",
but when I input the command "moc.exe -I"..."~~~~ -I"Qt\include" -FoRelease @**.moc" in Qt  Command Prompt,it can be create succeeded.
build the project continue ,it has error again,but it's another cpp file.
The problem is not always occuring, sometimes it does not appear for another project.but for this project,it is always.
If I use mingw and qtlib_for_mingw,it is never occuring.
Why?

Qt Creator 2.4.1 + Qt lib  4.8.1 for vs2010 + vc2010 express SP1
or
Qt Creator 2.4.1 + Qt lib  4.8.1 for mingw+ MinGW/MSYS
Konstantin Tokarev
2012-04-26 11:10:36 UTC
Permalink
Post by rcyboom
Hi,
In my Qt Creator,The Nmake sometimes would reported  error “U 1038” when I building a project.
It occurs  using moc.exe create the *.moc files.
~~~
~~~
nmake return -1,U1038:internal error
~~~
I can confirm that the **.moc file does not exist in the "myprodir\Release\",
build the project continue ,it has error again,but it's another cpp file.
The problem is not always occuring, sometimes it does not appear for another project.but for this project,it is always.
Seems like this is an error in nmake's parser. Your command is OK (you run it in cmd.exe), but nmake fail to parse this line to run it.
Post by rcyboom
If I use mingw and qtlib_for_mingw,it is never occuring.
Why?
This combination uses GNU make instead of nmake.
--
Regards,
Konstantin
rcyboom
2012-04-26 15:07:49 UTC
Permalink
Yes,I know that mingw32-make can do it success.
But I want to know why the Nmake has error?
I has tried use qmake to createing a vs project,but it's failed.
eg:
qmake -tp vc
or
qmake -tp vc -r
How I can  solving it?Because on windows,the VS Compiler is faster than mingw.
And In my laptop computer(Win7 64bit home),that's all normally.
The problem defective is desktop computer(win xp sp3,32bit).
Has anybody  coming across this problem?
 Hi,
 In my Qt Creator,The Nmake sometimes would reported  error “U 1038” when I building a project.
 It occurs  using moc.exe create the *.moc files.
 ~~~
 ~~~
 nmake return -1,U1038:internal error
 ~~~
 I can confirm that the **.moc file does not exist in the "myprodir\Release\",
 build the project continue ,it has error again,but it's another cpp file.
 The problem is not always occuring, sometimes it does not appear for another project.but for this project,it is always.
Seems like this is an error in nmake's parser. Your command is OK (you run it in cmd.exe), but nmake fail to parse this line to run it.
 If I use mingw and qtlib_for_mingw,it is never occuring.
 Why?
This combination uses GNU make instead of nmake.
-- 
Regards,
Konstantin
Jason H
2012-04-26 15:35:22 UTC
Permalink
Determine what the command line should really be.


moc.exe -I"..."~~~~ -I"Qt\include" -FoRelease @**.moc
I have no idea what ~~~~ is.
What does @** evaluate to?



________________________________
From: rcyboom <***@163.com>
To: Konstantin Tokarev <***@yandex.ru>
Cc: "***@qt-project.org" <***@qt-project.org>
Sent: Thursday, April 26, 2012 11:07 AM
Subject: Re: [Interest] Nmake has error U1038:internal error, When building project in Qt Creator.

Yes,I know that mingw32-make can do it success.
But I want to know why the Nmake has error?
I has tried use qmake to createing a vs project,but it's failed.
eg:
qmake -tp vc
or
qmake -tp vc -r
How I can  solving it?Because on windows,the VS Compiler is faster than mingw.
And In my laptop computer(Win7 64bit home),that's all normally.
The problem defective is desktop computer(win xp sp3,32bit).
Has anybody  coming across this problem?
 Hi,
 In my Qt Creator,The Nmake sometimes would reported  error “U 1038” when I building a project.
 It occurs  using moc.exe create the *.moc files.
 ~~~
 ~~~
 nmake return -1,U1038:internal error
 ~~~
 I can confirm that the **.moc file does not exist in the "myprodir\Release\",
 build the project continue ,it has error again,but it's another cpp file.
 The problem is not always occuring, sometimes it does not appear for another project.but for this project,it is always.
Seems like this is an error in nmake's parser. Your command is OK (you run it in cmd.exe), but nmake fail to parse this line to run it.
 If I use mingw and qtlib_for_mingw,it is never occuring.
 Why?
This combination uses GNU make instead of nmake.
-- 
Regards,
Konstantin
Loading...