#30 Compilation fails with libproj-4.7.0

closed
nobody
7
2010-12-29
2010-05-26
Anonymous
No

Hi,

Compiling gdl-0.9rc4 fails with libproj v4.7.0. (http://trac.osgeo.org/proj/)

1) 1st of all, lib is now names libproj.so instead of libproj4.so (need some tweak in configure.in)

2) then, lib_proj.h has been replaced by 4 includes:
- /usr/include/nad_list.h
- /usr/include/org_proj4_Projections.h
- /usr/include/proj_api.h
- /usr/include/projects.h

3) namespace has changed again and seems to have came back to PJ_init......

PS: I've carefully checked the README in libproj 4.7.0 and the AUUTHORS file includes the original author of libproj4. Thus I'm confident that this release is the newest libproj available (updated on 29-Sep-2009, last CVS commit: 11-May-2010)

Discussion


  • Anonymous
    2010-05-26

    libproj namespace patch attempt

     
    Attachments

  • Anonymous
    2010-05-26

    • priority: 5 --> 7
     

  • Anonymous
    2010-05-26

    More infos:
    I'm running CentOS-5.5 x86_64
    I've built gdl-0.9rc4 rpm using fedora spec file with success
    I've build gdl-0.9rc4 rpm for python2.6 with success
    But when I activace libproj4, it fails.

    I've successfully build libproj-4.7.0 rpm using mandriva cooker proj-4.7.0 src.rpm (with minimal tunning)
    I've successfully built python2.6 packages for CentOS-5.5, and it works with all my other projetcs/rpms.

    What I've doe in the fedora gdl spec file to enable libproj4

    1) Added before autoreconf the lines (libname change):
    # Fix libproj4 nom named libproj
    sed -i -e 's/lproj4/lproj/g' -e 's/(proj4,/(proj,/g' configure.in

    2) Added to the configure_opts
    --enable-python_version=2.6 \\\ --with-libproj4 \\\

    3) tried to patch math_utl.hpp so it will find the include with correct defs, and updated the namespace. (still fails) (patch is attached).

    As I'm not a C++ programmer (only C) I'm stuck here.......

    regards.

     
    • status: open --> closed