Opened 15 months ago

Closed 15 months ago

Last modified 15 months ago

#6590 closed defect (fixed)

compiling GDAL with external qhull lib fails in Windows

Reported by: dsogari Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: unspecified
Severity: normal Keywords: qhull compilation
Cc:

Description (last modified by dsogari)

I tried to compile GDAL with MinGW on Windwows using an external qhull library and it gave compilation errors in a few source files. I did not save the compile log to show you the error messages, sorry.

What I know for sure is that qhull has a header file called io.h, which is also distributed as part of mingw. In my case, it is located under <prefix>/x86_64-w64-mingw32/include, for 64-bit, and <prefix>/i686-w64-mingw32/include, for 32-bit).

This effectively makes the compilation fail, as the io.h file from qhull is chosen to be included instead and it does not define some symbols needed by GDAL.

Change History (5)

comment:1 Changed 15 months ago by dsogari

Description: modified (diff)

comment:2 Changed 15 months ago by Even Rouault

Resolution: fixed
Status: newclosed

In 34637:

Try to avoid confusiong between libqhull io.h and mingw own io.h (fixes #6590)

comment:3 Changed 15 months ago by Even Rouault

I hope the above would fix the issue but I didn't try on mingw/windows

comment:4 Changed 15 months ago by Even Rouault

In 34641:

Rename libqhull into internal_libqhull to avoid confusing in includes when there's a /usr/include/libqhull (fixes #6590)

comment:5 Changed 15 months ago by dsogari

Yes, that solves the issue. Many thanks!

Note: See TracTickets for help on using tickets.