[solved] GDAL not found during Windows build
Added by Mathieu Leplatre 8 months ago
Hi all,
I am trying to build Merkaartor with QtCreator on Windows7 64 bits (<troll>poor me :)</troll>).
It compiles well (means gdal.h was found etc.), but fails at linking with GDAL.
Cannot find -lgdal
File not found:
collect2: ld returned 1 exit status
Basically, what I did is :
- install Qt SDK with mingw
- merge mingw-binaries subfolders with those provided by Qt
But I could not find any `gdal.a` in `mingw-binaries/lib`. Is this normal ?
On the Web, I only find VisualStudio builds of GDAL (like gdal16.dll). Adding those to `mingw/lib` fails with a "_file not recognized : File format not recognized_", which does not suprise me so much by the way.
edit: ok, there is `libgdal.dll` in `bin/`
How do you manage this for building Merkaartor releases ? Could you please give me a hint ?
Thank you very much,
Mathieu
PS: wiki sections are said outdated, I volonteer to write an up-to-date version if I succeed :)
Replies (4)
RE: GDAL not found during Windows build
-
Added by Mathieu Leplatre 8 months ago
Using Dependency Walker, I started to investigate. I am starting to believe I should reinstall the operating system in 32bits to take advantage of your mingw-binaries. Am I wrong ?
RE: GDAL not found during Windows build
-
Added by Mathieu Leplatre 8 months ago
D'oh ! Same error with Windows 7 32 bits ...
I read somewhere *.dll were supported by Visual Studio only, do you build with QtCreator and mingw right ?
Thank you,
Mathieu
RE: GDAL not found during Windows build
-
Added by Mathieu Leplatre 8 months ago
I could compile it by :
- merging mingw-binaries folders with those provided by Qt SDK mingw
- adding the following line in .pro file :
LIBS += -LC:/Qt/4.7.4/mingw/bin
I thank Sbe for his precious hint : dependency walker : http://www.dependencywalker.com
RE: [solved] GDAL not found during Windows build
-
Added by Andrew Symonds about 1 month ago
Totally, the actual write-up Online Thesis is really the very best in that will worthwhile matter. I really fit in jointly with your results and certainly am going to keenly seem to be toward your Thesis Proposal own upcoming improvements. Just telling many thanks could not only be sufficient, for your exceptional readability as part of your composing.I'll use this information to provide for my friends. Custom Thesis
(1-4/4)