New Class not registered when compiling custom module

Godot Version

v4.5.beta.custom_build

Question

Following the directions in the manual, I have successfully compiled Godot on my local machine, but when I try to use the custom class, I am confronted with the error: Parse Error: Could not find type "Summator" in the current scope.

Everything is exactly the same as in the first section of the tutorial. I am compiling the entire engine, statically linked, with the module files in the modules folder. I am using CLion, having followed this manual page to set it up.

I can see ClassDB::register_class<Summator>(); called in the debugger when the initialization level is MODULE_INITIALIZATION_LEVEL_SCENE.

Please let me know what troubleshooting steps I can follow.

I believe that I was running the wrong executable. There were 2, from when I was setting up the IDE, and I had to change which one was getting run for the debugger to work. Then when I turned the debugger off and let it run all the way through, the class was registered and working.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.