Opened 12 years ago

Last modified 11 years ago

#36321 closed defect

Package glib-2.0 was not found in the pkg-config search path — at Initial Version

Reported by: diogowbrito@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port:

Description

Hello,

I've successfully installed glib2 trough MacPorts but can't still compile my program.

Installed, as seen:

sudo port install glib2 ---> Computing dependencies for glib2 ---> Cleaning glib2 ---> Scanning binaries for linking errors: 100.0% ---> No broken files found.

sudo port install pkgconfig ---> Cleaning pkgconfig ---> Scanning binaries for linking errors: 100.0% ---> No broken files found.

And compiling...

eg: gcc -o main main.c pkg-config --libs --cflags glib-2.0 Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `glib-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'glib-2.0' found main.c:17:18: error: glib.h: No such file or directory

I tried, as the error says, to add the glib2 to PKG_CONFIG_PATH but wasn't able to find it in /opt/local/bin

The only folders found: glib-compile-resources glib-compile-schemas glib-genmarshal glib-gettextize glib-mkenums

Does anyone know what is not working or missing? ..A friend of mine was able to put it running doing the same things as I did.

Thank you in advance.

Change History (0)

Note: See TracTickets for help on using tickets.