Changes between Initial Version and Version 1 of Ticket #36321


Ignore:
Timestamp:
Sep 25, 2012, 10:32:37 AM (12 years ago)
Author:
neverpanic (Clemens Lang)
Comment:

Please remember to use WikiFormatting and preview your post when writing in Trac.

What does pkg-config --cflags --libs glib-2.0 print for you? It is different from /opt/local/bin/pkg-config --cflags --libs glib-2.0? If yes, what does which pkg-config print? Do you have $PKG_CONFIG_PATH set? Can you try setting it to /opt/local/lib/pkgconfig and re-trying?

I don't think this is a bug in MacPorts or the glib port. If you need support you should have asked on the macports-users mailinglist.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36321

    • Property Status changed from new to closed
    • Property Resolution changed from to invalid
  • Ticket #36321 – Description

    initial v1  
    55
    66Installed, as seen:
    7 
     7{{{
    88sudo port install glib2
    99--->  Computing dependencies for glib2
     
    1616--->  Scanning binaries for linking errors: 100.0%
    1717--->  No broken files found.
    18 
     18}}}
    1919And compiling...
    2020
    2121eg:
     22{{{
    2223gcc -o main main.c `pkg-config --libs --cflags glib-2.0`
    2324Package glib-2.0 was not found in the pkg-config search path.
     
    2627No package 'glib-2.0' found
    2728main.c:17:18: error: glib.h: No such file or directory
    28 
     29}}}
    2930
    3031I tried, as the error says, to add the glib2 to PKG_CONFIG_PATH but wasn't able to find it in