axmolengine / axmol

Axmol Engine – A Multi-platform Engine for Desktop, XBOX (UWP) and Mobile games. (A fork of Cocos2d-x-4.0)
https://axmol.dev
MIT License
916 stars 204 forks source link

Compile error in 2.1.2 #1768

Closed Diam2023 closed 7 months ago

Diam2023 commented 7 months ago
  1. cmake -S . -B build -G "Visual Studio 17 2022" -A win32
  2. Open Visual Studio
  3. Start Local Windows Debugger
Diam2023 commented 7 months ago

Error: axmol-2.1.2\thirdparty\astcenc\astcenc_vecmathlib_sse_4.h(1310,26): error C3861: '_mm_popcnt_u64': identifier not found

aismann commented 7 months ago

Error: axmol-2.1.2\thirdparty\astcenc\astcenc_vecmathlib_sse_4.h(1310,26): error C3861: '_mm_popcnt_u64': identifier not found

can you try this one plz: cmake -S . -B build -G "Visual Studio 17 2022" -A x64

Diam2023 commented 7 months ago

Thank u :), It's worked for me.

aismann commented 7 months ago

Thank u :), It's worked for me.

Small hint: 32 build will removed: Mark as deprecated, and will be removed in next release axmol-2.2.0 32bit build

@halx99 axmol version: axmol-2.1.2 has problem with 32 build: cmake -S . -B build -G "Visual Studio 17 2022" -A win32

with: Error: axmol-2.1.2\thirdparty\astcenc\astcenc_vecmathlib_sse_4.h(1310,26): error C3861: '_mm_popcnt_u64': identifier not found

halx99 commented 7 months ago

but axmol build -p win32 -a x86 -xb '--config,Debug' workd

halx99 commented 7 months ago

Maybe the typo mistake, you are use win32 , but should be: Win32

Diam2023 commented 7 months ago

Maybe the typo mistake, you are use win32 , but should be: Win32

You are right...