Compiling Libraries on Win32
  • Hi,

    I've been trying to compile the Libraries on Win32 so i can then compile the Latest Version of Ember. (The last pre-compiled version crashes just as it starts displaying the trees, before it finishes rendering everything)

    i've come up against 2 problems, however. the first one is with skstream-0.3.6, i get the following error when i try and compile it.

    skstream.cpp: In function `const char* gai_strerrorA(int)':
    skstream.cpp:128: error: new declaration `const char* gai_strerrorA(int)'
    c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ws2tcpip.h:309: error: ambiguates old declaration `char* gai_strerrorA(int)'


    skstream-0.3.5 compiles without any errors tho.

    The next problem i've come up against, is compiling eris-1.3.14. I get the following error

    c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/cwchar:161: error: `::swprintf' has not been declared
    c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/cwchar:168: error: `::vswprintf' has not been declared
    make[2]: *** [Exceptions.lo] Error 1
    make[2]: Leaving directory `/work/ember/eris-1.3.14/Eris'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/work/ember/eris-1.3.14'
    make: *** [all] Error 2


    On both occasions i am running ./configure with no options. configure finishes without any problems on both occasions, and it appears that make runs without error up to those 2 points. Is the second error related to not using the latest skstream?

    Any help would be much appreciated. If i can get it to compile and run, would it be a worth while exercise if i packaged up a pre-compiled win32 version? Or even brought the compiling and setting up a build environment on win32 page up to date?

    Thanks

    Parcan
  • Hi, compiling on win32 can be quite daunting. There's an unfinished wiki page about it on http://wiki.worldforge.org/wiki/Compili ... r_On_Win32 . If you are successful, or need to do any special when getting it to build, please update the wiki page.

    Regarding the errors, in skstream it seems that the there's no need for the extra method in skstream. Try to either comment it away, or surround it with some #ifdef to get it to not be compiled when on mingw.
    The error in eris seems a little trickier. I did a quick google search for the error messages and got quite the collection of results. I didn't find an easy description of a fix, but I just took a quick look.
  • Hi,

    Yes, i've been attempting it and slowly making progress on and off for about 2 weeks, but i just can't seem to get any further. I'll work more on skstream later before i have a look at eris.

    If i can make some progress i'll work on updating the wiki page, as i needed a few changes from the existing page to make progress.

    Parcan

    Edit to add, Just as a bit of inspiration has anyone actually managed to compile the latest version of ember on win32? Or even the latest labraries?
  • The last version I compiled was 0.5.3, and then I had to fiddle a bit with the libraries to get them to build correctly. I've lost the box I did it on though so I can't remember exactly what I had to do. My hope is however that someone else will come along and take over the win32 ownership, since I want to spend my time on developing rather than fight win32.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID