Open-GD / OpenGD

Open source implementation of Geometry Dash powered by a fork of cocos2dx 4.0.
GNU General Public License v3.0
182 stars 28 forks source link

Cmake build issues #50

Closed Kyanoxia closed 1 year ago

Kyanoxia commented 1 year ago

Expected Output

Following build commands should work smoothly and compile/build the project without error.

Real Output

When following directions listed in the README, I run the cmake command, as follows:

cmake -B build

and the build fails with this error:

CMake Error in /Users/$USER/Developer/opengd/axmol/core/CMakeLists.txt:
  The language OBJCXX was requested for compilation but was not enabled.  To
  enable a language it needs to be specified in a 'project' or
  'enable_language' command in the root CMakeLists.txt

As far as I can tell, Axmol is installed correctly (ran setup.py) and everything should work. Maybe should I clone the OpenGD repo inside the axmol folder?

Device Specifications

MacBook Pro 16-inch (M2 Max) - macOS Ventura 13.4 (22F66)

iAndyHD3 commented 1 year ago

OpenGD itself only builds on windows at the moment but this is an axmol issue. Not really sure since we don't use a mac. Maybe @halx99 can help

(use the no header optimization branch)

halx99 commented 1 year ago

ONLY -GXcode supported.

cmake - B build -GXcode

SergeyMC9730 commented 1 year ago

OpenGD itself only builds on windows at the moment but this is an axmol issue. Not really sure since we don't use a mac. Maybe @halx99 can help

(use the no header optimization branch)

no-header-optimization works properly only on GCC, I couldn't get it to work on Clang. Please ensure that you have changed the default compiler.

SergeyMC9730 commented 1 year ago

UPD: With commit ed299c8, OpenGD has been finally fixed on Linux.