These are chat archives for buddhi1980/mandelbulber2

29th
Nov 2015
Krzysztof Marczak
@buddhi1980
Nov 29 2015 09:25
Hi. Today afternoon I'm going to publish Mandelbulber 2.06
bermarte
@bermarte
Nov 29 2015 12:55
I have used another mac from a friend just for today and I was able to build version 2.06; my biggest problem is that my translation does not work, I still have to fix it, anyway the build is ok and gamepad support is built in. I may publish my .pro file over the existing .pro file and an explanation how to build on os x, it's enough straightforward using Qt.
Krzysztof Marczak
@buddhi1980
Nov 29 2015 12:57
Hi. Just a half hour ago I have fixed one of critical bugs in Mandelbulber (mclarekin reported it today). Unfortunatelly you need to recompile mandelbulber with lastest code.
About translations, if you want to test it don't forget to copy translation files (*.qm) to /usr/shared folder (I supposed it's the same under OSX)
bermarte
@bermarte
Nov 29 2015 13:02
I will check the translation, the app is built at 13.38 should be fine I think
I have:

ifndef SHARED_DIR

#ifndef WIN32 || __APPLE__ 
    #define SHARED_DIR "/usr/share/mandelbulber2"
    #else
    #define SHARED_DIR "/share/mandelbulber2";
#endif

endif

is ok?
Krzysztof Marczak
@buddhi1980
Nov 29 2015 13:05
is this is system.hpp ?
bermarte
@bermarte
Nov 29 2015 13:05
yes
Krzysztof Marczak
@buddhi1980
Nov 29 2015 13:07
it's not correct, because will not work under Linux
give me a minute and I will write proper conditions
Krzysztof Marczak
@buddhi1980
Nov 29 2015 13:13
#ifndef SHARED_DIR
    #ifdef WIN32
    #elif __APPLE__
        #define SHARED_DIR "/share/mandelbulber2"
    #else
        #define SHARED_DIR "/usr/share/mandelbulber2"
    #endif
#endif
bermarte
@bermarte
Nov 29 2015 13:19
thank you, now checking the translation and the bundle
bermarte
@bermarte
Nov 29 2015 15:09
in system.cpp I have: systemData.sharedDir = QDir::homePath() + "/share/mandelbulber2" + QDir::separator();
The translation seems to work.
Krzysztof Marczak
@buddhi1980
Nov 29 2015 15:11
if you use:
#ifdef WIN32 /* WINDOWS */
    systemData.sharedDir = (QDir::currentPath() + QDir::separator());
#else
    systemData.sharedDir = QString(SHARED_DIR) + QDir::separator();
#endif  /* WINDOWS */
with that which I wrote 2 hours ago then it will work properly
because you already have SHARED_DIR defined as /share/mandelbulber2
you don't need to chage path for shared files in another parts of program
bermarte
@bermarte
Nov 29 2015 15:18
I had to change also that part in system.cpp, strangely enough. I need more time to investigate the problem, soon I have to bring back the macbook pro (: the build is ok.
Krzysztof Marczak
@buddhi1980
Nov 29 2015 20:21
Thanks for dmg file. I'm going to publish all packages tomorow (after confirmation from @mclarekin that the latest bug is fixed)