Build Error FwdIt' is ambiguous

Use this forum for general user support and related questions.
Post Reply
Fox
Posts: 320
Joined: Sat Mar 31, 2018 11:17 am

Build Error FwdIt' is ambiguous

Post by Fox » Sat Nov 16, 2019 9:13 pm

I have problem with windows cmake-build-x64.bat

Code: Select all

       "C:\Users\Human\Documents\cp\WindowsCompile\Build_CMake\LuxCore\LuxRays.sln" (default target) (1) ->
       "C:\Users\Human\Documents\cp\WindowsCompile\Build_CMake\LuxCore\samples\luxcorescenedemo\luxcorescenedemo.vcxpro
       j.metaproj" (default target) (16) ->
       "C:\Users\Human\Documents\cp\WindowsCompile\Build_CMake\LuxCore\samples\luxcorescenedemo\luxcorescenedemo.vcxpro
       j" (default target) (23) ->
       (ClCompile target) ->
         c:\users\human\documents\cp\luxcore\samples\luxcorescenedemo\luxcorescenedemo.cpp(220): error C2672: 'fill': n
       o matching overloaded function found [C:\Users\Human\Documents\cp\WindowsCompile\Build_CMake\LuxCore\samples\lux
       corescenedemo\luxcorescenedemo.vcxproj]
         c:\users\human\documents\cp\luxcore\samples\luxcorescenedemo\luxcorescenedemo.cpp(220): error C2782: 'void std
       ::fill(_FwdIt,_FwdIt,const _Ty &)': template parameter '_FwdIt' is ambiguous [C:\Users\Human\Documents\cp\Window
       sCompile\Build_CMake\LuxCore\samples\luxcorescenedemo\luxcorescenedemo.vcxproj]
         c:\users\human\documents\cp\luxcore\samples\luxcorescenedemo\luxcorescenedemo.cpp(220): error C2784: 'void std
       ::fill(_FwdIt,_FwdIt,const _Ty &)': could not deduce template argument for '_FwdIt' from 'std::_Array_iterator<_
       Ty,6>' [C:\Users\Human\Documents\cp\WindowsCompile\Build_CMake\LuxCore\samples\luxcorescenedemo\luxcorescenedemo
       .vcxproj]

kintuX
Posts: 477
Joined: Wed Jan 10, 2018 2:37 am

Re: Build Error FwdIt' is ambiguous

Post by kintuX » Sat Nov 16, 2019 10:30 pm

confirming same

Code: Select all

Build FAILED.

       "C:\luxcorerender\WindowsCompile\Build_CMake\LuxCore\LuxRays.sln" (default target) (1) ->
       "C:\luxcorerender\WindowsCompile\Build_CMake\LuxCore\samples\luxcorescenedemo\luxcorescenedemo.vcxproj.metaproj"
        (default target) (16) ->
       "C:\luxcorerender\WindowsCompile\Build_CMake\LuxCore\samples\luxcorescenedemo\luxcorescenedemo.vcxproj" (default
        target) (21) ->
       (ClCompile target) ->
         c:\luxcorerender\luxcore\samples\luxcorescenedemo\luxcorescenedemo.cpp(220): error C2672: 'fill': no matching
       overloaded function found [C:\luxcorerender\WindowsCompile\Build_CMake\LuxCore\samples\luxcorescenedemo\luxcores
       cenedemo.vcxproj]
         c:\luxcorerender\luxcore\samples\luxcorescenedemo\luxcorescenedemo.cpp(220): error C2782: 'void std::fill(_Fwd
       It,_FwdIt,const _Ty &)': template parameter '_FwdIt' is ambiguous [C:\luxcorerender\WindowsCompile\Build_CMake\L
       uxCore\samples\luxcorescenedemo\luxcorescenedemo.vcxproj]
         c:\luxcorerender\luxcore\samples\luxcorescenedemo\luxcorescenedemo.cpp(220): error C2784: 'void std::fill(_Fwd
       It,_FwdIt,const _Ty &)': could not deduce template argument for '_FwdIt' from 'std::_Array_iterator<_Ty,6>' [C:\
       luxcorerender\WindowsCompile\Build_CMake\LuxCore\samples\luxcorescenedemo\luxcorescenedemo.vcxproj]

    0 Warning(s)
    3 Error(s)

User avatar
Dade
Developer
Posts: 3421
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Build Error FwdIt' is ambiguous

Post by Dade » Sat Nov 16, 2019 11:07 pm

I should have fixed the problem.
Support LuxCoreRender project with salts and bounties

Fox
Posts: 320
Joined: Sat Mar 31, 2018 11:17 am

Re: Build Error FwdIt' is ambiguous

