Mechanized Assault & eXploration Reloaded



#1 Feb 11, 2015 9:24 am
Ticky_le_troll Offline
Mitglied
Registered since: Jan 12, 2015
Posts: 3


Subject: MaxR + Sdl2 = ?
Hi Leuten,
Gibt es einen Version from Max mit SDL2 Unterstützung ? Smiling
und warum nicht ?

Liebe Grüße,

Ticky
↑  ↓

#2 Feb 11, 2015 2:21 pm
alzi alzi Offline
Developer, Moderator
Registered since: Aug 12, 2007
Posts: 339


Subject: Re: MaxR + Sdl2 = ?
Die aktuelle Entwicklerversion im GIT-Repository ist bereits auf SDL2 portiert.

Außerdem wurden hier einige interne Refactoring-Arbeiten durchgeführt und ein paar neue Features implementiert.

Wenn Du die Version ausprobieren möchtest, kannst Du entweder unsere nightly builds her nehmen (https://www.maxr.org/docs.php?id=41) oder direkt selbst aus dem GIT-Repository bauen (https://git.maxr.org/maxr/maxr).
Albert Ziegenhagel
↑  ↓

#3 Feb 13, 2015 12:47 pm
Ticky_le_troll Offline
Mitglied
Registered since: Jan 12, 2015
Posts: 3


Subject: Re: MaxR + Sdl2 = ?
Hi,

For your information

I'm on Linux, ubuntu 14.04 and have all library installed.
I download the working GIT-Repository (https://git.maxr.org/maxr/maxr 13-02-2.15:12:00)

I use cmake in src/ with cmake .. and cmake write the Makefile

The compilation begin.
first error:
/MaxR/src/ui/graphical/framecounter.cpp:21:39: fatal error: ui\graphical\framecounter.h: Aucun fichier ou dossier de ce type
#include "ui\graphical\framecounter.h"

i write in src/ui/graphical/framecounter.cpp
#include "ui/graphical/framecounter.h"

and the compilation go on.

next error (and fatal for me)

MaxR/src/settings.cpp: In member function ‘std::string cSettings::searchDataDir(const string&)’:
MaxR/src/settings.cpp:300:3: error: ‘BUILD_DATADIR’ was not declared in this scope
BUILD_DATADIR,
^

I can test your new version if you are interested, it does not bother me.
This post has been edited 1 times. Last edit on Feb 13, 2015 12:48 pm by Ticky_le_troll. ↑  ↓

#4 Feb 13, 2015 2:31 pm
alzi alzi Offline
Developer, Moderator
Registered since: Aug 12, 2007
Posts: 339


Subject: Re: MaxR + Sdl2 = ?
Thanks for the tests!

I do not have a linux machine by hand at the moment so I can not test it by myself but I fixed the path delimiters and added a workaround for the second bug to the GIT repository.

If there are any other problems, let me know!
Albert Ziegenhagel
↑  ↓

#5 Feb 13, 2015 6:33 pm
Ticky_le_troll Offline
Mitglied
Registered since: Jan 12, 2015
Posts: 3


Subject: Re: MaxR + Sdl2 = ?
Ok I follow : Happy

The compilation go on.
make say : Linking CXX executable maxr

and next error:

CMakeFiles/maxr.dir/main.cpp.o: in function « main »:
main.cpp:(.text+0x113): multiples defines of « main »
CMakeFiles/maxr.dir/CMakeFiles/2.8.12.2/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:CMakeCXXCompilerId.cpp:(.text+0x0): define first time here
CMakeFiles/maxr.dir/CMakeFiles/2.8.12.2/CompilerIdC/CMakeCCompilerId.c.o:(.data+0x0): multiples defines of « info_compiler »
CMakeFiles/maxr.dir/CMakeFiles/2.8.12.2/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:(.data+0x0): define first time here
CMakeFiles/maxr.dir/CMakeFiles/2.8.12.2/CompilerIdC/CMakeCCompilerId.c.o:(.data+0x8): multiples defines of « info_platform »
CMakeFiles/maxr.dir/CMakeFiles/2.8.12.2/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:(.data+0x8):define first time here
CMakeFiles/maxr.dir/CMakeFiles/2.8.12.2/CompilerIdC/CMakeCCompilerId.c.o:(.data+0x10): multiples defines of « info_arch »
CMakeFiles/maxr.dir/CMakeFiles/2.8.12.2/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:(.data+0x10): define first time here
CMakeFiles/maxr.dir/CMakeFiles/2.8.12.2/CompilerIdC/CMakeCCompilerId.c.o: in function « main »:
CMakeCCompilerId.c:(.text+0x0): multiples defines of « main »
CMakeFiles/maxr.dir/CMakeFiles/2.8.12.2/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:CMakeCXXCompilerId.cpp:(.text+0x0): define first time here

Angry
This post has been edited 1 times. Last edit on Feb 13, 2015 6:34 pm by Ticky_le_troll. ↑  ↓

#6 Feb 14, 2015 10:41 am
alzi alzi Offline
Developer, Moderator
Registered since: Aug 12, 2007
Posts: 339


Subject: Re: MaxR + Sdl2 = ?
from which directory do you call cmake?

I suggest you to create a separate build directory from which you run cmake. What I always do is calling the following from the main maxr directory:

mkdir build
cd build
cmake ..
make

You may need to call "make clean" or better start with an entirley fresh checkout of the GIT repository for it to work.
Albert Ziegenhagel
↑  ↓

Pages (1): 1


All times are GMT +01:00. Current time: 1:30 am.