Phlox Phlox 23 September 2012


sudo apt-get -y install subversion libx11-dev build-essential make zlib1g-dev libgtk2.0-dev libgtk-3-dev autoconf libtool

Download curl (link)

cd to curl dir ./configure make sudo su make install


svn co svn:// freeciv


./ --enable-client=gtk-2.0 --with-libiconv-prefix=/usr

Eclipse- Ubuntu software center

  • subversion: Subclipse at
  • python-dev
  • autotools (incubation)
  • CDT latest (for Indigo, this is currently at

  • if "permission denied" error on a configure or bash script run, try "chmod 744 [filename]"
Read Full Post
Phlox Phlox 17 September 2012

Eclipse Debug setup

  • Eclipse version downloaded was “Classic”, and was selected from this list (here). I downloaded latest, version 4.2.
  • Opened Zip file and moved to c:\programs\Eclipse
  • Clicked on Eclipse.exe in that folder to initialise. It asks for a workplace folder. I set it to a different volume- in my case K:\EcProj
  • Eclipse menu item Help > Install new software, url chose was the first default- I think it said Juno something. The entries are not there anymore so TBD- verify name on next install.
    • Clicked Programming tools. All the C / C++ checkboxes.
  • This might be wrong, but what I did after it reloaded was a File.Import.Import. C/C++. Import code as a makefile project. Then I pointed to the root directory of my FC source directory.
  • Menu Run.Debug Configu…
Read Full Post
Phlox Phlox 17 September 2012

GUI-SDL debug- first impressions

Ok, so I made tje sdl client with -DDEBUG -g Followed the same Studio setup as in User blog:Phlox/Visual Studio- WinGDB setup, only change was the exe name Set a breakpoint in dummy's SDL main and stepped down into it. It got pretty far but barfed on the theme. Client.log says

in gui_clear_theme() [themes.c::57]: No gui-sdl theme was found.

Ok, no problem. This was in data\themes directory. Copied that to my test directory and I got the splash screen. Load game had the list of files... There were redraw errors after the selection, and the file did not seem to load because nothing happenned on start. I can checkpoint debug that later. But I could back out and go to Local network game and access a server I had runinng with a loaded game f…

Read Full Post
Phlox Phlox 16 September 2012

Ifdef survey

Root directory CONFIGURE file has lots of interesting flags that are largely unused.


Aside from DEBUG and one time/ low frequency tags, these are the flags of note:


Lots of fiddly ones about Lang, Net, sys

  • 1 Curious ones
  • 2 Example how the flag gets to the code
  • 3 Oh you have got to be kidding me
  • 4 Continuation of VSNPRINTF =

  • DONE_BY_create_city_virtual

utility\timing.c has a number of code fragments protected with #ifdef HAVE_FTIME. timing.c gets them from included file config.h config.h is generated by automake utilities. The control file is Configure. in the root directory.

Configure. has a line:

#define `$as_echo "HAVE_$ac_f…

Read Full Post
Phlox Phlox 15 September 2012

SDL build

Using the previous MinGW/MSYS environment that I have been using for GTK2.0 client builds, I took the following steps

  • attempt to config using ./ --enable-client=sdl --with-libiconv-prefix=/usr
  • dies with checking for SDL-version = 1.1.4... no
  • Download SDL 1.2.15 libraries
    • SDL-devel-1.2.15-mingw32.tar.gz (Mingw32) from this page - see development libraries section.
  • copied to home/sdl1_2, typed make native. This copied stuff to local\include and lib.
  • re-autogen, dies with IMG_Load in
  • download VC notation is alarming, but there is no mingw ver.
  • zip has just inc and lib. copied stuff to local\include and lib.
  • autogen dies same place
  • This forum post de…
Read Full Post