<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>Thank you,</div>
<div><br>
</div>
<div>I will investigate if I can get a windows build to work, and see how difficult it is, as we kind of want to have a single process in windows to load both OpenGL, and Mesa3D at the sometime, and the ability to use either simultaneously.</div>
</div>
<div><br>
</div>
<div>Cheers</div>
<div>Jason</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Jose Fonseca <<a href="mailto:jfonseca@vmware.com">jfonseca@vmware.com</a>><br>
<span style="font-weight:bold">Date: </span>Wed, 10 Dec 2014 14:18:08 +0000<br>
<span style="font-weight:bold">To: </span>Jason Anderssen <<a href="mailto:janderssen@exactal.com">janderssen@exactal.com</a>>, "<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a>" <<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a>><br>
<span style="font-weight:bold">Subject: </span>RE: Compiling llvm windows name mangled<br>
</div>
<div><br>
</div>
<div><style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} .ms-cui-menu {background-color:#ffffff;border:1px rgb(171, 171, 171) solid;font-family:'Segoe UI WPC', 'Segoe UI', Tahoma, 'Microsoft Sans Serif', Verdana, sans-serif;font-size:11pt;color:rgb(51, 51, 51);} .ms-cui-menusection-title {display:none;} .ms-cui-ctl {vertical-align:text-top;text-decoration:none;color:rgb(51, 51, 51);} .ms-cui-ctl-on {background-color:rgb(225, 235, 242);opacity: 0.8;} .ms-cui-img-cont-float {display:inline-block;margin-top:2px} .ms-cui-smenu-inner {padding-top:0px;} .ms-owa-paste-option-icon {margin: 2px 4px 0px 4px;vertical-align:sub;padding-bottom: 2px;display:inline-block;} .ms-rtePasteFlyout-option:hover {background-color:rgb(225, 235, 242) !important;opacity:1 !important;} .ms-rtePasteFlyout-option {padding:8px 4px 8px 4px;outline:none;} .ms-cui-menusection {float:left; width:85px;height:24px;overflow:hidden}.wf {speak:none; font-weight:normal; font-variant:normal; text-transform:none; -webkit-font-smoothing:antialiased; vertical-align:middle; display:inline-block;}.wf-family-owa {font-family:'o365Icons'}@font-face {  font-family:'o365IconsIE8';  src:url('prem/15.0.913.22/resources/styles/office365icons.ie8.eot?#iefix') format('embedded-opentype'),         url('prem/15.0.913.22/resources/styles/office365icons.ie8.woff') format('woff'),         url('prem/15.0.913.22/resources/styles/office365icons.ie8.ttf') format('truetype');  font-weight:normal;  font-style:normal;}@font-face {  font-family:'o365IconsMouse';  src:url('prem/15.0.913.22/resources/styles/office365icons.mouse.eot?#iefix') format('embedded-opentype'),         url('prem/15.0.913.22/resources/styles/office365icons.mouse.woff') format('woff'),         url('prem/15.0.913.22/resources/styles/office365icons.mouse.ttf') format('truetype');  font-weight:normal;  font-style:normal;}.wf-family-owa {font-family:'o365IconsMouse'}.ie8 .wf-family-owa {font-family:'o365IconsIE8'}.ie8 .wf-owa-play-large:before {content:'\e254';}.notIE8 .wf-owa-play-large:before {content:'\e054';}.ie8 .wf-owa-play-large {color:#FFFFFF/*$WFWhiteColor*/;}.notIE8 .wf-owa-play-large {border-color:#FFFFFF/*$WFWhiteColor*/; width:1.4em; height:1.4em; border-width:.1em; border-style:solid; border-radius:.8em; text-align:center; box-sizing:border-box; -moz-box-sizing:border-box; padding:0.1em; color:#FFFFFF/*$WFWhiteColor*/;}.ie8 .wf-size-play-large {width:40px; height:40px; font-size:30px}.notIE8 .wf-size-play-large {width:40px; height:40px; font-size:30px}--></style>
<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>I never tried, but it doesn't surprise that ​USE_MGL_NAMESPACE doesn't work properly on Windows. <br>
</p>
<p><br>
</p>
<p>At very least the src/mesa/drivers/windows/gdi and src/gallium/targets/libgl-gdi targets will fail because the .DEF files there explicitly request the non-mangled symbols.<br>
</p>
<p><br>
</p>
<p>Not sure if src/mesa/drivers/osmesa will produce something useful. You can ask scons to only build osmesa by passing "scons osmesa .." <br>
</p>
<p>​<br>
<br>
</p>
<p>That said, there's little to zero merit in <span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">USE_MGL_NAMESPACE</span> on Windows because on Windows it's fine to have different DLLs exporting
 the same symbols, since unlike Unixes, DLLs exports are not dumped into a global namespace.<br>
</p>
<p><br>
</p>
<p>Jose<br>
<br>
</p>
<div style="color: rgb(40, 40, 40);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri,sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> mesa-dev <<a href="mailto:mesa-dev-bounces@lists.freedesktop.org">mesa-dev-bounces@lists.freedesktop.org</a>> on behalf of Jason Anderssen
 <<a href="mailto:JAnderssen@exactal.com">JAnderssen@exactal.com</a>><br>
<b>Sent:</b> 09 December 2014 21:45<br>
<b>To:</b> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<b>Subject:</b> [Mesa-dev] Compiling llvm windows name mangled</font>
<div> </div>
</div>
<div>
<div>Hi All,</div>
<div><br>
</div>
<div style="font-family:Calibri; font-size:medium"><font face="Calibri,sans-serif">I am trying to compile osmesa on linux with llvm for win32.  I added the </font><span style="background-color:rgb(255,255,255)"><font face="Calibri,sans-serif"><span style="font-size:10pt">CFLAGS
 += -DUSE_MGL_NAMESPACE to the environment of the </span><span style="font-size:13px">S</span><span style="font-size:10pt">Construct, and the build process seems to be ok until the end when it tries to link the opengl32.dll, basically a lot of symbol not defined
 errors.</span></font></span></div>
<div style="font-family:Calibri; font-size:medium"><span style="background-color:rgb(255,255,255)"><font face="Calibri,sans-serif"><span style="font-size:10pt">Was wondering what is the correct way to build this mangled version of the dll?, or what step have </span><span style="font-size:13px">I</span><span style="font-size:10pt"> missed.</span></font></span></div>
<div style="font-family:Calibri; font-size:medium"><span style="background-color:rgb(255,255,255)"><font face="Calibri,sans-serif"><span style="font-size:10pt"><br>
</span></font></span></div>
<div style="font-family:Calibri; font-size:medium"><span style="background-color:rgb(255,255,255)"><font face="Calibri,sans-serif"><span style="font-size:10pt">The instructions on </span><span style="font-size:13px">building</span><span style="font-size:10pt"> the
 mesa3d dll that </span><span style="font-size:13px">I</span><span style="font-size:10pt"> follow is from this link </span></font></span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__qt-2Dproject.org_wiki_Cross-2Dcompiling-2DMesa-2Dfor-2DWindows&d=AAMFAg&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=zfmBZnnVGHeYde45pMKNnVyzeaZbdIqVLprmZCM2zzE&m=6Ge3DEjWspM0_R8wmG4D9XUdqs4zKcdsmCWMwnnpm3w&s=azooVAijwKtW_999Prr91rlFVONWeD5zHoI2iIRRK80&e=">http://qt-project.org/wiki/Cross-compiling-Mesa-for-Windows</a></div>
<div style="font-family:Calibri; font-size:medium"><span style="background-color: rgb(255, 255, 255); font-family: Calibri, sans-serif; font-size: 10pt;"><br>
</span></div>
<div style="font-family:Calibri; font-size:medium">Cheers</div>
<div style="font-family:Calibri; font-size:medium"><span style="background-color: rgb(255, 255, 255); font-family: Calibri, sans-serif; font-size: 10pt;">Jason Anderssen.</span></div>
Internet Email Confidentiality Footer: This email and any files transmitted with it contain privileged/confidential information intended for the addressee. Neither the confidentiality of nor any privilege in the email is waived, lost or destroyed by reason
 that it has been transmitted other than to the addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy
 this message, and notify us immediately. </div>
</div>
</div>
</div>
</div>
</span>Internet Email Confidentiality Footer: This email and any files transmitted with it contain privileged/confidential information intended for the addressee. Neither the confidentiality of nor any privilege in the email is waived, lost or destroyed by
 reason that it has been transmitted other than to the addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should
 destroy this message, and notify us immediately.
</body>
</html>