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

List:       kde-bindings
Subject:    Re: [Kde-bindings] Qyoto: Linux build fixed
From:       Dimitar Dobrev <dpldobrev () yahoo ! com>
Date:       2013-01-13 12:00:49
Message-ID: 1358078449.34454.YahooMailNeo () web122402 ! mail ! ne1 ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


    

    Hi, Steven,

    Long time no see. :)
    About this error, I think there may be some bug in the Mono you use because I \
completed the related functionality months ago. I use \
CodeDomProvider.CreateEscapedIdentifier to get a valid argument name. Could you \
create a small test like this:

    new CSharpCodeProvider().CreateEscapedIdentifier("base")
    
    and see if you get "@base". You could use the Mono's Compiler as a Service.

    Regards,
    Dimitar



________________________________
 From: Steven Boswell II <ulatekh@yahoo.com>
To: KDE bindings <kde-bindings@kde.org> 
Sent: Sunday, January 13, 2013 6:31 AM
Subject: Re: [Kde-bindings] Qyoto: Linux build fixed
 

I just tried to build latest assemblygen-based Qyoto (after building and installing \
latest smokegen and smokeqt) on my Fedora Core 17 system, and got a compilation error \
while trying to build qyoto-qtcore.

The first offending line is in the assemblygen-created bin/qyoto-qtcore.cs, at line \
8316:

