[osgeo4w-dev] osgeo4w rev1262 dose not compile

hayashi at apptec.co.jp hayashi at apptec.co.jp
Thu Sep 5 03:58:16 PDT 2013


Hi Jef,

Thank you for your advice.

 > [1] http://trac.osgeo.org/osgeo4w/changeset/1257/trunk
is very useful information.

I missed to write my compile env, it is "cygwin/mingw".

 >> ini.h:52:2: error: #error OSGEO4W_MIRROR_URL not set
I fixed this error using your optional parameters.

But other error occur as blow,

--------------------------------------
In file included from ntdll.h:25:0,
                  from filemanip.cc:32:
/usr/i686-pc-mingw32/sys-root/mingw/include/ddk/ntapi.h:49:15: error: 
conflicting declaration ‘typedef void* PEXECUTION_STATE’
In file included from /usr/i686-pc-mingw32/sys-root/mingw/include/windows.h:62:0,
                  from win32.h:52,
                  from filemanip.cc:30:
/usr/i686-pc-mingw32/sys-root/mingw/include/winbase.h:1973:33: error: 
‘PEXECUTION_STATE’ has a previous declaration as ‘typedef DWORD* PEXECUTION_STATE’
Makefile:912: recipe for target `filemanip.o' failed
make[2]: *** [filemanip.o] Error 1
make[2]: Leaving directory `/home/newosgeo4w/setup'
Makefile:957: recipe for target `all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/newosgeo4w/setup'
Makefile:708: recipe for target `all' failed
make: *** [all] Error 2
-----------------------------

There are two typedef in include files...

include\winbase.h(1973): typedef DWORD EXECUTION_STATE, *PEXECUTION_STATE;
include\ddk\ntapi.h(49): typedef PVOID PEXECUTION_STATE;

Maybe PVIOD is (void *)

How do you fix this?

Best regards,
Hayashi.


(2013/09/05 18:13), Jürgen E. Fischer wrote:
> Hi,
>
> On Thu, 05. Sep 2013 at 16:53:47 +0900, hayashi at apptec.co.jp wrote:
>> I'm tring to compile rev1262 source codes downloaded from SVN and fail with some
>> errors.
>
>> make[2]: Entering directory `/home/newosgeo4w/setup'
....
>> In file included from desktop.cc:35:0:
>> ini.h:52:2: error: #error OSGEO4W_MIRROR_URL not set
>> Makefile:912: recipe for target `desktop.o' failed
>> make[2]: *** [desktop.o] Error 1
>> make[2]: Leaving directory `/home/newosgeo4w/setup'
>> Makefile:957: recipe for target `all-recursive' failed
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/newosgeo4w/setup'
>> Makefile:708: recipe for target `all' failed
>> make: *** [all] Error 2
>
> If you compile with cygwin/mingw, something like this (or exactly that, if
> you're about to try the testing64 rep):
>
> ./configure \
>          --host=i686-pc-mingw32 \
>          --build=i686-pc-cygwin \
>          CC="i686-pc-mingw32-gcc.exe " \
>          CXX="i686-pc-mingw32-g++.exe " \
>          CXXFLAGS="-mtune=i686 -mthreads -mms-bitfields -static-libstdc++ -DOSGEO4W_MIRROR_URL=\\\"http://download.osgeo.org/osgeo4w/testing64\\\""
>
> If you compile with MSVC change the setting in CMakeLists.txt
>
> See also [1].  At some point both should be made configurable.   I didn't
> bother to do that in CMakeLists.txt yet and adding an option to the configure
> stuff, would require some research on my end first. ;)
>
>
> Jürgen
>
> [1] http://trac.osgeo.org/osgeo4w/changeset/1257/trunk
>


-- 
--------------------------------------------------
OSGeo.JP
 http://www.osgeo.jp
--------------------------------------------------
APPLIED TECHNOLOGY CO.,LTD.

HIROFUMI HAYASHI
hayashi at apptec.co.jp

ZIP:531-0074
RISE88 Honjo-Higash 1-1-10
Osaka City

   Tel: 06-6373-6101
   Fax: 06-6373-6108
--------------------------------------------------


More information about the osgeo4w-dev mailing list