Jump to content

.prop Generation not work.


photo

Recommended Posts

Posted

Why ComponentSystem::get()->initialize(); generate .prop in example but not generate in other project? 

Posted

Nik.Sam

If no properties are being generated that probably would mean that component system is not initialized. It would be easier to understand if you could provide a small step-by-step guide how to reproduce in a new project.

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

ComponentSystem::get()->initialize(); executed but .prop not generated. Only you know what magical 'if' disable .prop generating with nothing output in logs. In simple project .prop generated normally.

Posted

Unfortunately, without any test reproduction it's hard to tell what's going on.

Could you please provide a minimal test scene that we can build and debug on our side?

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

I found thing generating this error.

.cpp file with
REGISTER_COMPONENT(MyComp);

Not linked in exe because 0 direct usages of this translation unit. 

Posted
Quote

Not linked in exe because 0 direct usages of this translation unit. 

That's strange. Maybe you simply forgot to include your *.cpp and *.h file after new class creation into the project (make / cmake / vcxproj)?

How to submit a good bug report
---
FTP server for test scenes and user uploads:

  • 2 weeks later...
Posted (edited)

No.

 

I have file with only 2 lines:
 

#include "..."
REGISTER_COMPONENT(MyComp);

Its included in .lib compile.

But in final exe its code not included. Because no direct usages of this Translation Unit.

If i add some func and not use its, then this TU will be NOT included in exe.

If i add some func and use its, then this TU will be included in exe and work normally.

 

.h isnt TU and not compiled by self.

.cpp Compiled and i see this file in .lib compilation.

 

Now i use direct register component call near subsystem init.

 

Edited by Nik.Sam
×
×
  • Create New...