public static QByteArray Number(int arg1, int base = 10) {

The problem is that "base" is a reserved word, but it's being used as a variable \
name.  The usual solution is to put "@" in front of the name, but I don't know where \
assemblygen deals with this issue.


This is with latest mono (which I built today too) and Qt 4.8.4 (installed from \
Fedora Core's yum repos).

Thanks in advance for any help with this!

Steven Boswell



________________________________
 From: Dimitar Dobrev <dpldobrev@yahoo.com>
To: KDE bindings <kde-bindings@kde.org> 
Sent: Saturday, January 12, 2013 2:52 PM
Subject: [Kde-bindings] Qyoto: Linux build fixed
 

    

    The Qyoto Linux build is working again. Sorry about the delay.
    

    Regards,
    Dimitar


_______________________________________________
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"><span class="tab">&nbsp;&nbsp;&nbsp; \
<br></span><div><span class="tab">&nbsp;&nbsp;&nbsp; Hi, Steven,</span></div><div \
style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new \
york,times,serif; background-color: transparent; font-style: normal;"><br><span \
class="tab"></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; \
font-family: times new roman,new york,times,serif; background-color: transparent; \
font-style: normal;"><span class="tab">&nbsp;&nbsp;&nbsp; Long time no see. \
:)</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times \
new roman,new york,times,serif; background-color: transparent; font-style: \
normal;"><span class="tab">&nbsp;&nbsp;&nbsp; </span><span class="tab">About this \
error, I think there may be some bug in the Mono you use because I completed the \
related  functionality months ago. I use CodeDomProvider.CreateEscapedIdentifier to \
get a valid argument name. Could you create a small test like this:</span></div><div \
style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new \
york,times,serif; background-color: transparent; font-style: normal;"><span \
class="tab"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; \
font-family: times new roman,new york,times,serif; background-color: transparent; \
font-style: normal;"><span class="tab">&nbsp;&nbsp;&nbsp; new \
CSharpCodeProvider().</span><span \
class="tab">CreateEscapedIdentifier("base")</span></div><div style="color: rgb(0, 0, \
0); font-size: 16px; font-family: times new roman,new york,times,serif; \
background-color: transparent; font-style: normal;"><span \
class="tab">&nbsp;&nbsp;&nbsp; </span><br><span class="tab">&nbsp;&nbsp;&nbsp; and \
see if you get "@base". You could use the Mono's Compiler as a Service</span><span  \
class="tab"></span>.</div><div style="color: rgb(0, 0, 0); font-size: 16px; \
font-family: times new roman,new york,times,serif; background-color: transparent; \
font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; \
font-family: times new roman,new york,times,serif; background-color: transparent; \
font-style: normal;"><span class="tab">&nbsp;&nbsp;&nbsp; Regards,</span></div><div \
style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new \
york,times,serif; background-color: transparent; font-style: normal;"><span \
class="tab">&nbsp;&nbsp;&nbsp; Dimitar</span><span \
class="tab"><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> Steven \
Boswell II  &lt;ulatekh@yahoo.com&gt;<br> <b><span style="font-weight: \
bold;">To:</span></b> KDE bindings &lt;kde-bindings@kde.org&gt; <br> <b><span \
style="font-weight: bold;">Sent:</span></b> Sunday, January 13, 2013 6:31 AM<br> \
<b><span style="font-weight: bold;">Subject:</span></b> Re: [Kde-bindings] Qyoto: \
Linux build fixed<br> </font> </div> <br> <div id="yiv837971232"><div><div \
style="color:#000;background-color:#fff;font-family:times new roman, new york, times, \
serif;font-size:12pt;"><div><span>I just tried to build latest assemblygen-based \
Qyoto (after building and installing latest smokegen and smokeqt) on my Fedora Core \
17 system, and got a compilation error while trying to build \
qyoto-qtcore.</span></div><div style="color:rgb(0, 0, \
0);font-size:16px;font-family:times new roman, new york, times, \
serif;background-color:transparent;font-style:normal;"><br><span></span></div><div \
style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, \
times, serif;background-color:transparent;font-style:normal;"><span>The first \
offending line is in the assemblygen-created bin/qyoto-qtcore.cs, at line \
8316:</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new \
roman, new york, times, serif;background-color:transparent; \
font-style:normal;"><br><span></span></div><div style="color:rgb(0, 0, \
0);font-size:16px;font-family:times new roman, new york, times, \
serif;background-color:transparent;font-style:normal;"><span>public static QByteArray \
Number(int arg1, int base = 10) {</span></div><div style="color:rgb(0, 0, \
0);font-size:16px;font-family:times new roman, new york, times, \
serif;background-color:transparent;font-style:normal;"><br><span></span></div><div \
style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, \
times, serif;background-color:transparent;font-style:normal;"><span>The problem is \
that "base" is a reserved word, but it's being used as a variable name.&nbsp; The \
usual solution is to put "@" in front of the name, but I don't know where assemblygen \
deals with this issue.<br></span></div><div style="color:rgb(0, 0, \
0);font-size:16px;font-family:times new roman, new york, times, \
serif;background-color:transparent; font-style:normal;"><br><span></span></div><div \
style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, \
times, serif;background-color:transparent;font-style:normal;"><span>This is with \
latest mono (which I built today too) and Qt 4.8.4 (installed from Fedora Core's yum \
repos).</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times \
new roman, new york, times, \
serif;background-color:transparent;font-style:normal;"><br><span></span></div><div \
style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, \
times, serif;background-color:transparent;font-style:normal;"><span>Thanks in advance \
for any help with this!</span></div><div style="color:rgb(0, 0, \
0);font-size:16px;font-family:times new roman, new york, times, \
serif;background-color:transparent;font-style:normal;"><br><span></span></div><div \
style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, \
times,  serif;background-color:transparent;font-style:normal;"><span>Steven \
Boswell<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> Dimitar Dobrev \
&lt;dpldobrev@yahoo.com&gt;<br> <b><span style="font-weight:bold;">To:</span></b> KDE \
bindings &lt;kde-bindings@kde.org&gt; <br> <b><span \
style="font-weight:bold;">Sent:</span></b> Saturday, January 12, 2013 2:52 PM<br> \
<b><span style="font-weight:bold;">Subject:</span></b> [Kde-bindings] Qyoto: Linux \
build fixed<br> </font> </div> <br> <div id="yiv837971232"><div><div \
style="color:#000;background-color:#fff;font-family:times new roman, new york, times, \
serif;font-size:12pt;"><span class="yiv837971232tab">&nbsp;&nbsp;&nbsp; \
<br></span><div><span class="yiv837971232tab">&nbsp;&nbsp;&nbsp; The Qyoto Linux \
build is working again. Sorry about the delay.</span></div><div style="color:rgb(0, \
0, 0);font-size:16px;font-family:times new roman, new york, times, \
serif;background-color:transparent;font-style:normal;"><span \
class="yiv837971232tab">&nbsp;&nbsp;&nbsp; <br></span></div><div style="color:rgb(0, \
0, 0);font-size:16px;font-family:times new roman, new york, times, \
serif;background-color:transparent;font-style:normal;"><span \
class="yiv837971232tab">&nbsp;&nbsp;&nbsp; Regards,</span></div><div \
style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, \
times, serif;background-color:transparent;font-style:normal;"><span \
class="yiv837971232tab">&nbsp;&nbsp;&nbsp;  Dimitar</span><br><span \
class="yiv837971232tab"></span></div></div></div></div><br> </div> </div>  \
</div></div></div><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