Topic: recent Maratis vs2012 build here

______________________________________________________
Maratis visualStudio 2012 build 

https://www.dropbox.com/s/8hmu4hiczpq0g … 012.rar?m=
https://code.google.com/p/maratis-vsstudio2012-build/
______________________________________________________


hello , i'm new using Maratis
but despite several attempts , i can't compile Maratis using visual studio ,2010 or 2012
i end up having many unresolved external errors with bullet and assimp

i tried to disable incremental linking , but it didn't solved anything
i was able to compile using scons , but having an ide would be great

here are the errors:
(edited to use pastebin ) http://pastebin.com/aRk3eWSk

Last edited by ulbex (2014-07-06 20:46:47)

Re: recent Maratis vs2012 build here

Hey ulbex!

The IDE projects are not up to date afaik.
Try to compile it using the scons build system.
You need to install Python and you have to add it to your PATH variable. After that you can just 'cd' to your build directory and type 'python scons.py'.

Hope this helps wink
Sponk

PS: Please use a service like pastebin next time wink

Last edited by Sponk (2014-02-14 08:58:08)

Re: recent Maratis vs2012 build here

Hey Sponk smile

thanks for the help , i was able to compile Maratis using Scons ( it's even faster than visual studio )
but how to work with an IDE using scons as a compiler ? it's a bit difficult to work on the sources without a project viewer , or messages when compiling hmm

i'd be happy to take some time to put those visual studio files up to date, but i'm affraid i do not have the skills to do that

at one point, i tought it was because the bullet/assimp libraires included in the source would'nt be up to date, ( it's silly because it compiles perfectly with scons ) 
so i used .lib and .h files from a public bullet version , however the problem remained the same hmm

Last edited by ulbex (2014-02-14 09:23:17)

Re: recent Maratis vs2012 build here

You could try using Dahnielson's CMake build system. It should be able to create Code::Blocks or VS project files for windows.

https://github.com/dahnielson/

I hope this becomes standard at some point of time wink

Sponk

Re: recent Maratis vs2012 build here

Sponk wrote:

You could try using Dahnielson's CMake build system. It should be able to create Code::Blocks or VS project files for windows.

https://github.com/dahnielson/

I hope this becomes standard at some point of time wink

Sponk

Just a note of caution: I haven't tested if the CMake generated project on Windows actually builds yet. It's only been tested on Linux (success), OSX/iOS (needs fixing) and Android (success) so far.

Last edited by Dahnielson (2014-02-14 19:27:09)

Re: recent Maratis vs2012 build here

thanks a lot guys!! l

Last edited by ulbex (2014-02-15 18:53:29)

Re: recent Maratis vs2012 build here

THis  forum seems relevant for this question.

Im also unable to compile maratis with VS 2013 ( im not about to use anything older, I need this V. for windows 8 phone, blah).

I tried scons, but scons can't find 'cl.exe', even though I know its there and I have a path added for it:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin < 'cl' is there , I'm positive.

thx anyone ;0-

Re: recent Maratis vs2012 build here

i'm now using Lumooja's build , it haves working project files for vs2012 and i guess it's no problem compiling with 2013
didn't had any success building for android tough

http://forum.maratis3d.com/search.php?a … ser_id=642

Last edited by ulbex (2014-03-20 09:52:49)

Re: recent Maratis vs2012 build here

and i'm now trying to use Danielhson's cmake files , it worked great generating Vs2010 project files! however i can't seem
to be able to compile mcore , as it can't find dirent.h

