Page 1 of 1

Cannot build SDK for Visual Studio 2017 / 2019 (luxparse.y problem ?)

Posted: Fri Nov 13, 2020 3:58 pm
by Phantom107
Hello friends!

I am trying to install the SDK on my Windows machine so I can experiment / learn and get started on building a LuxCoreRender application.

I'm following the exact steps on the guide here: https://github.com/LuxCoreRender/WindowsCompile

After calling

Code: Select all

cd C:\Rendering\LuxCoreRender\luxcorerender\WindowsCompile
And then

Code: Select all

.\cmake-build-x64.bat
.. it gets to work. It starts to process everything but at a certain point, quits the installation with a 'fatal error'.

This is what it says:

Code: Select all

CustomBuild:
         [BISON][lux_parser] Building parser with bison 2.7
    19>CustomBuild:
         [BISON][lux_parser] Building parser with bison 2.7
    20>CustomBuild:
         C:/Rendering/LuxCoreRender/luxcorerender/LuxCore/src/luxcore/luxparser/luxparse.y:20.20-41: error: syntax error, unexpected {...}
    19>CustomBuild:
         C:/Rendering/LuxCoreRender/luxcorerender/LuxCore/src/luxcore/luxparser/luxparse.y:20.20-41: error: syntax error, unexpected {...}
    19>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Rendering\LuxCore
       Render\luxcorerender\WindowsCompile\Build_CMake\LuxCore\src\luxcore\pyluxcore.vcxproj]
    19>Done Building Project "C:\Rendering\LuxCoreRender\luxcorerender\WindowsCompile\Build_CMake\LuxCore\src\luxcore\pyluxcore.vcxproj" (default targets) -- FAILED.
    16>Done Building Project "C:\Rendering\LuxCoreRender\luxcorerender\WindowsCompile\Build_CMake\LuxCore\src\luxcore\pyluxcore.vcxproj.metaproj" (default targets) -- FAILED.
    20>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Rendering\LuxCore
       Render\luxcorerender\WindowsCompile\Build_CMake\LuxCore\src\luxcore\luxcore.vcxproj]
    20>Done Building Project "C:\Rendering\LuxCoreRender\luxcorerender\WindowsCompile\Build_CMake\LuxCore\src\luxcore\luxcore.vcxproj" (default targets) -- FAILED.
    11>Done Building Project "C:\Rendering\LuxCoreRender\luxcorerender\WindowsCompile\Build_CMake\LuxCore\src\luxcore\luxcore.vcxproj.metaproj" (default targets) -- FAILED.
     1>Done Building Project "C:\Rendering\LuxCoreRender\luxcorerender\WindowsCompile\Build_CMake\LuxCore\LuxRays.sln" (default targets) -- FAILED.

Build FAILED.

       "C:\Rendering\LuxCoreRender\luxcorerender\WindowsCompile\Build_CMake\LuxCore\LuxRays.sln" (default target) (1) ->
       "C:\Rendering\LuxCoreRender\luxcorerender\WindowsCompile\Build_CMake\LuxCore\src\luxcore\pyluxcore.vcxproj.metaproj" (default target) (16) ->
       "C:\Rendering\LuxCoreRender\luxcor[img][/img]erender\WindowsCompile\Build_CMake\LuxCore\src\luxcore\pyluxcore.vcxproj" (default target) (19) ->
       (CustomBuild target) ->
         C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Rendering\LuxCo
       reRender\luxcorerender\WindowsCompile\Build_CMake\LuxCore\src\luxcore\pyluxcore.vcxproj]


       "C:\Rendering\LuxCoreRender\luxcorerender\WindowsCompile\Build_CMake\LuxCore\LuxRays.sln" (default target) (1) ->
       "C:\Rendering\LuxCoreRender\luxcorerender\WindowsCompile\Build_CMake\LuxCore\src\luxcore\luxcore.vcxproj.metaproj" (default target) (11) ->
       "C:\Rendering\LuxCoreRender\luxcorerender\WindowsCompile\Build_CMake\LuxCore\src\luxcore\luxcore.vcxproj" (default target) (20) ->
         C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Rendering\LuxCo
       reRender\luxcorerender\WindowsCompile\Build_CMake\LuxCore\src\luxcore\luxcore.vcxproj]

    0 Warning(s)
    2 Error(s)

Time Elapsed 00:02:43.98
--- FATAL ERROR RUNNING CMAKE ---

I'll attach it as an image that is perhaps more readable:
screenshot_error.jpg

Any ideas please?

Re: Cannot build SDK for Visual Studio 2017 / 2019 (luxparse.y problem ?)

Posted: Fri Nov 13, 2020 4:50 pm
by Dade
Phantom107 wrote: Fri Nov 13, 2020 3:58 pm Any ideas please?
It is a today problem, just use yesterday sources and they will work. We are fixing compilation on MacOS (https://github.com/LuxCoreRender/LuxCore/issues/467) and today sources require an updated version of Bison. It will added in the next days to the Windows build chain too.

Re: Cannot build SDK for Visual Studio 2017 / 2019 (luxparse.y problem ?)

Posted: Fri Nov 13, 2020 5:26 pm
by Phantom107
Alright will do, thank you!

Re: Cannot build SDK for Visual Studio 2017 / 2019 (luxparse.y problem ?)

Posted: Fri Nov 13, 2020 7:48 pm
by acasta69
This is now fixed in WindowsCompile repository.

Re: Cannot build SDK for Visual Studio 2017 / 2019 (luxparse.y problem ?)

Posted: Fri Nov 13, 2020 11:25 pm
by Phantom107
The build finishes perfectly for VS2017. I tried to use VS2019 also but that one didn't work, so for now I'll use 2017! Thanks for the heads up guys.

Re: Cannot build SDK for Visual Studio 2017 / 2019 (luxparse.y problem ?)

Posted: Sat Nov 14, 2020 7:33 pm
by acasta69
Phantom107 wrote: Fri Nov 13, 2020 11:25 pm I tried to use VS2019 also but that one didn't work
VS2019 is working here and on Azure, but I have to say that I did not test too much with it.
If you could give some more info about how it fails (maybe in a dedicated thread), I might investigate a bit more.

Re: Cannot build SDK for Visual Studio 2017 / 2019 (luxparse.y problem ?)

Posted: Sun Nov 15, 2020 7:30 pm
by Phantom107
No problem, I will let it rest for now, as the page clearly states:

Code: Select all

The officially supported version is 2017
I am happy to use VS2017 to build an awesome app!