Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux Build Problems #11

Open
ShizuhaAki opened this issue May 29, 2022 · 3 comments
Open

Linux Build Problems #11

ShizuhaAki opened this issue May 29, 2022 · 3 comments

Comments

@ShizuhaAki
Copy link

这个 Issue 用来存放 Linux 平台下构建时遇到的问题。

目前问题:

In file included from /home/lilywhite/LuaSTG-x/frameworks/cocos2d-x/external/glfw3/include/linux/glfw3native.h:101:
/home/lilywhite/LuaSTG-x/frameworks/cocos2d-x/external/gfx/backend/gfx-base/GFXDef-common.h:123:12: error: unnamed scoped enum is not allowed
  123 | enum class Status : uint32_t {
      |            ^~~~~~
/home/lilywhite/LuaSTG-x/frameworks/cocos2d-x/external/gfx/backend/gfx-base/GFXDef-common.h:123:6: warning: elaborated-type-specifier for a scoped enum must not use the ‘class’ keyword
  123 | enum class Status : uint32_t {
      | ~~~~ ^~~~~
      |      -----
/home/lilywhite/LuaSTG-x/frameworks/cocos2d-x/external/gfx/backend/gfx-base/GFXDef-common.h:123:12: error: expected identifier before ‘int’
  123 | enum class Status : uint32_t {
      |            ^~~~~~
/home/lilywhite/LuaSTG-x/frameworks/cocos2d-x/external/gfx/backend/gfx-base/GFXDef-common.h:123:19: error: expected unqualified-id before ‘:’ token
  123 | enum class Status : uint32_t {
      |                   ^
/home/lilywhite/LuaSTG-x/frameworks/cocos2d-x/external/gfx/base/TypeDef.h:40:37: error: ‘type’ in ‘struct std::underlying_type<int>’ does not name a type
   40 |     inline std::underlying_type<T>::type toNumber(const T v) { return static_cast<std::underlying_type<T>::type>(v); }
      |                                     ^~~~
/home/lilywhite/LuaSTG-x/frameworks/cocos2d-x/external/gfx/base/TypeDef.h:40:37: note: in definition of macro ‘CC_ENUM_CONVERSION_OPERATOR’
   40 |     inline std::underlying_type<T>::type toNumber(const T v) { return static_cast<std::underlying_type<T>::type>(v); }
      |                                     ^~~~
/home/lilywhite/LuaSTG-x/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp: In member function ‘void* cocos2d::GLViewImpl::getLinuxWindow()’:
/home/lilywhite/LuaSTG-x/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:820:28: error: invalid conversion from ‘Window’ {aka ‘long unsigned int’} to ‘void*’ [-fpermissive]
  820 |     return glfwGetX11Window(_mainWindow);
      |            ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
      |                            |
      |                            Window {aka long unsigned int}
@ShizuhaAki
Copy link
Author

undef 后 fix,但后一个问题仍然存在

/home/lilywhite/LuaSTG-x/frameworks/cocos2d-x/cocos/platform/desktop/CCGLViewImpl-desktop.cpp:820:28: error: invalid conversion from ‘Window’ {aka ‘long unsigned int’} to ‘void*’ [-fpermissive]
  820 |     return glfwGetX11Window(_mainWindow);
      |            ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
      |                            |
      |                            Window {aka long unsigned int}

@ShizuhaAki
Copy link
Author

加强转后 fix

@ShizuhaAki
Copy link
Author

Link 时出错:

/usr/bin/ld: ../frameworks/cocos2d-x/external/linux-specific/fmod/prebuilt/64-bit/libfmod.so: .dynsym local symbol at index 2 (>= sh_info of 2)
/usr/bin/ld: ../frameworks/cocos2d-x/external/linux-specific/fmod/prebuilt/64-bit/libfmod.so: .dynsym local symbol at index 3 (>= sh_info of 2)
/usr/bin/ld: ../frameworks/cocos2d-x/external/linux-specific/fmod/prebuilt/64-bit/libfmod.so: .dynsym local symbol at index 4 (>= sh_info of 2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant