It is as simple as follows (in fact I forgot to mention):
Download the following packages from the official MinGW site:
libintl-0.17-1-mingw32-dll-8.tar.lzma:
http://sourceforge.net/projects/mingw/files/MinGW/gettext/gettext-0.17-1/libintl-0.17-1-mingw32-dll-8.tar.lzma/download
gettext-0.17-1-mingw32-bin.tar.lzma:
http://sourceforge.net/projects/mingw/files/MinGW/gettext/gettext-0.17-1/gettext-0.17-1-mingw32-dev.tar.lzma/download
gettext-0.17-1-mingw32-dev.tar.lzma:
http://sourceforge.net/projects/mingw/files/MinGW/gettext/gettext-0.17-1/gettext-0.17-1-mingw32-bin.tar.lzma/download
...and put it into you regular GCC directory (TDM or alike). This will do it.
There is no need for another (self-compiled) dependency.
Alternatively you can also just deactivate the "exchndl" target (remove it from the virtual target named "All").
What can we use to extract these files?
Windows 7Zip 4.3 does not extract them, saying their unsupported.
UPDATE:
I finally found an 7za.exe ver 7.65 that would extract the tar file.
However, CodeBlocks is asking for -lintl while the file from the lzma is named libintl-8.dll
Could we get some correct instructins on how to solve this?
thanks
mingw32-g++.exe -shared -Wl,--dll -Lbase\tinyxml -LC:\Usr\Proj\wxWidgets2810\lib\gcc_dll -Lbase\exchndl\lib .objs\base\exchndl\exchndl.o -o devel\exchndl.dll -mthreads -lwxmsw28u -lbfd -liberty -lintl
c:/usr/mingw431/bin/../lib/gcc/mingw32/4.3.1/../../../../mingw32/bin/ld.exe: cannot find -lintl
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
I restored my mingw4.3.1 folder from it's original backup.
I copied the extracted contents of :
gettext-0.17-1-mingw32-dev.tar and
libintl-0.17-1-mingw32-dll-8.tar and
gettext-0.17-1-mingw32-bin.tar
to c:\Usr\mingw431\ and rebuilt codeblocks SVN (latest).
It will not compile.
I get the following results:
-------------- Clean: exchndl in Code::Blocks ---------------
Cleaned "Code::Blocks - exchndl"
-------------- Clean: tinyXML in Code::Blocks ---------------
Cleaned "Code::Blocks - tinyXML"
-------------- Clean: AutoRevision in Code::Blocks ---------------
Cleaned "Code::Blocks - AutoRevision"
-------------- Clean: ConsoleRunner in Code::Blocks ---------------
Cleaned "Code::Blocks - ConsoleRunner"
-------------- Clean: Squirrel in Code::Blocks ---------------
Cleaned "Code::Blocks - Squirrel"
-------------- Clean: Squirrel std lib in Code::Blocks ---------------
Cleaned "Code::Blocks - Squirrel std lib"
-------------- Clean: SqPlus in Code::Blocks ---------------
Cleaned "Code::Blocks - SqPlus"
-------------- Clean: scintilla in Code::Blocks ---------------
Cleaned "Code::Blocks - scintilla"
-------------- Clean: wxpropgrid in Code::Blocks ---------------
Cleaned "Code::Blocks - wxpropgrid"
-------------- Clean: sdk in Code::Blocks ---------------
Cleaned "Code::Blocks - sdk"
-------------- Clean: src in Code::Blocks ---------------
Cleaned "Code::Blocks - src"
-------------- Clean: AStyle in Code::Blocks ---------------
Cleaned "Code::Blocks - AStyle"
-------------- Clean: Compiler depslib in Code::Blocks ---------------
Cleaned "Code::Blocks - Compiler depslib"
-------------- Clean: Compiler in Code::Blocks ---------------
Cleaned "Code::Blocks - Compiler"
-------------- Clean: Debugger in Code::Blocks ---------------
Cleaned "Code::Blocks - Debugger"
-------------- Clean: Code-completion in Code::Blocks ---------------
Cleaned "Code::Blocks - Code-completion"
-------------- Clean: Class wizard in Code::Blocks ---------------
Cleaned "Code::Blocks - Class wizard"
-------------- Clean: Default MIME handler in Code::Blocks ---------------
Cleaned "Code::Blocks - Default MIME handler"
-------------- Clean: Open files list in Code::Blocks ---------------
Cleaned "Code::Blocks - Open files list"
-------------- Clean: Scripted wizard in Code::Blocks ---------------
Cleaned "Code::Blocks - Scripted wizard"
-------------- Clean: To-do in Code::Blocks ---------------
Cleaned "Code::Blocks - To-do"
-------------- Clean: Autosave in Code::Blocks ---------------
Cleaned "Code::Blocks - Autosave"
-------------- Clean: XP look & feel in Code::Blocks ---------------
Cleaned "Code::Blocks - XP look & feel"
-------------- Clean: Projects-workspaces importer in Code::Blocks ---------------
Cleaned "Code::Blocks - Projects-workspaces importer"
-------------- Build: exchndl in Code::Blocks ---------------
mingw32-gcc.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -IC:\Usr\Proj\wxWidgets2810\include -IC:\Usr\Proj\wxWidgets2810\contrib\include -IC:\Usr\Proj\wxWidgets2810\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Ibase\exchndl\include -c C:\Usr\Proj\cbBeta\trunk\src\base\exchndl\exchndl.c -o .objs\base\exchndl\exchndl.o
mingw32-g++.exe -shared -Wl,--dll -Lbase\tinyxml -LC:\Usr\Proj\wxWidgets2810\lib\gcc_dll -Lbase\exchndl\lib .objs\base\exchndl\exchndl.o -o devel\exchndl.dll -mthreads -lwxmsw28u -lbfd -liberty -lintl
c:/usr/mingw431/bin/../lib/gcc/mingw32/4.3.1/../../../libbfd.a(section.o):section.c:(.text+0x86b): undefined reference to `___mingw_vsprintf'
c:/usr/mingw431/bin/../lib/gcc/mingw32/4.3.1/../../../libbfd.a(bfd.o):bfd.c:(.text+0x75b): undefined reference to `___mingw_vfprintf'
c:/usr/mingw431/bin/../lib/gcc/mingw32/4.3.1/../../../libbfd.a(bfd.o):bfd.c:(.text+0x7ab): undefined reference to `___mingw_vsprintf'
c:/usr/mingw431/bin/../lib/gcc/mingw32/4.3.1/../../../libbfd.a(bfd.o):bfd.c:(.text+0xecd): undefined reference to `___mingw_vfprintf'
c:/usr/mingw431/bin/../lib/gcc/mingw32/4.3.1/../../../libbfd.a(libbfd.o):libbfd.c:(.text+0x6ab): undefined reference to `___mingw_vfprintf'
c:/usr/mingw431/bin/../lib/gcc/mingw32/4.3.1/../../../libbfd.a(binary.o):binary.c:(.text+0x17b): undefined reference to `___mingw_vsprintf'
c:/usr/mingw431/bin/../lib/gcc/mingw32/4.3.1/../../../libbfd.a(coffgen.o):coffgen.c:(.text+0x8db): undefined reference to `___mingw_vfprintf'
c:/usr/mingw431/bin/../lib/gcc/mingw32/4.3.1/../../../libbfd.a(pei-i386.o):pei-i386.c:(.text+0x3bbb): undefined reference to `___mingw_vsprintf'
c:/usr/mingw431/bin/../lib/gcc/mingw32/4.3.1/../../../libbfd.a(srec.o):srec.c:(.text+0x35b): undefined reference to `___mingw_vsprintf'
c:/usr/mingw431/bin/../lib/gcc/mingw32/4.3.1/../../../libbfd.a(srec.o):srec.c:(.text+0x158b): undefined reference to `___mingw_vfprintf'
c:/usr/mingw431/bin/../lib/gcc/mingw32/4.3.1/../../../libbfd.a(tekhex.o):tekhex.c:(.text+0x3bb): undefined reference to `___mingw_vfprintf'
c:/usr/mingw431/bin/../lib/gcc/mingw32/4.3.1/../../../libbfd.a(ihex.o):ihex.c:(.text+0x1bb): undefined reference to `___mingw_vsprintf'
c:/usr/mingw431/bin/../lib/gcc/mingw32/4.3.1/../../../libbfd.a(syms.o):syms.c:(.text+0xeab): undefined reference to `___mingw_vfprintf'
c:/usr/mingw431/bin/../lib/gcc/mingw32/4.3.1/../../../libbfd.a(linker.o):linker.c:(.text+0xc9b): undefined reference to `___mingw_vsprintf'
c:/usr/mingw431/bin/../lib/gcc/mingw32/4.3.1/../../../libbfd.a(dwarf2.o):dwarf2.c:(.text+0xeab): undefined reference to `___mingw_vsprintf'
c:/usr/mingw431/bin/../lib/gcc/mingw32/4.3.1/../../../libbfd.a(peigen.o):peigen.c:(.text+0x94b): undefined reference to `___mingw_vfprintf'
c:/usr/mingw431/bin/../lib/gcc/mingw32/4.3.1/../../../libbfd.a(elflink.o):elflink.c:(.text+0x34bb): undefined reference to `___mingw_vsprintf'
c:/usr/mingw431/bin/../lib/gcc/mingw32/4.3.1/../../../libbfd.a(elf.o):elf.c:(.text+0x19bb): undefined reference to `___mingw_vsprintf'
c:/usr/mingw431/bin/../lib/gcc/mingw32/4.3.1/../../../libbfd.a(elf.o):elf.c:(.text+0x51ab): undefined reference to `___mingw_vfprintf'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
19 errors, 0 warnings
What else do I have to install to get codeblocks SVN to compile?
thanks
IMHO, we should remove exchndl target (Patch#2780) from our repo.
Well it works for me without any issues a very long time with different compilers, really. My intention was not to depend on a nearly unsupported DLL that we cannot compile. In the end this DLL is not provided with any GCC distro to my knowledge anymore. So I'd vote for at least leaving the sources in SVN (as a backup / reference) but probably disable compiling the target by simply removing it from the virtual "All" target. How does that sound?
Hi, All, any comment about this patch?
I can remove the libintl depend.
I am just add a file named "intlimpl.c", here is the content.
/*
* This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
* http://www.gnu.org/licenses/lgpl-3.0.html
*/
const char* libintl_dgettext (const char *__domainname, const char *__msgid)
{
return __msgid;
}