[Mesa-dev] Problem with LLVM on Windows with MSVC

2015-04-08 Thread Shervin Sharifi
Hi, I'm trying to build mesa on windows (MSVC) with gles support and with llvm. Here are the keys I'm using: scons.py gles=yes llvm=yes platform=windows libgl-gd I'm getting a bunch of errors like this: LLVMCore.lib(ValueSymbolTable.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary'

Re: [Mesa-dev] Problem with LLVM on Windows with MSVC

2015-04-10 Thread Shervin Sharifi
> > > *From:* Shervin Sharifi [mailto:sherv...@gmail.com] > *Sent:* Thursday, April 09, 2015 8:45 PM > *To:* Predut, Marius > *Cc:* mesa-dev@lists.freedesktop.org > *Subject:* Re: [Mesa-dev] Problem with LLVM on Windows with MSVC > > > > Thank you. > > I have compi

Re: [Mesa-dev] Problem with LLVM on Windows with MSVC

2015-04-10 Thread Jose Fonseca
I suspect that when you built LLVM, you built with the Debug build type instead of Release. That's why you need LLVM_USE_CRT_DEBUG= instead of LLVM_USE_CRT_RELEASE=. But I don't recommend you use a Debug LLVM build, it can be much slower. To be safe, I could update the instructions to menti

Re: [Mesa-dev] Problem with LLVM on Windows with MSVC

2015-04-09 Thread Predut, Marius
From: mesa-dev [mailto:mesa-dev-boun...@lists.freedesktop.org] On Behalf Of Shervin Sharifi Sent: Thursday, April 09, 2015 2:57 AM To: mesa-dev@lists.freedesktop.org Subject: [Mesa-dev] Problem with LLVM on Windows with MSVC Hi, I'm trying to build mesa on windows (MSVC) with gles suppor

Re: [Mesa-dev] Problem with LLVM on Windows with MSVC

2015-04-09 Thread Olivier PENA
Hi, Try use llvm cmake options : LLVM_USE_CRT_DEBUG=MTd LLVM_USE_CRT_RELEASE =MT De : mesa-dev [mailto:mesa-dev-boun...@lists.freedesktop.org] De la part de Shervin Sharifi Envoyé : jeudi 9 avril 2015 01:57 À : mesa-dev@lists.freedesktop.org Objet : [Mesa-dev] Problem with LLVM on Windows with

Re: [Mesa-dev] Problem with LLVM on Windows with MSVC

2015-04-09 Thread Shervin Sharifi
-gd' target? Is this a typo mismatch? > > Try to build llvm in a dynamic mode , may be it will solve your problems > > > > marius > > > > > > *From:* mesa-dev [mailto:mesa-dev-boun...@lists.freedesktop.org] *On > Behalf Of *Shervin Sharifi > *Sent:* Thu

Re: [Mesa-dev] Problem with LLVM on Windows with MSVC

2015-04-09 Thread Jose Fonseca
Please read http://mesa3d.org/llvmpipe.html , "Requirements" sections. It's explained there how to tell which runtime to use when building LLVM. That said, you probably want to pass build=release to scons command. As SCons defaults to debug build. scons build=release ... Jose On 09/04/1