Skip to content

Compiling and running issues on visual studio 2017 #21

@crodnu

Description

@crodnu

Hello

I got two different (no idea if related errors)
The first one is that the file BsSLFXCompiler.cpp fails to compile at all
Here's the log

1>------ Build started: Project: bsfSL, Configuration: Debug x64 ------
1>BsSLFXCompiler.cpp
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(422): error C2039: 'UniformType': is not a member of 'Xsc::Reflection'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\dependencies\xshadercompiler\include\xsc\reflection.h(24): note: see declaration of 'Xsc::Reflection'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(422): error C3083: 'UniformType': the symbol to the left of a '::' must be a type
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(422): error C2039: 'UniformBuffer': is not a member of 'Xsc::Reflection'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\dependencies\xshadercompiler\include\xsc\reflection.h(24): note: see declaration of 'Xsc::Reflection'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(422): error C2065: 'UniformBuffer': undeclared identifier
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(425): error C2039: 'UniformType': is not a member of 'Xsc::Reflection'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\dependencies\xshadercompiler\include\xsc\reflection.h(24): note: see declaration of 'Xsc::Reflection'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(425): error C3083: 'UniformType': the symbol to the left of a '::' must be a type
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(425): error C2039: 'Buffer': is not a member of 'Xsc::Reflection'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\dependencies\xshadercompiler\include\xsc\reflection.h(24): note: see declaration of 'Xsc::Reflection'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(425): error C2065: 'Buffer': undeclared identifier
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(456): error C2039: 'UniformType': is not a member of 'Xsc::Reflection'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\dependencies\xshadercompiler\include\xsc\reflection.h(24): note: see declaration of 'Xsc::Reflection'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(456): error C3083: 'UniformType': the symbol to the left of a '::' must be a type
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(456): error C2039: 'Sampler': is not a member of 'Xsc::Reflection'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\dependencies\xshadercompiler\include\xsc\reflection.h(24): note: see declaration of 'Xsc::Reflection'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(456): error C2065: 'Sampler': undeclared identifier
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(490): error C2039: 'UniformType': is not a member of 'Xsc::Reflection'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\dependencies\xshadercompiler\include\xsc\reflection.h(24): note: see declaration of 'Xsc::Reflection'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(490): error C3083: 'UniformType': the symbol to the left of a '::' must be a type
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(490): error C2275: 'Xsc::Reflection::Variable': illegal use of this type as an expression
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(490): note: see declaration of 'Xsc::Reflection::Variable'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(498): error C2039: 'UniformType': is not a member of 'Xsc::Reflection'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\dependencies\xshadercompiler\include\xsc\reflection.h(24): note: see declaration of 'Xsc::Reflection'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(498): error C3083: 'UniformType': the symbol to the left of a '::' must be a type
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(498): error C2039: 'UniformBuffer': is not a member of 'Xsc::Reflection'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\dependencies\xshadercompiler\include\xsc\reflection.h(24): note: see declaration of 'Xsc::Reflection'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(498): error C2065: 'UniformBuffer': undeclared identifier
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(537): error C2039: 'UniformType': is not a member of 'Xsc::Reflection'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\dependencies\xshadercompiler\include\xsc\reflection.h(24): note: see declaration of 'Xsc::Reflection'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(537): error C3083: 'UniformType': the symbol to the left of a '::' must be a type
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(537): error C2275: 'Xsc::Reflection::Struct': illegal use of this type as an expression
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(537): note: see declaration of 'Xsc::Reflection::Struct'
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(422): error C2051: case expression not constant
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(425): error C2051: case expression not constant
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(456): error C2051: case expression not constant
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(490): error C2051: case expression not constant
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(537): error C2051: case expression not constant
1>c:\users\eduardo gonzalez\documents\github\bsfexamples\bsf\source\plugins\bsfsl\bsslfxcompiler.cpp(540): warning C4065: switch statement contains 'default' but no 'case' labels
1>Done building project "bsfSL.vcxproj" -- FAILED.

The second error is that the examples crash on startup, failing to load bsfOpenAudio.dll. The thing is, that file is right there, in the same directory as the examples (i'm trying to run them by executing them directly btw, not by using visual studio).

In both cases i compiled the debug version, if it helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions