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

Error when build for WASM - LibZ #1923

Closed
paulocoutinhox opened this issue May 24, 2024 · 3 comments · Fixed by #1927
Closed

Error when build for WASM - LibZ #1923

paulocoutinhox opened this issue May 24, 2024 · 3 comments · Fixed by #1927

Comments

@paulocoutinhox
Copy link
Sponsor Contributor

  • axmol version: 6b25f51
  • devices test on:
  • developing environments
    • NDK version: r23c
    • Xcode version: 14.2+
    • Visual Studio:
      • VS version: 2022 (17.9+)
      • MSVC version: 19.39+
      • Windows SDK version: 10.0.22621.0+
    • cmake version: 3.29.3
      Steps to Reproduce:
  1. git clone https://github.com/paulocoutinhox/axmol-native-helper.git
  2. cd axmol-native-helper
  3. make build-wasm

Error:

[ 93%] Building CXX object CMakeFiles/axmol-native-helper.dir/Platform/wasm/PlatformHelper.cpp.o
make[2]: *** No rule to make target `/Users/paulo/Developer/workspaces/cpp/axmol/3rdparty/zlib/_x/lib/wasm/libz.a', needed by `bin/axmol-native-helper/axmol-native-helper.html'.  Stop.
make[1]: *** [CMakeFiles/axmol-native-helper.dir/all] Error 2
make: *** [all] Error 2
@halx99
Copy link
Collaborator

halx99 commented May 24, 2024

Please pass -u to axmol cmdline to upgrade 1kdist to v85

@halx99 halx99 added this to the HelpDesk milestone May 24, 2024
@paulocoutinhox
Copy link
Sponsor Contributor Author

After update, i get other error:

[100%] Building CXX object engine/extensions/scripting/lua-bindings/CMakeFiles/axlua.dir/Users/paulo/Developer/workspaces/cpp/axmol/3rdparty/yasio/yasio/bindings/lyasio.cpp.o
In file included from /Users/paulo/Developer/workspaces/cpp/axmol/3rdparty/yasio/yasio/bindings/lyasio.cpp:83:
In file included from /Users/paulo/Developer/workspaces/cpp/axmol/3rdparty/yasio/yasio/bindings/yasio_sol.hpp:29:
/Users/paulo/Developer/workspaces/cpp/axmol/3rdparty/lua/sol/sol.hpp:6755:10: error: no member named 'construct' in 'optional<type-parameter-0-0 &>'
 6755 |                         this->construct(std::forward<Args>(args)...);
      |                         ~~~~  ^
/Users/paulo/Developer/workspaces/cpp/axmol/3rdparty/lua/sol/sol.hpp:14541:32: warning: unknown warning group '-Wmaybe-uninitialized', ignored [-Wunknown-warning-option]
 14541 | #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
       |                                ^
/Users/paulo/Developer/workspaces/cpp/axmol/3rdparty/lua/sol/sol.hpp:17294:32: warning: unknown warning group '-Wmaybe-uninitialized', ignored [-Wunknown-warning-option]
 17294 | #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
       |                                ^
2 warnings and 1 error generated.

@paulocoutinhox
Copy link
Sponsor Contributor Author

All done, thanks.

@halx99 halx99 modified the milestones: HelpDesk, 2.1.3 May 25, 2024
@halx99 halx99 linked a pull request May 25, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants