OpenXcom Forum

Contributions => Programming => Topic started by: felipezacani on May 08, 2015, 03:22:53 pm

Title: Development environment
Post by: felipezacani on May 08, 2015, 03:22:53 pm
Hey, I tried to search for this, but it is complicated to locate.

I'm thinking about contributing to openxcom and I was wondering what it the dev. environment most contributors use. I'm talking about OS, IDE (if using one), code editor, compiler. I work with different environments in my job and hobby programming and I would like to hear comments or advice about the most productive way to start.

Thanks!
Title: Re: Development environment
Post by: Meridian on May 08, 2015, 03:42:53 pm
I am not really contributing (only had one PR so far), but my setup is:
- OS: Windows 7
- IDE/compiler: Visual Studio 2010
- Git bash
- Git Extensions GUI

Info how to set it up: https://www.ufopaedia.org/index.php?title=Compiling_with_Microsoft_Visual_C%2B%2B_%28OpenXcom%29
Title: Re: Development environment
Post by: myk002 on May 08, 2015, 07:04:30 pm
I use:
- OS: Gentoo Linux (or OSX -- it's the same workflow)
- IDE: Netbeans (https://www.netbeans.org)
- Compiler: gcc on Linux, clang on OSX
- git
- ah, and cmake (https://www.ufopaedia.org/index.php?title=Compiling_with_CMake_%28OpenXcom%29#End-to-end_example)
Title: Re: Development environment
Post by: DoxaLogos (JG) on May 08, 2015, 08:08:46 pm
I use..

- OS: Linux (Ubuntu 14.04 LTS 64-bit)
- IDE: VIM  (sudo apt-get install vim-gtk   ... be ready for a steep learning curve that pays off long term)
- Compiler: gcc  (sudo apt-get install build-essential)
- git  (sudo apt-get install git)
- CMake (https://www.ufopaedia.org/index.php?title=Compiling_with_CMake_(OpenXcom)) ( sudo apt-get install cmake) or Make (https://www.ufopaedia.org/index.php?title=Compiling_with_Make_(OpenXcom))
Title: Re: Development environment
Post by: SupSuper on May 08, 2015, 09:35:38 pm
We support a wide variety: https://www.ufopaedia.org/index.php?title=Compiling_(OpenXcom)
The leads use Windows / Visual Studio.
Title: Re: Development environment
Post by: felipezacani on May 11, 2015, 04:34:24 am
Thank you all for the friendly replies. I think I'll go with the leads. It is what I have most of the time during travels. git cloning my fork now! :)
Title: Re: Development environment
Post by: DoxaLogos (JG) on May 11, 2015, 06:32:54 am
No problem! Do what works for you and enjoy!  :D
Title: Re: Development environment
Post by: Xtendo-com on April 12, 2016, 12:11:20 pm
I would recommend to use a dark style of desktop environment like in screenshot if you feel a pain in eyes even with rest breaks. For me that makes more easy to read text from monitor and no eye pain after some time of reading.
Title: Re: Development environment
Post by: Xtendo-com on April 25, 2016, 10:58:58 am
- OS: Host Windows 7 SP1 64bit, Guest XUbuntu 14.04 32bit using virtualbox
- IDE: None.
- Code editor: notepad++ in Windows and notepadqq in XUbuntu
- Compile: under XUbuntu 14.04. I use make from src/makefile.simple (Linux binary) or src/makefile.mxe (Windows binary). You can found makefile.mxe form Yankes (https://github.com/Yankes/OpenXcom/tree/OpenXcomExtended) or Meridian (https://github.com/MeridianOXC/OpenXcom/tree/oxce2.9-plus-proto) repository.
- Watch variables through log: I add Log(LOG_VERBOSE) << " Text of variable: " << variable and run linux binary through terminal with enabled verbose output in openxcom config.
- Step-by-step execution and breakpoints: GDB. In order to compile with symbols (you get "no debugging symbols error" in GDB) just modify src/makefile.simple and add -g option into CXXFLAGS. Recompile.
- Git: command-line version
Title: Re: Development environment
Post by: JDarthenay on April 30, 2016, 12:45:13 am
- OS: Windows 7 64-bits
- No IDE, only Notepad++.
- Building with MinGW toolchains provided by MSys2. But also did it with TDM-GCC-64.
- Building most often 64-bits release binary but can also build 32-bits and/or debug binary.
- I build statically with yaml-cpp.0.5.3 and c++11 standard even though this is discouraged by SupSuper, but I have also successfully built with yaml-cpp.0.5.1 with c++98.
- I build dynamically with SDL 1.2, SDL_mixer 1.2, SDL_image 1.2 and SDL_gfx.
- I provide instructions and makefiles to build OpenXcom the same way as me in my GibHub repository (https://github.com/JDarthenay/OpenXcom/tree/MinGW-w64) in branch MinGW-w64.