Coder Social home page Coder Social logo

Failed to build on MSYS2 MINGW64 about yave HOT 3 OPEN

 avatar commented on July 20, 2024
Failed to build on MSYS2 MINGW64

from yave.

Comments (3)

gan74 avatar gan74 commented on July 20, 2024

Hi, I was just able to try compiling with MSYS2 in a long while, and I am running into problem compiling LuaJIT.

Are your error related to LuaJIT or the engine itself ?

from yave.

 avatar commented on July 20, 2024

Actually they are not errors but warnings. There are too many warning and as ninja by default does parallel builds so I mistake them as full of errors. Indeed there is only one error:

[23/234] Building CXX object CMakeFiles/yave.dir/yave/components/LocalLightBase.cpp.obj
FAILED: CMakeFiles/yave.dir/yave/components/LocalLightBase.cpp.obj
C:\msys64\mingw64\bin\c++.exe  -IC:/msys64/home/Administrator/Yave/build -IC:/msys64/home/Administrator/Yave -IC:/msys64/home/Administrator/Yave/y -IC:/msys64/home/Administrator/Yave/external/sol/include -IC:/msys64/home/Administrator/Yave/external/LuaJIT/src -IC:/msys64/home/Administrator/Yave/external/spirv_cross -DTRACY_ENABLE -pedantic -Wall -Wextra -Wzero-as-null-pointer-constant -Wfloat-conversion -Woverloaded-virtual -Wnon-virtual-dtor -Wlogical-op -Wredundant-decls -Wundef -Wno-gnu-zero-variadic-macro-arguments -DY_DEBUG -MD -MT CMakeFiles/yave.dir/yave/components/LocalLightBase.cpp.obj -MF CMakeFiles\yave.dir\yave\components\LocalLightBase.cpp.obj.d -o CMakeFiles/yave.dir/yave/components/LocalLightBase.cpp.obj -c C:/msys64/home/Administrator/Yave/yave/components/LocalLightBase.cpp
In file included from C:/msys64/home/Administrator/Yave/yave/ecs/ComponentInspector.h:25,
                 from C:/msys64/home/Administrator/Yave/yave/components/LocalLightBase.cpp:25:
C:/msys64/home/Administrator/Yave/yave/ecs/ecs.h:135:13: error: 'hash' is not a class template
  135 | struct std::hash<yave::ecs::EntityId> : std::hash<y::u64> {
      |             ^~~~
C:/msys64/home/Administrator/Yave/yave/ecs/ecs.h:135:39: error: qualified name does not name a class before ':' token
  135 | struct std::hash<yave::ecs::EntityId> : std::hash<y::u64> {
      |                                       ^
C:/msys64/home/Administrator/Yave/yave/ecs/ecs.h:135:39: error: expected '{' before ':' token
In file included from C:/msys64/home/Administrator/Yave/yave/assets/AssetTraits.h:25,
                 from C:/msys64/home/Administrator/Yave/yave/assets/AssetId.h:26,
                 from C:/msys64/home/Administrator/Yave/yave/assets/AssetPtr.h:25,
                 from C:/msys64/home/Administrator/Yave/yave/ecs/ComponentInspector.h:27:
C:/msys64/home/Administrator/Yave/y/y/reflect/reflect.h:177:21: warning: extra ';' [-Wpedantic]
  177 | y_reflect_base(Type);                                                                                       \
      |                     ^
C:/msys64/home/Administrator/Yave/y/y/reflect/reflect.h:184:33: note: in expansion of macro 'y_reflect_static'
  184 | #define y_reflect(Type, ...)    y_reflect_static(Type, __VA_ARGS__)
      |                                 ^~~~~~~~~~~~~~~~
C:/msys64/home/Administrator/Yave/yave/assets/AssetPtr.h:176:9: note: in expansion of macro 'y_reflect'
  176 |         y_reflect(AssetPtr, _id)
      |         ^~~~~~~~~
cc1plus.exe: note: unrecognized command-line option '-Wno-gnu-zero-variadic-macro-arguments' may have been intended to silence earlier diagnostics
ninja: build stopped: subcommand failed.

from yave.

gan74 avatar gan74 commented on July 20, 2024

This looks like an include problem. Can you try including <functional> in ecs.h?

from yave.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.