<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=377462&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / bashrc compilation gcc [résolu]]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=377462</link>
		<description><![CDATA[Les sujets les plus récents dans bashrc compilation gcc [résolu].]]></description>
		<lastBuildDate>Sat, 06 Feb 2010 11:17:08 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  bashrc compilation gcc [résolu]]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3261349#p3261349</link>
			<description><![CDATA[<p>ça a l&#039;air de très bien fonctionner avec une fonction merci</p><p>pour le makefile c&#039;est un fichier à mettre à coté de mon code source et puis faire simplement &#039;make&#039; ?<br />parce que je travaille dans plusieurs dossiers et tout</p>]]></description>
			<author><![CDATA[dummy@example.com (Rizzen Virnn)]]></author>
			<pubDate>Sat, 06 Feb 2010 11:17:08 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3261349#p3261349</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  bashrc compilation gcc [résolu]]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3261346#p3261346</link>
			<description><![CDATA[<p>Je ne suis pas un pro des Makefile et je commence à peine à m&#039;y mettre.<br />Mais je pense que tu devrai regarder de ce coté la.<br />J&#039;ai essayer de reprendre un des miens et de l&#039;adapter pour toi:</p><div class="codebox"><pre><code>#definition de compilateur
CC = gcc

#specification des options du compilateur
CFLAGS = -ansi -Wall pkg-config --cflags opencv --libs opencv

#nom de l&#039;executable
PROG = programme

#definition de la cible a reconstruire
all : $(PROG)

#edition de liens et production de l&#039;executable
$(PROG) : programme.o
        $(CC) $(CFLAG) programme.o -o $(PROG)

#compilation du fichier programme
programme.o : programme.c 
        $(CC) $(CFLAGS) -c programme.c</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (bibleu)]]></author>
			<pubDate>Sat, 06 Feb 2010 11:16:20 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3261346#p3261346</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  bashrc compilation gcc [résolu]]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3261338#p3261338</link>
			<description><![CDATA[<p>hello<br />avec une fonction<br />gcccv() { gcc `pkg-config --cflags opencv` `pkg-config --libs opencv` $1 -o $(basename $1 .c ); }</p>]]></description>
			<author><![CDATA[dummy@example.com (credenhill)]]></author>
			<pubDate>Sat, 06 Feb 2010 11:11:03 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3261338#p3261338</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  bashrc compilation gcc [résolu]]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3261332#p3261332</link>
			<description><![CDATA[<p>euh tu peux développer ?<br />si c&#039;est plus facile je veux bien</p>]]></description>
			<author><![CDATA[dummy@example.com (Rizzen Virnn)]]></author>
			<pubDate>Sat, 06 Feb 2010 11:07:27 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3261332#p3261332</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  bashrc compilation gcc [résolu]]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3261329#p3261329</link>
			<description><![CDATA[<p>Salut,<br />pourquoi pas un Makefile ?</p>]]></description>
			<author><![CDATA[dummy@example.com (bibleu)]]></author>
			<pubDate>Sat, 06 Feb 2010 11:05:07 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3261329#p3261329</guid>
		</item>
		<item>
			<title><![CDATA[bashrc compilation gcc [résolu]]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3261323#p3261323</link>
			<description><![CDATA[<p>Bonjour,</p><p>pour compiler un fichier avec la librairie opencv, je dois faire la commande suivante (tiré de la <a href="http://opencv.willowgarage.com/wiki/CompileOpenCVUsingLinux">doc</a>)</p><div class="codebox"><pre><code>gcc `pkg-config --cflags opencv` `pkg-config --libs opencv` program.c -o program</code></pre></div><p>assez inbuvable et difficile a retenir</p><p>j&#039;aimerais faire une commande style</p><div class="codebox"><pre><code>gcccv program.c</code></pre></div><p>si j&#039;ai bien compris je dois rajouter une ligne dans le ~/.bashrc mais je ne vois pas comment passer le nom du fichier en paramètre et générer l&#039;output sans le &#039;.c&#039;</p><p>j&#039;ai essayé avec </p><div class="codebox"><pre><code>alias gcccv =&quot;gcc `pkg-config --cflags opencv` `pkg-config --libs opencv`&quot;</code></pre></div><p>mais quand je redemarre le terminal j&#039;ai </p><div class="codebox"><pre><code>bash: alias: gcccv : non trouvé
bash: alias: =gcc -I/usr/include/opencv   -lcxcore -lcv -lhighgui -lcvaux -lml   : non trouvé</code></pre></div><p>merci</p>]]></description>
			<author><![CDATA[dummy@example.com (Rizzen Virnn)]]></author>
			<pubDate>Sat, 06 Feb 2010 11:03:08 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3261323#p3261323</guid>
		</item>
	</channel>
</rss>
