Hello Alex,
I’m excited to try out the Felgo 4 hot reload feature with my existing Qt6 project.
Unfortunately, I’m running into the same issue as OP when using a non-standard project layout.
My project is structured like this (100’s of QML and cpp files were omitted for brevity):
(image, because forum software keeps breaking the formatting)
https://imgur.com/a/0EaQybO
App contains my main.cpp and is the resulting binary.
It links Core which is a shared qml c++ module and is loaded in main.cpp like so:
#include <QtQml/qqmlextensionplugin.h>
Q_IMPORT_QML_PLUGIN(com_my_org_CorePlugin)
(in case it’s relevant)
Anyway, App also links FelgoLive in the CMakeLists.txt and starts the live client at the end:
FelgoLiveClient liveClient(&engine);
Upon connecting I get
MyProject/src/com/my/org/App/main.qml: No such file or directory
Your 6.4 example projects work just fine. I don’t want to mess with my existing project too much. I tried copying it into the cache folder but it didn’t work either and even that was a headache given my Core module lives outside the App directory.
Ideally, I don’t need to make any changes to my CMakeLists besides linking to your library.
In case there’s anything else I can provide to help debug this issue please let me know.