Forums

pkg-config problems in Windows

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

pkg-config problems in Windows

Postby drissel » Thu Nov 17, 2011 10:12 am

@msys command line:
cd HowTo
cobra 390-GTK.cobra
Result:
$ pkg-config --libs gtk-sharp-2.0
| Package gtk-sharp-2.0 was not found in the pkg-config search path.
| Perhaps you should add the directory containing `gtk-sharp-2.0.pc'
| to the PKG_CONFIG_PATH environment variable
| No package 'gtk-sharp-2.0' found
error: Cannot locate package "gtk-sharp-2.0"
Compilation failed - 1 error, 0 warnings
Not running due to errors above.

I built a .pc file in my PKG_CONFIG_PATH with (among other things)
libdir="C:\\ProgramFiles/GtkSharp/2.12/bin"
...
Name: gtk-sharp-2.0
Version: 2.12
Libs: -L${libdir}

Result:
error: Cannot locate assembly reference "C:\\ProgramFiles/GtkSharp/2.12/bin -L". ...

I tried variations on the definition of libdir with results:
error: Cannot locate assembly reference "-L/c/Program\".

Copied the GtkSharp dir to C:\ProgramFiles - note no space - with results:
error: Cannot locate assembly reference "-L/c/ProgramFiles/GtkSharp/2.12/bin".
error: Cannot locate assembly reference "/c/ProgramFiles/GtkSharp/2.12/bin -L".
error: Cannot locate assembly reference "-LC:\\ProgramFiles/GtkSharp/2.12/bin".

Suggestions for Cobra noobie but pretty experienced programmer?

Thanks
Bill Drissel
Grand Prairie, TX, USA
drissel
 
Posts: 2

Return to Discussion

Who is online

Users browsing this forum: No registered users and 122 guests

cron