[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bindings
Subject:    Re: [Kde-bindings] building qyoto on Windows
From:       Dimitar Dobrev <dpldobrev () yahoo ! com>
Date:       2012-02-14 16:19:33
Message-ID: 1329236373.21519.YahooMailNeo () web125904 ! mail ! ne1 ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


While it's not the greatest news that QtTest fails, it isn't essential at all. No \
other Qt lib depends on it and .NET unit testing is performed using other tools (like \
NUnit) anyway. Good luck onwards.



________________________________
 From: Peter Amstutz <peter.amstutz@tseboston.com>
To: Kde-bindings@kde.org 
Sent: Tuesday, February 14, 2012 6:05 PM
Subject: [Kde-bindings] building qyoto on Windows
 
Hello all,

I am trying to build Qyoto on Windows.  I understand that this is working for some \
people, but the process isn't quite flawless.  Here are my experiences so far:

Doing a 32 bit build with Visual Studio 2008 on Windows 7 (x64).  I am using Qt 2.7.4 \
on the assumption that it would be better supported than Qt 2.8.0 which was only \
released last week.  I built Qt myself from the open source release.

Building Smokegen went smoothly.  I had to set CMAKE_INSTALL_PREFIX manually in order \
to install smokegen to a target directory.

Building SmokeQt has been more difficult.  The first problem I had was in having it \
find Smoke; this was resolved by installing smoke to a separate directory.  It turns \
out you cannot build SmokeQt against the Smoke build tree; only the installed tree.

The second problem was the following error:

Entering E:/Development/smokeqt/qtcore
CMake Error at qtcore/QtGuess.txt:139 (list):
list sub-command REMOVE_ITEM requires two or more arguments.
Call Stack (most recent call first):
qtcore/CMakeLists.txt:14 (include)

The error at qtcore/QtGuess.txt:139 is this:
  list(REMOVE_ITEM test_targets ${qtdefines_output})
this can be fixed:
  list(REMOVE_ITEM test_targets "${qtdefines_output}")

This produces an empty string instead of no string.

This underlying problem is that ${qtdefines_output} is empty.  This variable is empty \
because the qtdefine test program produces no output.  It produces no output because \
there are no printf() lines are present in qtdefine.cpp. There are no printf() lines \
because ${qtheaders} is expected to contain #define lines, but does not.  It does not \
contain any #define lines because ${QT_QTCORE_INCLUDE_DIR}/qglobal.h simply #includes \
"../../src/corelib/global/qglobal.h" rather than being the "real" qglobal file which \
the current code expects to find.  Confused yet?

I'm not sure if qtdefine actually affects anything, as the script then proceeds to \
test directly for #defines for the features it cares about.  I think this part of the \
build script could use some attention from someone who knows more about what it is \
going on.

Finally I am able to run the configuration step without any fatal errors, and \
generate correct solution files.  Everything builds except smokeqttest with the \
following error.  Is smokeqttest an essential project?

1>------ Build started: Project: smokeqttest, Configuration: Release Win32 ------
1>Linking...
1>   Creating library E:\Development\smokeqt\build\qttest\Release\smokeqttest.lib and \
object E:\Development\smokeqt\build\qttest\Release\smokeqttest.exp 1>x_1.obj : error \
LNK2019: unresolved external symbol "public: static struct QMetaObject const \
QTestEventLoop::staticMetaObject" \
(?staticMetaObject@QTestEventLoop@@2UQMetaObject@@B) referenced in function "public: \
static class QString __cdecl QTestEventLoop::tr(char const *,char const *)" \
(?tr@QTestEventLoop@@SA?AVQString@@PBD0@Z) \
1>E:\Development\smokeqt\build\qttest\Release\smokeqttest.dll : fatal error LNK1120: \
1 unresolved externals 1>Build log was saved at \
"file://e:\Development\smokeqt\build\qttest\smokeqttest.dir\Release\BuildLog.htm" \
1>smokeqttest - 2 error(s), 0 warning(s)

Assuming smokeqttest is not essential, my next step will be to try to build qyoto.

-- Peter Amstutz
Senior Software Engineer
Technology Solutions Experts
Natick, MA
02131

_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings


[Attachment #5 (text/html)]

<html><body><div style="color:#000; background-color:#fff; font-family:times new \
roman, new york, times, serif;font-size:12pt"><div><span>While it's not the greatest \
news that QtTest fails, it isn't essential at all. No other Qt lib depends on it and \
.NET unit testing is performed using other tools (like NUnit) \
anyway.</span></div><div><span>Good luck onwards.<br></span></div><div><br></div>  \
<div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> \
<div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> \
<div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span \
style="font-weight:bold;">From:</span></b> Peter Amstutz \
&lt;peter.amstutz@tseboston.com&gt;<br> <b><span style="font-weight: \
bold;">To:</span></b> Kde-bindings@kde.org <br> <b><span style="font-weight: \
bold;">Sent:</span></b> Tuesday, February 14, 2012 6:05 PM<br> <b><span \
style="font-weight: bold;">Subject:</span></b>  [Kde-bindings] building qyoto on \
Windows<br> </font> </div> <br> Hello all,<br><br>I am trying to build Qyoto on \
Windows.&nbsp; I understand that this is working for some people, but the process \
isn't quite flawless.&nbsp; Here are my experiences so far:<br><br>Doing a 32 bit \
build with Visual Studio 2008 on Windows 7 (x64).&nbsp; I am using Qt 2.7.4 on the \
assumption that it would be better supported than Qt 2.8.0 which was only released \
last week.&nbsp; I built Qt myself from the open source release.<br><br>Building \
Smokegen went smoothly.&nbsp; I had to set CMAKE_INSTALL_PREFIX manually in order to \
install smokegen to a target directory.<br><br>Building SmokeQt has been more \
difficult.&nbsp; The first problem I had was in having it find Smoke; this was \
resolved by installing smoke to a separate directory.&nbsp; It turns out you cannot \
build SmokeQt against the Smoke build tree; only the installed tree.<br><br>The \
second problem was the following error:<br><br>Entering \
E:/Development/smokeqt/qtcore<br>CMake Error at  qtcore/QtGuess.txt:139 \
(list):<br>list sub-command REMOVE_ITEM requires two or more arguments.<br>Call Stack \
(most recent call first):<br>qtcore/CMakeLists.txt:14 (include)<br><br>The error at \
qtcore/QtGuess.txt:139 is this:<br>&nbsp; list(REMOVE_ITEM test_targets \
${qtdefines_output})<br>this can be fixed:<br>&nbsp; list(REMOVE_ITEM test_targets \
"${qtdefines_output}")<br><br>This produces an empty string instead of no \
string.<br><br>This underlying problem is that ${qtdefines_output} is empty.&nbsp; \
This variable is empty because the qtdefine test program produces no output.&nbsp; It \
produces no output because there are no printf() lines are present in qtdefine.cpp. \
There are no printf() lines because ${qtheaders} is expected to contain #define \
lines, but does not.&nbsp; It does not contain any #define lines because \
${QT_QTCORE_INCLUDE_DIR}/qglobal.h simply #includes \
"../../src/corelib/global/qglobal.h" rather than being the "real" qglobal file which  \
the current code expects to find.&nbsp; Confused yet?<br><br>I'm not sure if qtdefine \
actually affects anything, as the script then proceeds to test directly for #defines \
for the features it cares about.&nbsp; I think this part of the build script could \
use some attention from someone who knows more about what it is going \
on.<br><br>Finally I am able to run the configuration step without any fatal errors, \
and generate correct solution files.&nbsp; Everything builds except smokeqttest with \
the following error.&nbsp; Is smokeqttest an essential project?<br><br>1&gt;------ \
Build started: Project: smokeqttest, Configuration: Release Win32 \
------<br>1&gt;Linking...<br>1&gt;&nbsp;  Creating library \
E:\Development\smokeqt\build\qttest\Release\smokeqttest.lib and object \
E:\Development\smokeqt\build\qttest\Release\smokeqttest.exp<br>1&gt;x_1.obj : error \
LNK2019: unresolved external symbol "public: static struct QMetaObject const \
QTestEventLoop::staticMetaObject"  \
(?staticMetaObject@QTestEventLoop@@2UQMetaObject@@B) referenced in function "public: \
static class QString __cdecl QTestEventLoop::tr(char const *,char const *)" \
(?tr@QTestEventLoop@@SA?AVQString@@PBD0@Z)<br>1&gt;E:\Development\smokeqt\build\qttest\Release\smokeqttest.dll \
: fatal error LNK1120: 1 unresolved externals<br>1&gt;Build log was saved at \
"file://e:\Development\smokeqt\build\qttest\smokeqttest.dir\Release\BuildLog.htm"<br>1&gt;smokeqttest \
- 2 error(s), 0 warning(s)<br><br>Assuming smokeqttest is not essential, my next step \
will be to try to build qyoto.<br><br>-- Peter Amstutz<br>Senior Software \
Engineer<br>Technology Solutions Experts<br>Natick, \
MA<br>02131<br><br>_______________________________________________<br>Kde-bindings \
mailing list<br><a ymailto="mailto:Kde-bindings@kde.org" \
href="mailto:Kde-bindings@kde.org">Kde-bindings@kde.org</a><br><a \
href="https://mail.kde.org/mailman/listinfo/kde-bindings"  \
target="_blank">https://mail.kde.org/mailman/listinfo/kde-bindings</a><br><br><br> \
</div> </div>  </div></body></html>



_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic