<html><head></head><body><div class="ydpfd1a2174yahoo-style-wrap" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px;"><span>scons build=release platform=windows machine=x86 gles=y libgl-gdi osmesa</span><div><span></span><br></div><span>Creating library build\windows-x86\mesa\drivers\osmesa\osmesa.lib and object build\windows-x86\mesa\drivers\osmesa\osmesa.exp<br>osmesa.obj : error LNK2001: unresolved external symbol __imp___glapi_check_multithread<br>osmesa.obj : error LNK2001: unresolved external symbol __imp___glapi_get_proc_address<br>mesa.lib(context.obj) : error LNK2001: unresolved external symbol __imp___glapi_set_context<br>mesa.lib(context.obj) : error LNK2001: unresolved external symbol __imp___glapi_set_dispatch<br>mesa.lib(context.obj) : error LNK2001: unresolved external symbol __imp___glapi_set_nop_handler<br>mesa.lib(context.obj) : error LNK2001: unresolved external symbol __imp___glapi_new_nop_table<br>mesa.lib(context.obj) : error LNK2001: unresolved external symbol __imp___glapi_Context<br>mesa.lib(context.obj) : error LNK2001: unresolved external symbol __imp___glapi_get_dispatch_table_size<br>mesa.lib(context.obj) : error LNK2001: unresolved external symbol __imp___glapi_get_context<br>mesa.lib(remap.obj) : error LNK2001: unresolved external symbol __imp___glapi_add_dispatch<br>mesa.lib(api_loopback.obj) : error LNK2001: unresolved external symbol __imp___glapi_get_dispatch<br>mesa.lib(api_loopback.obj) : error LNK2001: unresolved external symbol __imp___glapi_Dispatch<br>build\windows-x86\mesa\drivers\osmesa\osmesa.dll : fatal error LNK1120: 12 unresolved externals<br>scons: *** [build\windows-x86\mesa\drivers\osmesa\osmesa.dll] Error 1120<br>st_osmesa.lib(osmesa.obj) : error LNK2001: unresolved external symbol __imp___glapi_get_proc_address<br>mesa.lib(st_manager.obj) : error LNK2001: unresolved external symbol __imp___glapi_check_multithread<br>mesa.lib(vbo_exec_api.obj) : error LNK2001: unresolved external symbol __imp___glapi_set_dispatch<br>mesa.lib(glthread.obj) : error LNK2001: unresolved external symbol __imp___glapi_set_context<br>mesa.lib(context.obj) : error LNK2001: unresolved external symbol __imp___glapi_get_dispatch_table_size<br>mesa.lib(remap.obj) : error LNK2001: unresolved external symbol __imp___glapi_add_dispatch<br>build\windows-x86\gallium\targets\osmesa\osmesa.dll : fatal error LNK1120: 6 unresolved externals<br>scons: *** [build\windows-x86\gallium\targets\osmesa\osmesa.dll] Error 1120<br></span><div><span>scons: building terminated because of errors.</span></div><div><span><br></span></div><div><span><span><div><span>This is a long standing issue. First reported here:</span></div><div><span><br></span></div><div><span><a href="https://lists.freedesktop.org/archives/mesa-users/2012-May/000431.html" rel="nofollow" target="_blank">https://lists.freedesktop.org/archives/mesa-users/2012-May/000431.html</a><br></span></div><div><br></div><div><div>Encountered again in 2016:</div><div><br></div><div><a href="https://lists.freedesktop.org/archives/mesa-users/2016-March/001142.html" rel="nofollow" target="_blank">https://lists.freedesktop.org/archives/mesa-users/2016-March/001142.html</a></div><div><br></div><div>and finally by myself in early 2018:</div><div><br></div><div><a href="https://bugs.freedesktop.org/show_bug.cgi?id=106843" rel="nofollow" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=106843</a></div><div><br></div><div><span><span class="ydpea09df94bz_comment_user"><span class="ydpea09df94vcard"><span class="ydpea09df94fn">Eric Engestrom</span></span></span></span> suggested me to try the work in progress Meson build for Windows. Unfortunately it has other issues which prevents it from being ready for prime time as I reported here:</div><div><br></div><div><a href="https://gitlab.freedesktop.org/dbaker/mesa/issues/2" rel="nofollow" target="_blank">https://gitlab.freedesktop.org/dbaker/mesa/issues/2</a></div><div><br></div><span></span></div></span></span><div><span><span><div><span>I stumbled upon this issue when dealing with this feature request:</span></div></span></span></div><div><span><span><div><span></span></div></span></span><br></div><div><a href="https://github.com/pal1000/mesa-dist-win/issues/8" rel="nofollow" target="_blank">https://github.com/pal1000/mesa-dist-win/issues/8</a></div><div><br></div><div>I was able to get that feature done but with a terribly ugly hack which should not even be mentioned.<br></div><div><br></div><div>This issue affects the linking between osmesa and shared_glapi so the build command that triggers it can be as short as:</div><div><br></div><div>scons gles=y</div><div><br></div><div>or</div><div><br></div><div>scons gles=y osmesa</div><div><br></div><div>to get to the linking failure as quickly as possible stripping targets that build successfully.</div><div><br></div><div>I tried to make a proper fix but it is beyond my skill level, despite having the gut feeling the fix could be something surprisingly simple. <br></div><span><br></span></div></div></body></html>