Nik.Sam Posted March 3, 2022 Share Posted March 3, 2022 Why ComponentSystem::get()->initialize(); generate .prop in example but not generate in other project? Link to comment
silent Posted March 4, 2022 Share Posted March 4, 2022 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: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Nik.Sam Posted March 4, 2022 Author Share Posted March 4, 2022 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. Link to comment
silent Posted March 4, 2022 Share Posted March 4, 2022 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: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Nik.Sam Posted March 4, 2022 Author Share Posted March 4, 2022 I found thing generating this error. .cpp file with REGISTER_COMPONENT(MyComp); Not linked in exe because 0 direct usages of this translation unit. Link to comment
silent Posted March 4, 2022 Share Posted March 4, 2022 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: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Nik.Sam Posted March 15, 2022 Author Share Posted March 15, 2022 (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 March 15, 2022 by Nik.Sam Link to comment
Recommended Posts