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

problem with Color4B in MainScene.cpp of C++ template #2254

Closed
grif-on opened this issue Dec 3, 2024 · 1 comment
Closed

problem with Color4B in MainScene.cpp of C++ template #2254

grif-on opened this issue Dec 3, 2024 · 1 comment
Milestone

Comments

@grif-on
Copy link
Contributor

grif-on commented Dec 3, 2024

  • axmol version: 3.0.0 (more specifically bb88586)
  • devices test on: PC Windows 10
  • developing environments
    • cmake version: 3.28.1

Steps to Reproduce:

  1. compile prebuilds of axmol (i followed my notes - My notes on setting up axmol - prebuild engine , VSCode and LUA debugging #1989)
  2. create new C++ project - axmol new -p org.company.particles_test -d ./ -l cpp particles_test , cd ./particles_test and cmake -B build -A x64 "-DAX_PREBUILT_DIR=build_x64"
  3. try to compile project - cmake --build build --config Debug --target particles_test

Output :

PS D:\git\axmol_projects> axmol new -p org.company.particles_test -d ./ -l cpp particles_test
axmol: Creating project particles_test ...
axmol: ==> packageName: org.company.particles_test
axmol: ==> destinationPath: D:\git\axmol_projects\particles_test
axmol: ==> lang: cpp
axmol: ==> is_portrait: False
axmol: Create project particles_test done.
PS D:\git\axmol_projects> cd ./particles_test
PS D:\git\axmol_projects\particles_test> cmake -B build -A x64 "-DAX_PREBUILT_DIR=build_x64"
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.42.34435.0
-- The CXX compiler identification is MSVC 19.42.34435.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using system env var _AX_ROOT=D:/git/axmol
-- GLSLCC_OUT_DIR=D:/git/axmol_projects/particles_test/build/runtime/axslc
-- GLSLCC_FIND_PROG_ROOT=D:/git/axmol/tools/external/glslcc;D:\git\axmol/tools/external/glslcc
-- GLSLCC_FRAG_SOURCE_FILE_EXTENSIONS=.frag;.fsh;.fs
-- GLSLCC_VERT_SOURCE_FILE_EXTENSIONS=.vert;.vsh;.vs
-- CMAKE_HOST_SYSTEM_VERSION: 10.0.19045
-- CMAKE_SYSTEM_VERSION: 10.0.19045
-- CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION: 10.0.22621.0
-- CMAKE_C_STANDARD=11
-- Building axmol with c++20
-- Using Windows MSVC generate axmol project, MSVC_VERSION:1942
-- The ASM compiler identification is MSVC
-- Found assembler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe
-- The ASM_NASM compiler identification is unknown
-- Didn't find assembler
CMake Warning at D:/git/axmol/cmake/Modules/AXConfigDefine.cmake:236 (message):
  The nasm compiler doesn't present on your system PATH, please download
  from: https://www.nasm.us/pub/nasm/releasebuilds/2.16.01/
Call Stack (most recent call first):
  D:/git/axmol/cmake/Modules/AXBuildSet.cmake:44 (include)
  CMakeLists.txt:59 (include)


CMake Warning (dev) at D:/git/axmol/cmake/Modules/AXBuildSet.cmake:49 (message):
  CMAKE_VERSION:3.28.1
Call Stack (most recent call first):
  CMakeLists.txt:59 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- CMAKE_HOST_SYSTEM_NAME:Windows
-- CMAKE_SYSTEM_NAME:Windows
-- CMAKE_GENERATOR_PLATFORM:x64
-- CMAKE_SYSTEM_PROCESSOR:AMD64
-- CMAKE_CXX_COMPILER_ID:MSVC
-- FUZZ_MSVC=TRUE, FULL_CLANG=
-- PROJECT_NAME:particles_test
-- PROJECT_SOURCE_DIR:D:/git/axmol_projects/particles_test
-- _AX_ROOT:D:/git/axmol
-- CMAKE_MODULE_PATH:D:/git/axmol/cmake/Modules/
-- PROJECT_BINARY_DIR:D:/git/axmol_projects/particles_test/build
-- ENGINE_BINARY_PATH:D:/git/axmol_projects/particles_test/build/engine
-- ARCH_ALIAS:x64
-- AX_ENABLE_MSEDGE_WEBVIEW2=ON
-- AX_ENABLE_MFMEDIA=ON
-- AX_ENABLE_EXT_IMGUI=ON
-- AX_ENABLE_EXT_INSPECTOR=ON
-- AX_ENABLE_EXT_FAIRYGUI=ON
-- AX_ENABLE_EXT_LIVE2D=OFF
-- AX_ENABLE_EXT_GUI=ON
-- AX_ENABLE_EXT_ASSETMANAGER=ON
-- AX_ENABLE_EXT_PARTICLE3D=ON
-- AX_ENABLE_EXT_PHYSICS_NODE=ON
-- AX_ENABLE_EXT_SPINE=ON
-- AX_ENABLE_EXT_EFFEKSEER=OFF
-- AX_ENABLE_EXT_LUA=ON
-- AX_ENABLE_EXT_DRAWNODEEX=
-- Configuring done (41.5s)
-- Generating done (0.1s)
-- Build files have been written to: D:/git/axmol_projects/particles_test/build
PS D:\git\axmol_projects\particles_test> cmake --build build --config Debug --target particles_test
MSBuild version 17.12.6+db5f6012c for .NET Framework

  1>Checking Build System
  Syncing resources for particles_test ...
  Building Custom Rule D:/git/axmol_projects/particles_test/CMakeLists.txt
  fsync.ps1: Symlink D:\git\axmol_projects\particles_test\Content to D:\git\axmol_projects\particles_test\build\bin\par
  ticles_test\Debug\Content ...
  Junction created for D:\git\axmol_projects\particles_test\build\bin\particles_test\Debug\Content <<===>> D:\git\axmol
  _projects\particles_test\Content
  Syncing resources for particles_test ...
  Building Custom Rule D:/git/axmol_projects/particles_test/CMakeLists.txt
  fsync.ps1: Copying D:\git\axmol\build_x64\runtime\axslc to D:\git\axmol_projects\particles_test\build\bin\particles_t
  est\Debug\axslc ...
  Building Custom Rule D:/git/axmol_projects/particles_test/CMakeLists.txt
  AppDelegate.cpp
  MainScene.cpp
  main.cpp
D:\git\axmol_projects\particles_test\Source\MainScene.cpp(136,19): error C2665: 'ax::DrawNode::drawRect': no overloaded
 function could convert all the argument types [D:\git\axmol_projects\particles_test\build\particles_test.vcxproj]
      D:\git\axmol\core\2d\DrawNode.h(154,10):
      could be 'void ax::DrawNode::drawRect(const ax::Vec2 &,const ax::Vec2 &,const ax::Color &,float)'
          D:\git\axmol_projects\particles_test\Source\MainScene.cpp(136,19):
          'void ax::DrawNode::drawRect(const ax::Vec2 &,const ax::Vec2 &,const ax::Color &,float)': cannot convert argu
  ment 3 from 'const ax::Color4B' to 'const ax::Color &'
              D:\git\axmol_projects\particles_test\Source\MainScene.cpp(136,100):
              Reason: cannot convert from 'const ax::Color4B' to 'const ax::Color'
              D:\git\axmol_projects\particles_test\Source\MainScene.cpp(136,100):
              No user-defined-conversion operator available that can perform this conversion, or the operator cannot be
   called
      D:\git\axmol_projects\particles_test\Source\MainScene.cpp(136,19):
      while trying to match the argument list '(ax::Vec2, ax::Vec2, const ax::Color4B)'

  Generating Code...
PS D:\git\axmol_projects\particles_test>
@halx99 halx99 added this to the 3.0.0 milestone Dec 4, 2024
@aismann
Copy link
Contributor

aismann commented Dec 4, 2024

Thanks, Its known:
3.x draft; see comment

I will only add missing stuff.
e.g the cpp template has

deprecrated AXLOG
Color4B

halx99 added a commit that referenced this issue Dec 4, 2024
@halx99 halx99 closed this as completed Dec 4, 2024
halx99 added a commit that referenced this issue Dec 4, 2024
halx99 added a commit that referenced this issue Dec 4, 2024
halx99 added a commit that referenced this issue Dec 5, 2024
halx99 added a commit that referenced this issue Dec 5, 2024
halx99 added a commit that referenced this issue Dec 9, 2024
halx99 added a commit that referenced this issue Dec 12, 2024
halx99 added a commit that referenced this issue Dec 14, 2024
halx99 added a commit that referenced this issue Dec 15, 2024
halx99 added a commit that referenced this issue Dec 15, 2024
halx99 added a commit that referenced this issue Dec 19, 2024
halx99 added a commit that referenced this issue Dec 20, 2024
halx99 added a commit that referenced this issue Dec 20, 2024
halx99 added a commit that referenced this issue Dec 25, 2024
halx99 added a commit that referenced this issue Dec 27, 2024
halx99 added a commit that referenced this issue Dec 27, 2024
halx99 added a commit that referenced this issue Dec 30, 2024
halx99 added a commit that referenced this issue Dec 31, 2024
halx99 added a commit that referenced this issue Jan 2, 2025
halx99 added a commit that referenced this issue Jan 4, 2025
halx99 added a commit that referenced this issue Jan 5, 2025
halx99 added a commit that referenced this issue Jan 5, 2025
halx99 added a commit that referenced this issue Jan 5, 2025
halx99 added a commit that referenced this issue Jan 5, 2025
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

3 participants