( fatal error C1083: can't open include file : 'dirent.h' : No such file or directory )
would somebody have any clues on this ??

also , do you guys think it's possible to compile the experimental branch of Maratis using Danielhson's cmake files ?
i would love to work on some features for the editor , but it would require working with the branch everybody is working on

Last edited by ulbex (2014-03-25 10:55:25)

Re: recent Maratis vs2012 build here

was able to generate vs2010 projects and compile the dependencies ,
however there are many unresolved external errors with all the Maratis .sln projects...

MCore compiles fine if i redo an empty vc project and add all the files , and link to .lib , .h  folders and so on
it's a little bit more difficult with MEngine but i guess i can make it work

the problem is if a big change is made (i'm still working on the actual branch , not the experimental branch)
the vs files would have to be updated separately from the cmake files

i also tried to make files for codeblocks + mingGW but cmake can't generate solution files :

Maratis 3.21.0
CMake Error at 3rdparty/openal-soft/CMakeLists.txt:145 (MESSAGE):
  Your compiler does not seem to have C99 inline semantics!

                               Please update your compiler for better C99 compliance.

Last edited by ulbex (2014-03-29 22:09:18)

Re: recent Maratis vs2012 build here

successfully compiled MEngine and MaratisCommon
however ,  some questions concerning MGui

preprocessor definitions are ignored by visual studio,
so in mWindow.h,

this doesn't seems to work

#ifdef Win32
    #include "WIN32/MWin32Window.h"
#elif __APPLE__
    #include "COCOA/MCocoaWindow.h"
#elif linux
    #include "X11/MX11Window.h"
#endif
#endif

MWin32Window.h is not included, so i would have to manually include mWin32Window.h and it would be bad to commit that , and i think there are many preprocessor definitions anyway
if anybody knows how to have them working it would be great

perhaps it's for the same reason i got some X11 related errors
( if i understand correctly, nothing x11 related should compile on windows ? )
http://pastebin.com/0Fq85Dhz

anyway , i removed those files from the solution and it works great

also, do you guys think is it possible to compile the new MGui from the experimental branch and use it with the standard Maratis build ?

Last edited by ulbex (2014-03-28 13:44:44)

Re: recent Maratis vs2012 build here

hi smile

perhaps it's for the same reason i got some X11 related errors
( if i understand correctly, nothing x11 related should compile on windows ? )

yes, X11 is only for unix systems.

also, do you guys think is it possible to compile the new MGui from the experimental branch and use it with the standard Maratis build ?

Maratis editor code need to be ported, because I changed the structure of MGui.
But you can use the new MGui in your game plugin as a standalone library, be just aware that it is still a work in progress.

there was a discussion about it here : http://forum.maratis3d.com/viewtopic.php?id=788

Re: recent Maratis vs2012 build here

hi Anael smile

is Maratis editor interface built using MGui ? (edit: yes it is )
if so , i guess it would be difficult to add new windows or menus and have them working with MGui v2
but i'll see if i can add some stuff even if i'd have to update it afterwards

unfortunately i don't know Cmake , but it could be interesting if cmake builds could be updated to work with vs2012 ^^
perhaps it will be easier to update them once there'll be a "recent" vs2012 build working

Last edited by ulbex (2014-03-28 15:37:06)

Re: recent Maratis vs2012 build here

just to say i successfully compiled MGui ( not the experimental one yet )
also , preprocessor definitions are working with WIN32 instead of Win32
so i added a tiny change to MWindow.h
http://pastebin.com/zNQaLKEb
it also works if adding Win32 to preprocessor definitions of the MGui project file ( Config properties/C/C++/Preprocessor)

Last edited by ulbex (2014-03-29 12:56:06)

Re: recent Maratis vs2012 build here

thanks

Re: recent Maratis vs2012 build here

np, can't wait to have it working ^^
a small question :
when i'm building Maratis using scons , i don't see any MGui.dll or MaratisCommon.dll , does it means
those projects have to be compiled as .lib and then linked to MaratisPlayer and MaratisEditor?

Last edited by ulbex (2014-07-06 20:49:20)

Re: recent Maratis vs2012 build here

MCommon and MGui are compiled as static libraries, because for now the SDK only exposes MCore and MEngine.
Otherwise sons uses visual studio's compiler, so you can use the generated MCore.dll and MEngine.dll to build a game plugin with visual studio IDE.

MGui will be exposed when the code is stable enough.

Re: recent Maratis vs2012 build here

ok , i now have a working visual studio 2012 build of Maratis

before i upload it ,  i would have two questions :

1) do you guys think it would be possible to  update  the cmake files with some corrections regarding visual studio ? 
that way , vsstudio users could contribute to Maratis builds and easily make apps for Windows store ^^

i don't know cmake , but i could make a list of everything i had to change to make it work
also, it could be cool to add a "precompiled" .lib folder to the Maratis repository
that way , adding all the dependencies in visual studio wouldn't be needed

2) i'd like to add some stuff to my build of MaratisEditor , but would prefer not to have to redo everything once we switch to MguiV2 i had no time to explore MGui for now , but is MGuiV2 very different ? would it be a lot of work to port everything to V2 ?

Last edited by ulbex (2014-05-12 20:56:28)

Re: recent Maratis vs2012 build here

Hi,
about your questions :

1 : yes, cmake should be able to generate usable visual studio projects,
but right now the cmake build system is a community fork, the official multi-platform build system is still scons.
I started to import Dahnielson cmake build to the official repository, so please list all your issues it's usefull

2 : The difference between MGui 1 and 2 is not huge but it will need some porting,
the best for you is to be sure to isolate the maximum of your code from MGui to minimize the effort.

Re: recent Maratis vs2012 build here

Thanks guys !

Anael:  indeed it would be great to have cmake as the official multiplatform build system
if it can help , please find here  some potential improvements to add , it's not much really
http://pastebin.com/AJ4in1Y4
i made a vsstudio solution from  Dahnielson's cmake files and had it working only by making those changes


here is the full solution https://code.google.com/p/maratis-vsstudio2012-build/
( possibly interesting for folks who just want to compile MaratisPlayer for windows and don't know cmake etc )

Last edited by ulbex (2014-05-12 22:02:43)