how to build springlobby using msvc or c::b.

how to build springlobby using msvc or c::b.

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
klonkip
Posts: 1
Joined: 12 Dec 2010, 12:58

how to build springlobby using msvc or c::b.

Post by klonkip »

I've downloaded the source code.
the only project there is of springSettings.
it compiles, and works.

I can't find the correct include directories for c::b, for compiling with GCC (or with the studio compiler from c::b).

tried to import all the files to studio, and here is my first compiling error:

Code: Select all

springlobby-0.117\src\mapselectdialog.cpp(120) : error C2440: 'type cast' : cannot convert from 'void (__thiscall MapSelectDialog::* )(wxCommandEvent &)' to 'wxObjectEventFunction'
        Pointers to members have different representations; cannot cast between them
the failed line is:

Code: Select all

	Connect(ID_VERTICAL_CHOICE,wxEVT_COMMAND_CHOICE_SELECTED,(wxObjectEventFunction)&MapSelectDialog::OnSortKeySelect);
it seems that the compiler is right:
wxObjectEventFunction is defined as

Code: Select all

typedef void (wxObject::*wxObjectEventFunction)(wxEvent&);
and wxEvent is:

Code: Select all

class WXDLLIMPEXP_BASE wxEvent : public wxObject
but the pointer which we try to convert defined as:

Code: Select all

void OnSortKeySelect(wxCommandEvent& event);
I've have wxWidgets, and wxKeyBindings, and include paths worked for me.
the springlobby_config.h is never included, and empty. I suppose it should be the siteConfiguration.
maybe I should download an older wxWidgets? mine version is 2.8.11. because 2.9.* had many incompatibilites with the springSettings project.
however, the preveous files which did compile, had many warnings.

I am running windows 7, 32bit.

any help would be appreciated.
I couldn't manage to find updated deatailed build instructions for springLobby on windows.

thanku, for your help.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: how to build springlobby using msvc or c::b.

Post by hoijui »

springlobby uses the CMake build system.
it can generate Makefiles, CodeBlock project files, VS project files, ...
install CMake and run ccmake in the root of the springlobby dir.
it should open a GUI that allows to to generate what you need from the above (hint: the VisualStudio files are usually lacking stuff/failing, while the rest works well).
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Re: how to build springlobby using msvc or c::b.

Post by slogic »

I can give you MSVC2008 project file containing my efforts to compile SL under this compiler (will upload later). But i gave up cause i spent too much time with no positive result. Wish you luck.

Also take a look at this branch: https://github.com/slogic/springlobby/t ... -msvcfixes . There I started making SL source code compatible with MSVC but also stopped. I spent very unpleasant time.

PS. Oh, guthub link already contains a project file :)
Post Reply

Return to “Engine”