FIFE forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

FIFE 0.4.0 has been released on 15th of January, 2017!

Author Topic: Trouble building FIFE  (Read 2229 times)

Grouflon

  • Newbie
  • Posts: 2
    • View Profile
Trouble building FIFE
« on: July 31, 2012, 04:23:03 am »

Hi everyone,

I am following the tutorial on how to build FIFE with Visual Studio 2008 here -> http://wiki.fifengine.net/Building:Win32:VisualStudio
but when I finally launch the build, I get 1 error and the _fife.pyd file isn't created.

here is the log i get from VS (sorry it's half in french, I hope it won't be a problem for understanding) :

Quote
Journal de génération
        
Générer démarrée : Projet : fife, Configuration : Debug_python|Win32


Lignes de commande
        
Création du fichier temporaire "d:\Program Files (x86)\_FIFE\build\win32\build_environments\visual_studio_9\Debug_python\BAT00000327367064.bat" avec pour contenu
[
@echo off

cd "..\..\"

call update_swig_files.bat



if errorlevel 1 goto VCReportError

goto VCEnd

:VCReportError

echo Project : error PRJ0019: Un outil a retourné un code d'erreur à partir de "Exécution d'un événement avant génération..."

exit 1

:VCEnd
]
Création de la ligne de commande """d:\Program Files (x86)\_FIFE\build\win32\build_environments\visual_studio_9\Debug_python\BAT00000327367064.bat"""
Création du fichier temporaire "d:\Program Files (x86)\_FIFE\build\win32\build_environments\visual_studio_9\Debug_python\RSP00000427367064.rsp" avec pour contenu
[
/Od /I "..\..\..\..\engine" /I "..\..\..\..\engine\core" /I "..\..\includes\libguichan" /I "..\..\includes\boost_1_47_0" /I "..\..\includes\openal" /I "..\..\includes\sdl" /I "..\..\includes\zlib" /I "..\..\includes\libvorbis" /I "..\..\includes\libpng" /I "..\..\includes\libogg" /I "..\..\includes\python27" /I "..\..\includes\sdl_image" /I "..\..\includes\sdl_ttf" /D "WIN32" /D "NDEBUG" /D "_LIB" /D "HAVE_OPENGL" /D "HAVE_ZIP" /D "LOG_ENABLED" /D "WIN32_LEAN_AND_MEAN" /D "NOMINMAX" /D "M_SQRT2=1.41421356237309504880" /D "TIXML_USE_STL" /D "_WINDLL" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /MD /Fo"Debug_python\\" /Fd"Debug_python\vc90.pdb" /W3 /c /Wp64 /Zi /TP /wd4250 /wd4290 "..\..\..\..\engine\core\pathfinder\routepather\routepather.cpp"
]
Création de la ligne de commande "cl.exe @"d:\Program Files (x86)\_FIFE\build\win32\build_environments\visual_studio_9\Debug_python\RSP00000427367064.rsp" /nologo /errorReport:prompt"
Fenêtre Sortie
        
Exécution d'un événement avant génération...
scons: Entering directory `d:\Program Files (x86)\_FIFE'
scons: Reading SConscript files ...
Building RELEASE binaries...
scons: done reading SConscript files.
scons: Building targets ...
swig -o build\engine\release\swigwrappers\python\fife_wrap.cc -outdir "engine\python\fife" -Ibuild\engine\release\core -Iengine\core -python -c++ -w511 engine\swigwrappers\python\fife.i
engine\core\model\metamodel\modelcoords.i(31) : Warning 404: Template 'PointType3D< int32_t >' was already wrapped,
engine\core\util\structures\utilstructures.i(89) : Warning 404: previous wrap of 'FIFE::PointType3D< int32_t >'.
engine\core\view\camera.i(32) : Warning 404: Template 'PointType3D< int32_t >' was already wrapped,
engine\core\util\structures\utilstructures.i(89) : Warning 404: previous wrap of 'FIFE::PointType3D< int32_t >'.
engine\core\loaders\native\map\imaploader.h(70) : Warning 473: Returning a pointer or reference in a director method is not recommended.
scons: done building targets.
Compilation en cours...
cl : Ligne de commande warning D9035 : l'option 'Wp64' est désapprouvée et sera supprimée dans une version ultérieure
routepather.cpp
..\..\..\..\engine\core\pathfinder\routepather\routepather.cpp(264) : error C2440: 'initialisation' : impossible de convertir de 'std::_Tree<_Traits>::const_iterator' en 'std::_Tree<_Traits>::iterator'
        with
        [
            _Traits=std::_Tset_traits,std::allocator,false>
        ]
        Aucun constructeur n'a pu prendre le type de source, ou la résolution de la surcharge du constructeur était ambiguë
Résultats
        
Le journal de génération a été enregistré à l'emplacement "file://d:\Program Files (x86)\_FIFE\build\win32\build_environments\visual_studio_9\Debug_python\BuildLog.htm"
fife - 1 erreur(s), 1 avertissement(s)

It seems that something went wrong with "routepather.cpp", but I don't really understand what's going on here.
Can somebody help me fix this up ?
Logged

helios

  • Developer
  • Jr. Member
  • *
  • Posts: 61
    • View Profile
Re: Trouble building FIFE
« Reply #1 on: July 31, 2012, 04:54:03 am »

Hey Grouflon,
I think the problem is that the iterator is not constant. It is a known problem with MSVC. You should be able to fix it if you change line 264 in routepather.cpp to:
Code: [Select]
std::set<Object*>::const_iterator obj_it = std::find(parts.begin(), parts.end(), (*block_it)->getObject());
I'm not at home so no fife source available here. I'll test the fix later and will commit it if it works.
Logged

Grouflon

  • Newbie
  • Posts: 2
    • View Profile
Re: Trouble building FIFE
« Reply #2 on: July 31, 2012, 06:48:01 am »

it's working, thank you very much for your help  :)
Logged

helios

  • Developer
  • Jr. Member
  • *
  • Posts: 61
    • View Profile
Re: Trouble building FIFE
« Reply #3 on: July 31, 2012, 09:53:59 am »

Ok great :)
I committed the fix to trunk so the newest rev. should work.

Thank you for reporting the bug!
Logged