HxGodot / hxgodot

A Haxe GDExtension for Godot 4
MIT License
232 stars 11 forks source link

Get compilation working for MacOS. #12

Closed Greg209 closed 2 years ago

Greg209 commented 2 years ago

I hoped these were going to be two PR's but they seem to have merged together.

The first commit should fix the compilation for MacOS. (https://github.com/dazKind/hxgodot-cpp/issues/11)

The second commit 'fixes' the linker issues and the make file for MacOS. The make file needs testing with other platforms.

drekay commented 2 years ago

Unfortunately I am still getting an error on MacOS. (#11)

$ make debug
haxe build-gen.hxml
Generating binding classes for Godot (float_64)...
src/godot/macros/ClassGenMacros.hx:104: // builtins
src/godot/macros/ClassGenMacros.hx:105: Nil
src/godot/macros/ClassGenMacros.hx:104: // builtins
src/godot/macros/ClassGenMacros.hx:105: bool
src/godot/macros/ClassGenMacros.hx:104: // builtins
src/godot/macros/ClassGenMacros.hx:105: int
src/godot/macros/ClassGenMacros.hx:104: // builtins
src/godot/macros/ClassGenMacros.hx:105: float
src/godot/macros/ClassGenMacros.hx:104: // builtins
src/godot/macros/ClassGenMacros.hx:105: String
(unknown) : Missing ;
make: *** [generate] Error 1
drekay commented 1 year ago

Still not able to build even after today's commit:

$ make debug haxe build-gen.hxml Generating binding classes for Godot (float_64)... (unknown) : Missing ; make: *** [generate] Error 1

dazKind commented 1 year ago

Thanks for holding out. The current main-branch is in a heavy WIP process and I have a couple things locally that I havent commit yet.

I finished all the basic pieces now and I will now focus on reworking the project-structure and porting to linux / osx, next.

drekay commented 1 year ago

Thanks dazKind. Looking forward to the success of this project.

dazKind commented 1 year ago

I can replicate this error now. looks like something is a miss when it comes to the binding macro, but only under Macos! Interesting!