Forums

OverviewFelgo 2 Support (Qt 5) › Felgo 2.10.0 upgrade issue – WARNING: cant find config.json file

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #15809

    Marcin

    Hello,
    Have some issues after upgrade.
    Fresh Felgo upgrade, getting: WARNING: cant find config.json file
    Tried old project and just new one created from scratch using New Project->”Felgo Game template”  option.
    Both the same issue.
    Testing Desktop version.
    With older app with version number different than 1, the fact that it can’t find the config.json breaks the app because licence can’t be validated.

    Any suggestion how to fix this issue?

    Marcin

    #15811

    Alex
    Felgo Team

    Hi Marcin,

    Thanks for reporting, which Qt kit (platform) are you currently using? Does this also happen when adding the files in a resource file (as described in our publishing guide in the documentation)?

    Thanks,

    Alex

    #15814

    Marcin

    Hi Alex,
    I am using new kit with Qt 5.8
    It doesn’t even compile on 5.7 now (can’t find QApplication error)

    I tried with the resource system instead of deployment folders etc and it works this way.
    No issues with config.json or licence.

    Marcin

    #15818

    Alex
    Felgo Team

    Thanks for the further testing. Regarding the kit, probably my question was not entirely clear, which of the avilable kits are you actually using and on which platform (e.g. MinGW on Windows or gcc64 on Linux, etc)?

    Qt 5.7 is obsolete after the last update.

    Thanks,

    Alex

    #15819

    Marcin

    Hi Alex,
    Ah yes, I should have added this info in the first place.
    Linux, Ubuntu, Felgo installer, Qt 5.8 Desktop

    Marcin

    #15821

    Alex
    Felgo Team

    Great thanks, we’ll have a closer look now!

    Cheers,

    Alex

    #15824

    Alex
    Felgo Team

    Hi Marcin,

    We were able to reproduce the issue when running an app from Qt Creator. If you want to use deployment folders, you can use the following workaround for your project:

    • Open main.cpp
    • Add the lines
      #include <QDir>

      to the very top of the file

    • Add the line
      QDir::setCurrent(QCoreApplication::applicationDirPath());

      right after the line

      QApplication app(argc, argv);

    Your project should then work as with the previous version. Hope this fixes the issue for now? We will push the fix for that with the next update, thanks again for reporting!

    Best,

    Alex

    #15831

    Marcin

    Hi Alex,
    Works thanks.

    Will stick with this until update.

    Marcin

    #15960

    Marcin

    Hi Alex,
    Quick update, just this is enough:

    QDir::setCurrent(QCoreApplication::applicationDirPath());

     

Viewing 9 posts - 1 through 9 (of 9 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support