<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Forum du club des développeurs et IT Pro - Bibliothèques</title>
		<link>https://www.developpez.net/forums/</link>
		<description><![CDATA[Forum d'entraide sur les bibliothèques C++ : installation, utilisation. Avant de poster : Cours sur les bibliothèques C++]]></description>
		<language>fr</language>
		<lastBuildDate>Thu, 04 Jun 2026 19:35:50 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>15</ttl>
		<image>
			<url>https://forum.developpez.be/images/misc/rss.png</url>
			<title>Forum du club des développeurs et IT Pro - Bibliothèques</title>
			<link>https://www.developpez.net/forums/</link>
		</image>
		<item>
			<title>Question juridique sur</title>
			<link>https://www.developpez.net/forums/showthread.php?t=2180598&amp;goto=newpost</link>
			<pubDate>Mon, 24 Nov 2025 07:55:54 GMT</pubDate>
			<description>Bonjour, 
 
Je développe une...</description>
			<content:encoded><![CDATA[<div>Bonjour,<br />
<br />
Je développe une api qui utilise unicorn , <br />
Ai-je le droit de commercialiser mon API utilisant les API unicorn en fournissant juste la .dll de unicorn ?<br />
<br />
Merci</div>

]]></content:encoded>
			<category domain="https://www.developpez.net/forums/f1274/c-cpp/cpp/bibliotheques/">Bibliothèques</category>
			<dc:creator>yann458</dc:creator>
			<guid isPermaLink="true">https://www.developpez.net/forums/d2180598/c-cpp/cpp/bibliotheques/question-juridique/</guid>
		</item>
		<item>
			<title>Comment ajouter libnice à mon projet?</title>
			<link>https://www.developpez.net/forums/showthread.php?t=2180575&amp;goto=newpost</link>
			<pubDate>Fri, 21 Nov 2025 20:56:25 GMT</pubDate>
			<description><![CDATA[Bonjour, 
J'ai commencé un...]]></description>
			<content:encoded><![CDATA[<div>Bonjour,<br />
J'ai commencé un projet c++ sous windows 11 avec qt 6.10 et raylib. C'est plutôt conceptuel pour l'instant mais il y a déjà quelques fonctionnalité sympa comme le peer2peer.<br />
J'ai donc mes clients qui se connectent les uns aux autres, peuvent tchatter et d'autres fonctionnalités sont à venir mais j'ai besoin d'ajouter libnice à mon projet pour que toute ma partie network puisse fonctionner au delà d'un réseau local.<br />
<br />
Le truc c'est que pour l'instant je n'utilise que cmake 4.1.2, vs_BuildTools et notepad++ en gros et je compile avec:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><table cellspacing="0" cellpadding="0"><tr><td valign="top" width="26"><div style="border: 1px dashed gray; padding-left: 5px; padding-right: 5px; margin-right: 5px; text-align: right; font-family: monospace">1<br />2<br />3<br /></div></td><td valign="top"><pre style="margin: 0">mkdir build &amp;&amp; cd build
cmake .. -G <span style="color: #FF0000;">&quot;Visual Studio 17 2022&quot;</span> -A x64
cmake --build . --config Release</pre></td></tr></table></code><hr />
</div>mon cmakelists<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><table cellspacing="0" cellpadding="0"><tr><td valign="top" width="33"><div style="border: 1px dashed gray; padding-left: 5px; padding-right: 5px; margin-right: 5px; text-align: right; font-family: monospace">1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br /></div></td><td valign="top"><pre style="margin: 0">cmake_minimum_required<span style="color: black;">&#40;</span>VERSION <span style="color: #cc66cc;">3.21</span><span style="color: black;">&#41;</span><span style="color: #339933;">#4.1.2)</span>
project<span style="color: black;">&#40;</span>YouNameIt LANGUAGES CXX<span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #339933;"># This makes sure that the dynamic library goes into the build directory automatically.</span>
set<span style="color: black;">&#40;</span>CMAKE_RUNTIME_OUTPUT_DIRECTORY <span style="color: #FF0000;">&quot;${CMAKE_BINARY_DIR}/$&lt;CONFIGURATION&gt;&quot;</span><span style="color: black;">&#41;</span>
set<span style="color: black;">&#40;</span>CMAKE_LIBRARY_OUTPUT_DIRECTORY <span style="color: #FF0000;">&quot;${CMAKE_BINARY_DIR}/$&lt;CONFIGURATION&gt;&quot;</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #339933;"># Tell CMake where to look for Qt 6</span>
set<span style="color: black;">&#40;</span>CMAKE_PREFIX_PATH <span style="color: #FF0000;">&quot;C:/Qt/6.10.0/msvc2022_64/lib/cmake&quot;</span> CACHE PATH <span style="color: #FF0000;">&quot;Qt6 CMake modules&quot;</span> FORCE<span style="color: black;">&#41;</span>
<span style="color: #339933;">#set(CMAKE_PREFIX_PATH &quot;C:/Qt/6.10.0/msvc2022_64&quot;)</span>
&nbsp;
set<span style="color: black;">&#40;</span>CMAKE_CXX_STANDARD <span style="color: #cc66cc;">17</span><span style="color: black;">&#41;</span>
set<span style="color: black;">&#40;</span>CMAKE_CXX_STANDARD_REQUIRED ON<span style="color: black;">&#41;</span>
set<span style="color: black;">&#40;</span>CMAKE_CXX_EXTENSIONS OFF<span style="color: black;">&#41;</span>
set<span style="color: black;">&#40;</span>CMAKE_AUTOMOC ON<span style="color: black;">&#41;</span>
set<span style="color: black;">&#40;</span>CMAKE_AUTORCC ON<span style="color: black;">&#41;</span>
set<span style="color: black;">&#40;</span>CMAKE_AUTOUIC ON<span style="color: black;">&#41;</span>
&nbsp;
set<span style="color: black;">&#40;</span>SOURCES
    main.cpp
	LauncherDialog.cpp
	MazeGame.cpp
	NetworkManager.cpp
	PeerDiscovery.cpp
	PeerServer.cpp
	ChatClient.cpp
	ChatUI.cpp
	Peer.h
	PlayerProfile.h
	LauncherDialog.h
	MazeGame.h
	NetworkManager.h
	PeerDiscovery.h
	PeerServer.h
	ChatClient.h
	ChatUI.h
	MazeConfig.h	
<span style="color: black;">&#41;</span>
&nbsp;
add_executable<span style="color: black;">&#40;</span>YouNameIt $<span style="color: black;">&#123;</span>SOURCES<span style="color: black;">&#125;</span><span style="color: black;">&#41;</span>
&nbsp;
find_package<span style="color: black;">&#40;</span>raylib <span style="color: #cc66cc;">5.0</span> QUIET<span style="color: black;">&#41;</span>
<span style="color: #0000ff;">if</span> <span style="color: black;">&#40;</span>NOT raylib_FOUND<span style="color: black;">&#41;</span>
    include<span style="color: black;">&#40;</span>FetchContent<span style="color: black;">&#41;</span>
    FetchContent_Declare<span style="color: black;">&#40;</span>
        raylib
        GIT_REPOSITORY https:<span style="color: #808080;">//github.com/raysan5/raylib.git</span>
        GIT_TAG <span style="color: #cc66cc;">5.0</span>
    <span style="color: black;">&#41;</span>
    FetchContent_MakeAvailable<span style="color: black;">&#40;</span>raylib<span style="color: black;">&#41;</span>
endif<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
&nbsp;
find_package<span style="color: black;">&#40;</span>OpenGL REQUIRED<span style="color: black;">&#41;</span>
find_package<span style="color: black;">&#40;</span>Qt6 <span style="color: #cc66cc;">6.10</span> COMPONENTS Widgets Gui Core Network OpenGL OpenGLWidgets REQUIRED<span style="color: black;">&#41;</span>
&nbsp;
&nbsp;
target_link_libraries<span style="color: black;">&#40;</span>YouNameIt PRIVATE 
	OpenGL::GL
	Qt6::Widgets
    Qt6::Gui
    Qt6::Core
	Qt6::Network
	Qt6::OpenGL
	Qt6::OpenGLWidgets
	raylib
<span style="color: black;">&#41;</span>
&nbsp;
&nbsp;
target_compile_features<span style="color: black;">&#40;</span>YouNameIt PRIVATE cxx_std_17<span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #339933;"># Windows specific libraries for Raylib</span>
<span style="color: #0000ff;">if</span> <span style="color: black;">&#40;</span>WIN32<span style="color: black;">&#41;</span>
    target_link_libraries<span style="color: black;">&#40;</span>YouNameIt PRIVATE winmm<span style="color: black;">&#41;</span>
endif<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
&nbsp;
target_compile_definitions<span style="color: black;">&#40;</span>YouNameIt PRIVATE 
	GL_SILENCE_DEPRECATION
	QT_NO_OPENGL_ES_2
	GLFW_INCLUDE_NONE
<span style="color: black;">&#41;</span>
&nbsp;
&nbsp;
<span style="color: #339933;"># Optional: hide console window</span>
<span style="color: #339933;">#set_target_properties(YouNameIt PROPERTIES WIN32_EXECUTABLE TRUE)</span></pre></td></tr></table></code><hr />
</div><br />
et donc quelle serait la méthode la plus simple pour ajouter libnice parce qu'il n'utilise pas cmake, p-e vcpkg mais la dernière fois que j'ai voulu m'en servir il me linkait les trucs à moitié ou il n'a pas la dernière version de qt ou je ne sais plus quoi d'autre, ça m'a emmerdé plus qu'autre chose... ninja sous windows? meson... Oo?<br />
'fin bref, je suis un peu perdu parce que mon projet est assez minimaliste et j'aimerai que cela reste ainsi.<br />
N'y a-t-il pas moyen de linker libnice manuellement ou linké une dll ou quelque chose que je puisse ajouté et utiliser libnice à mon projet sans trop galérer?<br />
<a rel="nofollow" href="https://gitlab.freedesktop.org/libnice/libnice/" target="_blank">https://gitlab.freedesktop.org/libnice/libnice/</a><br />
<br />
<img src="https://www.developpez.net/forums/attachments/p671984d1763758464/c-cpp/cpp/bibliotheques/ajouter-libnice-projet/wip1.png/" border="0" alt="Nom : wip1.png
Affichages : 102
Taille : 57,0 Ko"  style="float: CONFIG" /><br />
<img src="https://www.developpez.net/forums/attachments/p671985d1763758483/c-cpp/cpp/bibliotheques/ajouter-libnice-projet/wip2.png/" border="0" alt="Nom : wip2.png
Affichages : 98
Taille : 49,3 Ko"  style="float: CONFIG" /><br />
<br />
Merci.</div>


	<div style="padding:10px">

	

	
		<fieldset class="fieldset">
			<legend>Images attachées</legend>
				<div style="padding:10px">
				<img class="attach" src="https://www.developpez.net/forums/attachments/p671984d1763758464/c-cpp/cpp/bibliotheques/ajouter-libnice-projet/wip1.png/" alt="" />&nbsp;<img class="attach" src="https://www.developpez.net/forums/attachments/p671985d1763758483/c-cpp/cpp/bibliotheques/ajouter-libnice-projet/wip2.png/" alt="" />&nbsp;
			</div>
		</fieldset>
	

	

	

	</div>
]]></content:encoded>
			<category domain="https://www.developpez.net/forums/f1274/c-cpp/cpp/bibliotheques/">Bibliothèques</category>
			<dc:creator>noals</dc:creator>
			<guid isPermaLink="true">https://www.developpez.net/forums/d2180575/c-cpp/cpp/bibliotheques/ajouter-libnice-projet/</guid>
		</item>
		<item>
			<title>API Lief</title>
			<link>https://www.developpez.net/forums/showthread.php?t=2180534&amp;goto=newpost</link>
			<pubDate>Wed, 19 Nov 2025 00:01:28 GMT</pubDate>
			<description>Bonjour, 
Pour compiler les...</description>
			<content:encoded><![CDATA[<div>Bonjour,<br />
Pour compiler les API Lief ,<br />
Quand je fais cmake -DCMAKE_BUILD_TYPE=Release ..<br />
et que je compile , c'est ok .<br />
Quand je fais cmake  -DLIEF_DEBUG_INFO=on  -DLIEF_EXTENDED=on  -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDebug ..<br />
ca compile , mais les exemples ne trouve pas les fonctions externes du .lib (lief.lib)<br />
<br />
Comment faire ?</div>

]]></content:encoded>
			<category domain="https://www.developpez.net/forums/f1274/c-cpp/cpp/bibliotheques/">Bibliothèques</category>
			<dc:creator>yann458</dc:creator>
			<guid isPermaLink="true">https://www.developpez.net/forums/d2180534/c-cpp/cpp/bibliotheques/api-lief/</guid>
		</item>
	</channel>
</rss>
