Jump to content

building binaries issue


kostresa

Recommended Posts

Getting the nbind C2100: illegal indirection compile error. I opened up binding.sln in Visual Studio 2015 and it failed to build as well. I don't have VS 2017 installed either.

 

And lastly the link hubstpot link on the github page to the build tools expired, so that doesn't work anymore. Are there any other workarounds to getting things to build?

Link to comment
Share on other sites

Sure thing. Here's the wiki link that mentioned compile errors with VS2017 https://github.com/Nexus-Mods/Vortex

Seems to apply to 2015 too now?

  common.cc
  reflect.cc
  permissions.cpp
  Buffer.cc
  Binding.cc
  win_delay_load_hook.cc
c:\projects\vortex\node_modules\nbind\include\nbind\BindClass.h(162): error C2100: illegal indirection (compiling source file ..\..\nbind\src\reflect.cc) [C:\Projects\vortex\node_modules\permissions\build\nbind.vcxproj]
c:\projects\vortex\node_modules\nbind\include\nbind\BindClass.h(162): error C2439: 'nbind::BindClassBase::methodLast': member could not be initialized (compiling source file ..\..\nbind\src\reflect.cc) [C:\Projects\vortex\node_modules\permissions\build\nbind.vcxproj]
  c:\projects\vortex\node_modules\nbind\include\nbind\BindClass.h(162): note: see declaration of 'nbind::BindClassBase::methodLast' (compiling source file ..\..\nbind\src\reflect.cc)
c:\projects\vortex\node_modules\nbind\include\nbind\BindClass.h(162): error C2100: illegal indirection (compiling source file ..\..\nbind\src\common.cc) [C:\Projects\vortex\node_modules\permissions\build\nbind.vcxproj]
c:\projects\vortex\node_modules\nbind\include\nbind\BindClass.h(162): error C2439: 'nbind::BindClassBase::methodLast': member could not be initialized (compiling source file ..\..\nbind\src\common.cc) [C:\Projects\vortex\node_modules\permissions\build\nbind.vcxproj]
  c:\projects\vortex\node_modules\nbind\include\nbind\BindClass.h(162): note: see declaration of 'nbind::BindClassBase::methodLast' (compiling source file ..\..\nbind\src\common.cc)
c:\projects\vortex\node_modules\nbind\include\nbind\BindClass.h(162): error C2100: illegal indirection (compiling source file ..\..\nbind\src\v8\Binding.cc) [C:\Projects\vortex\node_modules\permissions\build\nbind.vcxproj]
c:\projects\vortex\node_modules\nbind\include\nbind\BindClass.h(162): error C2439: 'nbind::BindClassBase::methodLast': member could not be initialized (compiling source file ..\..\nbind\src\v8\Binding.cc) [C:\Projects\vortex\node_modules\permissions\build\nbind.vcxproj]
  c:\projects\vortex\node_modules\nbind\include\nbind\BindClass.h(162): note: see declaration of 'nbind::BindClassBase::methodLast' (compiling source file ..\..\nbind\src\v8\Binding.cc)
c:\projects\vortex\node_modules\nbind\include\nbind\BindClass.h(162): error C2100: illegal indirection (compiling source file ..\..\nbind\src\v8\Buffer.cc) [C:\Projects\vortex\node_modules\permissions\build\nbind.vcxproj]
c:\projects\vortex\node_modules\nbind\include\nbind\BindClass.h(162): error C2439: 'nbind::BindClassBase::methodLast': member could not be initialized (compiling source file ..\..\nbind\src\v8\Buffer.cc) [C:\Projects\vortex\node_modules\permissions\build\nbind.vcxproj]
  c:\projects\vortex\node_modules\nbind\include\nbind\BindClass.h(162): note: see declaration of 'nbind::BindClassBase::methodLast' (compiling source file ..\..\nbind\src\v8\Buffer.cc)
c:\projects\vortex\node_modules\nbind\include\nbind\BindClass.h(162): error C2100: illegal indirection (compiling source file ..\src_win\permissions.cpp) [C:\Projects\vortex\node_modules\permissions\build\nbind.vcxproj]
c:\projects\vortex\node_modules\nbind\include\nbind\BindClass.h(162): error C2439: 'nbind::BindClassBase::methodLast': member could not be initialized (compiling source file ..\src_win\permissions.cpp) [C:\Projects\vortex\node_modules\permissions\build\nbind.vcxproj]
  c:\projects\vortex\node_modules\nbind\include\nbind\BindClass.h(162): note: see declaration of 'nbind::BindClassBase::methodLast' (compiling source file ..\src_win\permissions.cpp)
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Projects\Vortex\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Projects\\Vortex\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "build"
gyp ERR! cwd C:\Projects\vortex\node_modules\permissions

Doesn't like this line (error C2100: illegal indirection):

decltype(methodList.before_begin()) methodLast = methodList.before_begin();
Link to comment
Share on other sites

No, the compile error mentioned there is different (see https://github.com/charto/nbind/issues/98) and it should be fixed by now. I just still build with vs2015 so I haven't verified yet if the fix actually worked.

 

Could you open the visual studio 2015 ide and check the about dialog which version you have? For me it's

Microsoft Visual Studio Community 2015

Version 14.0.25431.01 Update 3

 

decltype is a somewhat new feature in c++, newly introduced in vs 2015, so there is a chance it was still bugged in the earlier versions.

Link to comment
Share on other sites

Ah, thanks, that's the problem, I didn't have any update numbers. Version was 14.0.23107.0, but now it installs fine now that I have the latest. After the yarn build, I had to run start twice to get past the logo, but now seems to work. Thanks! Edited by kostresa
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...