LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-25-2008, 12:34 PM   #1
aixilin
LQ Newbie
 
Registered: Aug 2008
Posts: 28

Rep: Reputation: 15
problems about gtkconfig


I try to compile a cpp file by gtkconfig on Debian system.
It can not work now.
Code:
g++ -o test1394 test1394.cpp 'pkg-config --cflags --labs opencv'
it gives me:
Code:
g++: pkg-config --cflags --labs opencv: No such file or directory
But if I do:
Code:
pkg-config --cflags opencv
or
Code:
pkg-config --libs opencv
it will give me correct result, like:
Code:
-I/usr/local/include/opencv
Code:
-L/usr/local/lib -lcxcore -lcv -lhighgui -lcvaux -lml

what's the problem?
 
Old 08-25-2008, 12:41 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by aixilin View Post
I try to compile a cpp file by gtkconfig on Debian system.
It can not work now.
Code:
g++ -o test1394 test1394.cpp 'pkg-config --cflags --labs opencv'
You need to use "backticks" (`) instead of regular single quotes. I assume you also mean "--libs", rather than "--labs".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 11 on a laptop (problems and problems and problems) kizersouzay Slackware 20 02-08-2007 10:52 AM
Marvell Yukon Network driver problems, Lilo Windows boot Problems mellowdog Slackware - Installation 7 01-25-2006 02:18 AM
Problems, problems, problems. Lets start with the soundcard Kre8ive Linux - Newbie 5 08-07-2003 01:20 AM
Problems, problems, problems. Lets start with the ES 1868 AudioDrive Kre8ive Linux - Newbie 1 08-06-2003 07:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration