MingGW build attempt

Bernhard Reiter bernhard at intevation.de
Tue Mar 28 21:27:00 CEST 2006


This evening I gave it a shot to build Thuban 1.1.0 on Windows XP SP2 
using MingGW.  

Here is my log, hitting an error in the end.
Maybe this really is a clashing symbol,
than we need to find out which file is right or change on of
the files.

-------------- next part --------------
20060328 Bernhard

	Trying to build 1.1.0 on windows.
	First attempt: Install MingGW
	/download/windows/mingw$ curl -O http://kent.dl.sourceforge.net/sourceforge/mingw/MinGW-5.0.2.exe
	(candidate)

	Logged in as administrator. Copy MinGW-5.0.2.exe to desktop.
	Execute.
		Trying "candiate". g++ and make additionally.
		Everything else standard.

	Using Amsterdam.

	Systemsteuerung, System -> Erweitert -> Umgebungsvariablen
			;C:\MinGW\bin

	Installing:
 		http://osdn.dl.sourceforge.net/sourceforge/wxpython/wxPython2.6-win32-unicode-2.6.3.0-py24.exe
		curl -O http://osdn.dl.sourceforge.net/sourceforge/wxpython/wxPython2.6-win32-devel-2.6.3.0.tar.gz
		curl -O http://www.python.org/ftp/python/2.4.2/python-2.4.2.msi
	
	c:\python24\python setup.py build_ext
		=> Did not work.

	Needed support for minggw.
	Got the pexports tool 42h.

	python24.dll is located in c:\windows\system32
	C:\thuban-build>pexports-0.42h\bin\pexports.exe c:\windows\system32\python24.dll
	 >python24.def

	dlltool --dllname python24.dll --def python24.def --output-lib libpython24.a
	Copied the resulting libpython24.a to c:\windows\system32

	cd Thuban-1.1.0
		setup.py build_ext --compile=mingw32

	Still missing the wx includes. The -devel readme says to
	add an include path for

		 wxPython-[version]\lib\vc_dll\mswuh  [for Unicode builds]
		         wxPython-[version]\include

	Thus trying:

	C:\thuban-build\Thuban-1.1.0>c:\python24\python setup.py build_ext --compiler=mingw -I c:\thuban-build\wxPython-2.6.3.0\lib\vc_dll\mswuh -I c:\thuban-build\wxPython-2.6.3.0\include

libraries/thuban/wxproj.cpp:26:22: projects.h: No such file or directory

	Okay I need bin and source of

	curl -O ftp://ftp.remotesensing.org/pub/proj/proj446_win32_bin.zip
	curl -O ftp://ftp.remotesensing.org/pub/proj/proj-4.4.6.zip

	Try again:

	C:\thuban-build\Thuban-1.1.0>c:\python24\python setup.py build_ext --compiler=mingw32 -I c:\thuban-build\wxPython-2.6.3.0\lib\vc_dll\mswuh;c:\thuban-build\wxPython-2.6.3.0\include;C:\thuban-build\proj-4.4.6\src

	A lot better, but hitting the following error message:

Error message:

C:\thuban-build\Thuban-1.1.0>c:\python24\python setup.py build_ext --compiler=mi
ngw32 -I c:\thuban-build\wxPython-2.6.3.0\lib\vc_dll\mswuh;c:\thuban-build\wxPyt
hon-2.6.3.0\include;C:\thuban-build\proj-4.4.6\src
running build_ext
building 'Lib.wxproj' extension
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DWIN32 -D__WIN32__ -D_WINDOWS -
D__WINDOWS__ -DWINVER=0x0400 -D__WIN95__ -DSTRICT -D__WXMSW__ -DWXUSINGDLL=1 -DS
WIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -Ilibraries/shapelib -I..\proj-4.4
.7\src -Ilibraries/pyshapelib/ -I..\wxPython-2.4.2.4\lib\mswdllh -I..\wxPython-2
.4.2.4\include -Ic:\thuban-build\wxPython-2.6.3.0\lib\vc_dll\mswuh -Ic:\thuban-b
uild\wxPython-2.6.3.0\include -IC:\thuban-build\proj-4.4.6\src -Ic:\python24\inc
lude -Ic:\python24\PC -c libraries/thuban/wxproj.cpp -o build\temp.win32-2.4\Rel
ease\libraries\thuban\wxproj.o
In file included from C:/MinGW/bin/../lib/gcc/mingw32/3.4.4/../../../../include/
windef.h:246,
                 from C:/MinGW/bin/../lib/gcc/mingw32/3.4.4/../../../../include/
windows.h:48,
                 from c:/thuban-build/wxPython-2.6.3.0/include/wx/msw/wrapwin.h:
51,
                 from c:/thuban-build/wxPython-2.6.3.0/include/wx/msw/private.h:
17,
                 from c:/thuban-build/wxPython-2.6.3.0/include/wx/filefn.h:173,
                 from c:/thuban-build/wxPython-2.6.3.0/include/wx/utils.h:32,
                 from c:/thuban-build/wxPython-2.6.3.0/include/wx/cursor.h:37,
                 from c:/thuban-build/wxPython-2.6.3.0/include/wx/event.h:32,
                 from c:/thuban-build/wxPython-2.6.3.0/include/wx/wx.h:23,
                 from libraries/thuban/wxproj.cpp:31:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.4/../../../../include/winnt.h:97: error: con
flicting declaration 'typedef TCHAR*projUV'
C:/thuban-build/proj-4.4.6/src/projects.h:145: error: 'projUV' has a previous de
claration as `typedef struct projUV projUV'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.4/../../../../include/winnt.h:97: error: dec
laration of `typedef TCHAR*projUV'
C:/thuban-build/proj-4.4.6/src/projects.h:145: error: conflicts with previous de
claration `typedef struct projUV projUV'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.4/../../../../include/winnt.h:97: error: dec
laration of `typedef TCHAR*projUV'
C:/thuban-build/proj-4.4.6/src/projects.h:145: error: conflicts with previous de
claration `typedef struct projUV projUV'
error: command 'gcc' failed with exit status 1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20060328/3af7242d/attachment.bin


More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)