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

Discussion related to the LuxCore functionality, implementations and API.
Post Reply
User avatar
Phantom107
Posts: 9
Joined: Fri Nov 13, 2020 10:01 am

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

Post 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?
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

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

Post 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.
Support LuxCoreRender project with salts and bounties
User avatar
Phantom107
Posts: 9
Joined: Fri Nov 13, 2020 10:01 am

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

Post by Phantom107 »

Alright will do, thank you!
acasta69
Developer
Developer
Posts: 472
Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy

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

Post by acasta69 »

This is now fixed in WindowsCompile repository.
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
User avatar
Phantom107
Posts: 9
Joined: Fri Nov 13, 2020 10:01 am

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

Post 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.
acasta69
Developer
Developer
Posts: 472
Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy

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

Post 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.
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
User avatar
Phantom107
Posts: 9
Joined: Fri Nov 13, 2020 10:01 am

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

Post 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!
Post Reply