How to compile Wesnoth on Windows with Dev-Cpp, Code::Blocks
Moderator: Forum Moderators
Re: How to compile Wesnoth on Windows with Dev-Cpp
Code::Blocks seems to be nice, maybe I'll switch my IDE.
wesnoth_gcc4.dev (some posts before) was updated (new file src/gui/dialogs/title_screen.cpp)
wesnoth_gcc4.dev (some posts before) was updated (new file src/gui/dialogs/title_screen.cpp)
Re: How to compile Wesnoth on Windows with Dev-Cpp
Thanks talosds, your solution (downloading gimp and copying the dlls) worked perfectly.
-
- Posts: 30
- Joined: August 12th, 2008, 9:24 pm
Re: How to compile Wesnoth on Windows with Dev-Cpp
Thanks for help talosds, I added your link to the main guide. One important thing that I'd like to mention is that the attached CodeBlocks project file works as long as you want just to build the game itself, and may not necessarily work if you'd like to do some development with it, as some new files may be missing from it. In this case you may have to add these new files to the project manually.
Just to let you know - the compiler warnings are there for me as well, but I simply ignore them. They don't show up in DevCpp though, so it must be a CB-specific thing. They are not really a nuisance, so I didn't bother tracking them down.
McShark: CodeBlocks has its flaws but it's a very good IDE in my opinion. I did some wesnoth codework with both DevCpp and CodeBlocks, and I must say that to me CB is more friendly and works faster (a noticeable thing on a 2x1.66GHz, e.g loading a wesnoth project file takes ages in DevCpp). I admit that I've been using CB for some time already so my opinion may be biased, so you'd best just check it out yourself.
PS:I think adding "(...) or CodeBlocks" to the topic's title may be helpful and more descriptive.
Just to let you know - the compiler warnings are there for me as well, but I simply ignore them. They don't show up in DevCpp though, so it must be a CB-specific thing. They are not really a nuisance, so I didn't bother tracking them down.
McShark: CodeBlocks has its flaws but it's a very good IDE in my opinion. I did some wesnoth codework with both DevCpp and CodeBlocks, and I must say that to me CB is more friendly and works faster (a noticeable thing on a 2x1.66GHz, e.g loading a wesnoth project file takes ages in DevCpp). I admit that I've been using CB for some time already so my opinion may be biased, so you'd best just check it out yourself.
PS:I think adding "(...) or CodeBlocks" to the topic's title may be helpful and more descriptive.
Clean...Simple...Devious...I like it
-
- Posts: 30
- Joined: August 12th, 2008, 9:24 pm
Re: How to compile Wesnoth on Windows with Dev-Cpp
Building the latest 1.5.3 trunk under windows may require some extra libraries (e.g. fontconfig and libexpat) ontop of what is in the guide. You can find them here as 3rd-party GTK+ dependencies:
http://www.gtk.org/download-windows.html
http://www.gtk.org/download-windows.html
Clean...Simple...Devious...I like it
Re: How to compile Wesnoth on Windows with Dev-Cpp
I took these two and the recent trunk. Here are newer files (with fridibi and editor2).
The .dev-files result in the according filenames for executable (filename.exe),
the .cbp-files result in filename_cb.exe.
The .dev-files result in the according filenames for executable (filename.exe),
the .cbp-files result in filename_cb.exe.
Last edited by McShark on December 14th, 2008, 6:34 pm, edited 2 times in total.
Re: How to compile Wesnoth on Windows with Dev-Cpp
The files were updated again:
- no extra project files for editor anymore
- editor included in wesnoth project files
Re: How to compile Wesnoth on Windows with Dev-Cpp
Completely new files for svn.
CodeBlocks: New File wesnoth.workspace containing all wesnoth codeblock project files.
Dev-C++ & CodeBlocks: Use icons (folder packaging/windows) for wesnoth executable (as soon as there is some icon for wesnothd it will follow)
If you used CodeBlocks before, you should move the .objs-folder to /projectfiles/CodeBlocks. I tried to do this for Dev-C++, too (to keep src clean) but the .objs folder has no subfolders and therefore all .o have to stay in src.
CodeBlocks: New File wesnoth.workspace containing all wesnoth codeblock project files.
Dev-C++ & CodeBlocks: Use icons (folder packaging/windows) for wesnoth executable (as soon as there is some icon for wesnothd it will follow)
If you used CodeBlocks before, you should move the .objs-folder to /projectfiles/CodeBlocks. I tried to do this for Dev-C++, too (to keep src clean) but the .objs folder has no subfolders and therefore all .o have to stay in src.
Last edited by McShark on December 14th, 2008, 6:33 pm, edited 1 time in total.
Re: How to compile Wesnoth on Windows with Dev-Cpp
Updated the files: both wesnoth executables use the icon now and editor icon was removed from wesnothd. (Should anybody post an icon for wesnothd?)
Re: How to compile Wesnoth on Windows with Dev-Cpp
Something tells me that you should at least compile python25.dll yourself from source on Windows using the same compiler as for wesnoth, don't use the standard .dll as described in this guide. Or am I missing something?
Re: How to compile Wesnoth on Windows with Dev-Cpp
I've used the standard dll by installing phyton (or maybe the one from my previous wesnoth install).
- loonycyborg
- Windows Packager
- Posts: 295
- Joined: April 1st, 2008, 4:45 pm
- Location: Russia/Moscow
Re: How to compile Wesnoth on Windows with Dev-Cpp
I tried compiling python25.dll myself to get rid of msvcr71.dll dependency, but unfortunately python's autotools build system doesn't seem to work on windows with mingw. Anyway, in my experience, dlls compiled with mingw are interchangeable with dlls compiled with msvc.ivan wrote:Something tells me that you should at least compile python25.dll yourself from source on Windows using the same compiler as for wesnoth, don't use the standard .dll as described in this guide. Or am I missing something?
"meh." - zookeeper
Re: How to compile Wesnoth on Windows with Dev-Cpp
They may work. But not everything works in multi-compiler environment. Some low-level things may crash.loonycyborg wrote:I tried compiling python25.dll myself to get rid of msvcr71.dll dependency, but unfortunately python's autotools build system doesn't seem to work on windows with mingw. Anyway, in my experience, dlls compiled with mingw are interchangeable with dlls compiled with msvc.ivan wrote:Something tells me that you should at least compile python25.dll yourself from source on Windows using the same compiler as for wesnoth, don't use the standard .dll as described in this guide. Or am I missing something?
http://www.python.org/doc/faq/windows/# ... pplication
Re: How to compile Wesnoth on Windows with Dev-Cpp
This link may help for mingw Python compiling:
http://python-mingw.donbennett.org/
UPDATE: Slightly outdated Python compiled with mingw is available here
Those who use free VS Express probably should compile Python themselves too. AFAIK it will compile from official source project files without any problems.
http://python-mingw.donbennett.org/
UPDATE: Slightly outdated Python compiled with mingw is available here
Those who use free VS Express probably should compile Python themselves too. AFAIK it will compile from official source project files without any problems.
Re: How to compile Wesnoth on Windows with Dev-Cpp
Updated project files for y'all - Added dialogs/wml_message.cpp and overide exe-name with xyz_cb
Last edited by McShark on December 14th, 2008, 6:33 pm, edited 1 time in total.
Re: How to compile Wesnoth on Windows with Dev-Cpp
Hi BroodKiller ,
I compiled BFW with codeBlocks as what you said(using wesnoth_gcc4.cbp). It's OK except adding some source files into project file. And then, I copied the .dll files into the wesnoth directory.
However, there is the following error message when I startup the wesnoth_gcc4.exe:
"The procedure entry point libintl_snprintf could not be located in the dynamic link library intl.dll ".
can you help me? Thanks ahead.
I compiled BFW with codeBlocks as what you said(using wesnoth_gcc4.cbp). It's OK except adding some source files into project file. And then, I copied the .dll files into the wesnoth directory.
However, there is the following error message when I startup the wesnoth_gcc4.exe:
"The procedure entry point libintl_snprintf could not be located in the dynamic link library intl.dll ".
can you help me? Thanks ahead.