Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: ozbarry on May 12, 2011, 07:23:24 pm
-
Hello,
I've used code::blocks for a long time, but this is the first time I've had to use it for a "real" project that's being developed on Windows, Mac and Linux.
Using Linux and OSX, we can use `pkg-config <lib> --cflags`, the the --libs equivalent under Build Options > Compiler Settings > Other Options and Build Options > Linker Settings > Other Linker Options, but in windows, I can't seem to get that working.
I've tried using code::blocks variables, too, but that doesn't seem to work.
Any suggestions?
Thanks,
-oz
-
Test from the cmd.exe prompt that "pkg-config <lib> --cflags" works.
Tim S.
-
C:\Users\Alexander>pkg-config
Must specify package names on the command line
C:\Users\Alexander>pkg-config --list-all
opencv OpenCV - Open Source Computer Vision Library
C:\Users\Alexander>pkg-config opencv --cflags
-IC:/MinGW/msys/1.0/etc/local/include/opencv -IC:/MinGW/msys/1.0/etc/local/include
Still no dice with code::blocks
-oz
-
Did you turn on Full Compiler Logging and see what CB sends to the Compiler?
What version of Code::Blocks?
Make sure you are using the right tick marks.
Tim S.
-
Ah, thanks for the help - turns out when I did mingw32-make install to opencv, it didn't copy the include files over to where the package config file said they were.
Thanks for the help (even though it wasn't code::blocks fault)
-Oz