Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Managed to compile the player... but where is JSON — Gideros Forum

Managed to compile the player... but where is JSON

edited October 2014 in General questions
After some weeks of tinkering, and finding out why QT was refusing to compile Gideros (answer: MacPorts for some completely fucked-up and random reason installed QT4 without me ever asking, and QT4 and QT5 cannot be installed at the same time or stuff breaks), I compiled it.

But now my game does not run because it relies on the internal JSON that some recent versions of Gideros had, and seemly the source-compiled version does not (I get errors saying json cannot be found).

So... how I fix THAT problem? (ie: where is JSON?)
I make games for children: http://www.kidoteca.com

Comments

  • You can get one from the plugins folder:
    https://github.com/gideros/gideros/tree/master/plugins/JSON/source

    And build it in QT (it has qt project file json.pro)
  • and how I plug it into the player and run the player with QT (so I can debug it)?
    I make games for children: http://www.kidoteca.com
  • With windows I usually put it in the folder with exe

    But most probably you can try linking it in .pro file something like:

    LIBS += -L"c:/gideros/plugins/JSON/release" -ljson
  • I still cannot figure it :(

    There are noone that use OSX?

    This is getting extremely frustating, and scary.
    I make games for children: http://www.kidoteca.com
  • From the source code:
    static void loadPlugins()
    {
    	QDir dir = QDir::currentPath();
    #if defined(Q_OS_MAC)
    	dir.cd("../../Plugins");
    	QStringList files = dir.entryList(QStringList() << "*.dylib");
    #else
    	dir.cd("Plugins");
    	QStringList files = dir.entryList(QStringList() << "*.dll");
    #endif
    Basically it loads it from the Plugins directory dynamically.

    On OSX Plugins folder is two level up, because of .app file structure.

    So create Plugins directory, in the same place where you have your .app on OSX and put created .dylib files there, so it should look like

    /player/release/Gideros.app
    /player/release/Plugins/json.dylib
  • Ouch :(

    (I suspected I needed a dylib and for a while I was trying to figure how to compile one... currently the output of compiling json is json.a not json.dylib I was HOPING I did not needed a dylib...)

    But thanks!

    That helps more already...
    I make games for children: http://www.kidoteca.com
  • I think that QT project should have build all files including .a and .dylib for json project
  • edited October 2014
    Alright, first I cannot figure how to configure where files are generated, but I DID found the dylib files.

    Also I copied said files EVERYWHERE and still cannot make it work.

    Can you call Atilim here (that worked with OSX directly) to explain how the hell I make this work? This game should have been released MONTHS ago, there are now lots of very, very angry people on my neck.

    EDIT: by brute force (ie: looking at ALL folders) I finally found where the builds are going....

    I still want to know how to put them where I want (the place right now is very wrong)
    I make games for children: http://www.kidoteca.com
  • Pinged Atilim, will yet you know if he responds
  • but if json is the only thing standing in your way, you can try using lua implementation of json (atleast for now):
    https://github.com/ar2rsawseen/Json

    instead of json.decode(contents) is has
    Json.Decode(contents)

    and instead of json.encode(data) it has
    Json.Encode(data)
  • Hello
    @atilim confirmed that you should create Plugins directory where your Gideros Player.app is
    and put all dynamically loaded plugins there

    as

    /release/Gideros Player.app
    /release/Plugins/plugin.dylib
  • I wanted to know how I setup where the project saves stuff, currently it is saving in some really random and bad folders and I am having to seek dylibs all over the place (and seek where .app is ended too... I wasted many hours trying to put the Plugins directory in the wrong player.app now I am checking the "modified date" of all .app I find to see if it was the one I just compiled or not...)
    I make games for children: http://www.kidoteca.com
Sign In or Register to comment.