Opened 11 years ago

Closed 11 years ago

#463 closed defect (fixed)

C++ example build errors if libhdf4-alt-dev is installed

Reported by: hholzgra Owned by: Peter Baumann
Priority: minor Milestone:
Component: manuals_and_examples Version: 8.5
Keywords: Cc:
Complexity: Medium

Description

The current build system takes care of either linking against df and mdhdf libraries, or the dfalt/mdhdf alternatives that are needed on e.g. current Ubuntu as the non-alt package conflicts with gdal …

The c++ example still has -ldf -lmdhdf hardcoded in Makefile.am though, and so building the c++ example in manuals_and_examples/examples/c++ fails with linker errors …

Attachments (1)

patch (1.0 KB ) - added by hholzgra 11 years ago.
remove unnecessary -ldf -lmdhdf from example Makefile.am

Download all attachments as: .zip

Change History (4)

by hholzgra, 11 years ago

Attachment: patch added

remove unnecessary -ldf -lmdhdf from example Makefile.am

comment:1 by Peter Baumann, 11 years ago

great catch, thanks!
Could I ask you to submit the patch, which you kindly provided, via patch manager (see menu list top right), as you are the owner and have to agree to use the code (I am not allowed to do that).
Thanks again!

comment:2 by hholzgra, 11 years ago

Can't i just say that i contribute this under BSD (without advertising claus) license terms?

Agreeing to contribution terms can be tricky depending on the jurisdiction you work in, it is not really a problem for me in .de working for a .fi company, but i know from several of my .us colleagues that it can become pretty tricky over there …

comment:3 by Peter Baumann, 11 years ago

Resolution: fixed
Status: newclosed

first, thanks for the patch!
Unfortunately, due to licensing issues and code provenance (OSGeo is watching us closely!) we need to have strong emphasis on this. Also, the project needs to run _one_ licensing scheme, mixing GPL and BSD results in a legal nowhereland which might kill the project. Thanks for your understanding!

Note: See TracTickets for help on using tickets.