Author Topic: Development environment  (Read 7990 times)

Offline felipezacani

  • Squaddie
  • *
  • Posts: 2
    • View Profile
Development environment
« 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!

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9101
    • View Profile
Re: Development environment
« Reply #1 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

Offline myk002

  • Colonel
  • ****
  • Posts: 227
    • View Profile
Re: Development environment
« Reply #2 on: May 08, 2015, 07:04:30 pm »
I use:
- OS: Gentoo Linux (or OSX -- it's the same workflow)
- IDE: Netbeans
- Compiler: gcc on Linux, clang on OSX
- git
- ah, and cmake
« Last Edit: May 08, 2015, 08:26:59 pm by myk002 »

Offline DoxaLogos (JG)

  • Colonel
  • ****
  • Posts: 358
  • Squaddie cautiously peering through the breach
    • View Profile
Re: Development environment
« Reply #3 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 ( sudo apt-get install cmake) or Make

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: Development environment
« Reply #4 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.

Offline felipezacani

  • Squaddie
  • *
  • Posts: 2
    • View Profile
Re: Development environment
« Reply #5 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! :)

Offline DoxaLogos (JG)

  • Colonel
  • ****
  • Posts: 358
  • Squaddie cautiously peering through the breach
    • View Profile
Re: Development environment
« Reply #6 on: May 11, 2015, 06:32:54 am »
No problem! Do what works for you and enjoy!  :D

Offline Xtendo-com

  • Colonel
  • ****
  • Posts: 118
    • View Profile
Re: Development environment
« Reply #7 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.

Offline Xtendo-com

  • Colonel
  • ****
  • Posts: 118
    • View Profile
Re: Development environment
« Reply #8 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 or Meridian 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
« Last Edit: May 02, 2016, 02:43:06 pm by Xtendo-com »

Offline JDarthenay

  • Captain
  • ***
  • Posts: 55
    • View Profile
Re: Development environment
« Reply #9 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 in branch MinGW-w64.
« Last Edit: May 23, 2016, 10:26:21 pm by JDarthenay »