Post by Fox » Sun Nov 17, 2019 1:04 am

Now i get different error:

Code: Select all

       "C:\Users\Human\Documents\cp\WindowsCompile\Build_CMake\LuxCore\LuxRays.sln" (default target) (1) ->
       "C:\Users\Human\Documents\cp\WindowsCompile\Build_CMake\LuxCore\samples\luxcorescenedemo\luxcorescenedemo.vcxpro
       j.metaproj" (default target) (16) ->
       "C:\Users\Human\Documents\cp\WindowsCompile\Build_CMake\LuxCore\samples\luxcorescenedemo\luxcorescenedemo.vcxpro
       j" (default target) (23) ->
       (ClCompile target) ->
         c:\users\human\documents\cp\luxcore\samples\luxcorescenedemo\luxcorescenedemo.cpp(217): error C2065: 'LC_MESH_
       MAX_DATA_COUNT': undeclared identifier [C:\Users\Human\Documents\cp\WindowsCompile\Build_CMake\LuxCore\samples\l
       uxcorescenedemo\luxcorescenedemo.vcxproj]
         c:\users\human\documents\cp\luxcore\samples\luxcorescenedemo\luxcorescenedemo.cpp(217): error C2975: '_Size':
       invalid template argument for 'std::array', expected compile-time constant expression [C:\Users\Human\Documents\
       cp\WindowsCompile\Build_CMake\LuxCore\samples\luxcorescenedemo\luxcorescenedemo.vcxproj]
         c:\users\human\documents\cp\luxcore\samples\luxcorescenedemo\luxcorescenedemo.cpp(223): error C2039: 'DefineMe
       shExt': is not a member of 'luxcore::Scene' [C:\Users\Human\Documents\cp\WindowsCompile\Build_CMake\LuxCore\samp
       les\luxcorescenedemo\luxcorescenedemo.vcxproj]

User avatar
Dade
Developer
Posts: 3421
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Build Error FwdIt' is ambiguous

Post by Dade » Sun Nov 17, 2019 10:24 am

Fox wrote:
Sun Nov 17, 2019 1:04 am
Now i get different error:

Code: Select all

       "C:\Users\Human\Documents\cp\WindowsCompile\Build_CMake\LuxCore\LuxRays.sln" (default target) (1) ->
       "C:\Users\Human\Documents\cp\WindowsCompile\Build_CMake\LuxCore\samples\luxcorescenedemo\luxcorescenedemo.vcxpro
       j.metaproj" (default target) (16) ->
       "C:\Users\Human\Documents\cp\WindowsCompile\Build_CMake\LuxCore\samples\luxcorescenedemo\luxcorescenedemo.vcxpro
       j" (default target) (23) ->
       (ClCompile target) ->
         c:\users\human\documents\cp\luxcore\samples\luxcorescenedemo\luxcorescenedemo.cpp(217): error C2065: 'LC_MESH_
       MAX_DATA_COUNT': undeclared identifier [C:\Users\Human\Documents\cp\WindowsCompile\Build_CMake\LuxCore\samples\l
       uxcorescenedemo\luxcorescenedemo.vcxproj]
         c:\users\human\documents\cp\luxcore\samples\luxcorescenedemo\luxcorescenedemo.cpp(217): error C2975: '_Size':
       invalid template argument for 'std::array', expected compile-time constant expression [C:\Users\Human\Documents\
       cp\WindowsCompile\Build_CMake\LuxCore\samples\luxcorescenedemo\luxcorescenedemo.vcxproj]
         c:\users\human\documents\cp\luxcore\samples\luxcorescenedemo\luxcorescenedemo.cpp(223): error C2039: 'DefineMe
       shExt': is not a member of 'luxcore::Scene' [C:\Users\Human\Documents\cp\WindowsCompile\Build_CMake\LuxCore\samp
       les\luxcorescenedemo\luxcorescenedemo.vcxproj]
The build process is now working fine: https://dev.azure.com/LuxCoreRender/Lux ... ildId=1011

It is like if you had and old version of luxcore.h around, "LC_MESH_MAX_DATA_COUNT" is clearly defined in it: https://github.com/LuxCoreRender/LuxCor ... core.h#L64

Check your "c:\users\human\documents\cp\luxcore\include\luxcore\luxcore.h" file. Try to rebuild everything from scratch and check that "c:\users\human\documents\cp\luxcore" is updated (and unmodified) with Git.
Support LuxCoreRender project with salts and bounties

Fox
Posts: 320
Joined: Sat Mar 31, 2018 11:17 am

Re: Build Error FwdIt' is ambiguous

Post by Fox » Sun Nov 17, 2019 4:11 pm

The full clean build works. Thank you.

Post Reply