Talk:Eclipse

From OpenTTD
Jump to: navigation, search

how to use MinGW and Eclipse for OTTD development in win32 (2008-09-06)

This should give you a rough idea how to

use win32 eclipse IDE +debugger (no sound or music), compile complete release using mingw/msys

for ottd development

first, get msys, see Compiling on MinGW

  • set eclipse workspace somewhere in the msys home dir
  • download ottd from svn svn://svn.openttd.org/trunk using eclipse "svn repository exploring perspective" and creating new c/c++ project
  • in msys:
 ./configure
 make
eclipse: refresh
eclipse project settings / c&c++ build settings:
mingw c++ linker flags: -mwindows
gcc c++ compiler flag:
-Wno-multichar
remove -Wall
c/c++ general / paths and symbols / includes / C++
add objs/lang
source path:
src
excluding="thread_morphos.cpp|sound/win32_s.cpp|sound/sdl_s.cpp|sound/cocoa_s.cpp|sound/win32_s.h|sound/sound_driver.hpp|sound/sdl_s.h|sound/cocoa_s.h|music/win32_m.cpp|music/qtmidi.cpp|music/os2_m.cpp|music/libtimidity.cpp|music/extmidi.cpp|music/dmusic.cpp|music/bemidi.cpp|music/win32_m.h|music/qtmidi.h|music/os2_m.h|music/music_driver.hpp|music/libtimidity.h|music/extmidi.h|music/dmusic.h|music/bemidi.h|endian_check.cpp|fiber_thread.cpp|strgen|os|win64.asm|unix.cpp|thread_pthread.cpp|thread_os2.cpp|thread_none.cpp|os2.cpp|src/unix.cpp|src/thread_pthread.cpp|src/thread_os2.cpp|src/thread_none.cpp|src/os2.cpp|src/win64.asm|src/os|src/strgen|src/sound|src/music"
^ quit eclipse and edit .cproject
try to build
try to launch
ottd arguments -s null -m null
debug: download mingw gdb into msys, give path in eclipse project
try to debug
Personal tools