How to compile Wesnoth on Windows with Dev-Cpp, Code::Blocks
Moderator: Forum Moderators
Re: How to compile Wesnoth on Windows with Dev-Cpp
I've packed the most steps together in one file. It's about 11 MB. Has anyone the space to host the file?
Re: How to compile Wesnoth on Windows with Dev-Cpp
@Mist: As you see, all worked fine with a new clear installation. Is it possible to enable other languages than system standard in svn-build on windows?
Re: How to compile Wesnoth on Windows with Dev-Cpp
Yes, that's a known issue with faulty libintl3.dll copy libintl3.dll and iconv.dll from official relase, it utilises older and working version.
Somewhere, between the sacred silence and sleep.
Disorder.
Disorder.
Re: How to compile Wesnoth on Windows with Dev-Cpp
So what can we do about the language thing?
Re: How to compile Wesnoth on Windows with Dev-Cpp
Mist wrote:copy libintl3.dll and iconv.dll from official relase
Somewhere, between the sacred silence and sleep.
Disorder.
Disorder.
Re: How to compile Wesnoth on Windows with Dev-Cpp
@mist: Thank you, language work's fine now.
@all:
The easy way.
This guide, featuring gcc 4.2, is kind a copy of Mist's one, but has only two downloads. There are some hints and knowledge left out, so if you have problems: take Mist's guide.
If everything looks ok just hit execute->rebuild.
The End
PS. This recipe is for trunk as of 24.03.2008, things might change in the future. It is recommend to use newer versions of these packs if available. For this, you have to make the appropriate steps of Mist's guide.
@all:
The easy way.
This guide, featuring gcc 4.2, is kind a copy of Mist's one, but has only two downloads. There are some hints and knowledge left out, so if you have problems: take Mist's guide.
- Get DevCpp 5.0 beta (4.9.9.2) without MinGw compiler from Sourceforge (about 2,4 MB) and install it somewhere, for example c:\dev-cpp
- Get a checkout of the sources and put it somewhere, for example c:\wesnoth
- Get prepared dev-cpp pack (about 13 MB) and unpack it. If you can't open it: download and install 7zip (about 1 MB).
- Copy contents of dev-cpp to your dev-folder (in example: c:\dev-cpp)
- Copy contents of wesnoth folder to your wesnoth folder (in example: c:\wesnoth)
If everything looks ok just hit execute->rebuild.
The End
PS. This recipe is for trunk as of 24.03.2008, things might change in the future. It is recommend to use newer versions of these packs if available. For this, you have to make the appropriate steps of Mist's guide.
Re: How to compile Wesnoth on Windows with Dev-Cpp
Please do not use tinyurl, I may have preview turned on, but not everyone does and it's annoying not to know where a link leads before you click on it. Also, since preview exists, it is no longer useful for image tags either. (which was it's primary purpose, as signatures are typically limited in length)
[/offtopic]
[/offtopic]
Re: How to compile Wesnoth on Windows with Dev-Cpp
Thanks a lot, that worked fine.McShark wrote: The easy way.
Btw, if someone had Dev-cpp installed before, better remove it and install new one in the same place, or install in different dir and make sure that you set right place in Environment/Dirs/User's Default Directory. Dev-cpp remember settings from previous installations, including this one, had lots of problems because of this.
Re: How to compile Wesnoth on Windows with Dev-Cpp
Hint for Vista users: if you get "g++.exe: CreateProcess: No such file or directory", add
<Dev-Cpp or mingw directory>\libexec\gcc\mingw32\4.2.1-dw2
to PATH
where 4.2.1-dw2 is your gcc version.
<Dev-Cpp or mingw directory>\libexec\gcc\mingw32\4.2.1-dw2
to PATH
where 4.2.1-dw2 is your gcc version.
Re: How to compile Wesnoth on Windows with Dev-Cpp
Since some versions ago, there is always the following problem:
Does anybody know what can be done to fix this problem?[Linker error] undefined reference to `gui2::taddon_connect::show(CVideo&)'
ld returned 1 exit status
Re: How to compile Wesnoth on Windows with Dev-Cpp
Mordante is starting to integrate new GUI files. You need to add every .cpp in /src/gui tree to your project. I've noticed that yesterday but didn't have the time to properly update the dev file.
Somewhere, between the sacred silence and sleep.
Disorder.
Disorder.
Re: How to compile Wesnoth on Windows with Dev-Cpp
This project file is working now, again (old files/posts were deleted). Download the file and remove ".txt" from file name (The extension dev is not allowed for uploading).
I have no svn-rights on these files, so maybe somebody wants to submit it.
I have no svn-rights on these files, so maybe somebody wants to submit it.
Re: How to compile Wesnoth on Windows with Dev-Cpp
Needed for debugging: gdb-6.8-mingw-2
There are newer versions of gnu binutils and gnu make available.
There are newer versions of gnu binutils and gnu make available.
Re: How to compile Wesnoth on Windows with Dev-Cpp
Hmm... Today I've tried to compile it in Windows... First I used "The easy way" by McShark, then -- more detailed one by Mist. In any case compilation is stopped with some error. Last time is was this:
What's this zdll and where I can find it?
Code: Select all
src/ai_village.o -o "wesnoth.exe" -L"G:/src/Dev-Cpp4/lib" -mwindows -lzdll -lmingw32 -lmingwthrd -lSDLmain -lSDL -lSDL_image -lSDL_net -lSDL_mixer -lwin32k -lfreetype -lintl -mthreads -lpython25 -lpng -lkernel32 -lwsock32 ../Dev-Cpp4/lib/libboost_regex_dw2.a ../Dev-Cpp4/lib/libboost_iostreams_dw2.a ../Dev-Cpp4/lib/libSDL_ttf.a ../Dev-Cpp4/lib/libz.a ../Dev-Cpp4/lib/libjpeg.a -s
G:\src\Dev-Cpp4\Bin/ld.exe: cannot find -lzdll
collect2: ld returned 1 exit status
make.exe: *** [wesnoth.exe] Error 1
Execution terminated
Re: How to compile Wesnoth on Windows with Dev-Cpp
Check the step about zlib. You can either rename the -lzdll flag in the project linker options to -lz or rename libzdll.a to libz.a and try again.
Somewhere, between the sacred silence and sleep.
Disorder.
Disorder.