<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[xlings]]></title><description><![CDATA[一个开源的高度抽象的包管理器。[多版本管理 + 万物皆可成包]: 应用、库、项目模板、环境配置、插件、脚本、游戏Mods......
- [xlings官网](https:&#x2F;&#x2F;xlings.d2learn.org)
- [Github](https:&#x2F;&#x2F;github.com&#x2F;d2learn&#x2F;xlings)]]></description><link>http://forum.d2learn.org/category/9</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 12:27:00 GMT</lastBuildDate><atom:link href="http://forum.d2learn.org/category/9.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Feb 2026 08:01:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[安装node和vscode都显示git not found，但是有git版本号#xlings安装报错]]></title><description><![CDATA[<p dir="auto">参考: http://forum.d2learn.org/post/493</p>
]]></description><link>http://forum.d2learn.org/topic/162/安装node和vscode都显示git-not-found-但是有git版本号-xlings安装报错</link><guid isPermaLink="true">http://forum.d2learn.org/topic/162/安装node和vscode都显示git-not-found-但是有git版本号-xlings安装报错</guid><dc:creator><![CDATA[sunrisepeak]]></dc:creator><pubDate>Mon, 02 Feb 2026 08:01:11 GMT</pubDate></item><item><title><![CDATA[xlings install d2x:mcpp-standard报错]]></title><description><![CDATA[<p dir="auto">xlings安装的时候是再windows下安装的, 还是wsl下安装的啊。安装和使用要一致 (如果再wsl下使用需要安装linux版本</p>
<p dir="auto">包名找不到, 可以运行xim --update index 然后再试一试呢 如果还没有 可以运行 xim -s d2x 把搜索的结果贴到下面一下</p>
]]></description><link>http://forum.d2learn.org/topic/150/xlings-install-d2x-mcpp-standard报错</link><guid isPermaLink="true">http://forum.d2learn.org/topic/150/xlings-install-d2x-mcpp-standard报错</guid><dc:creator><![CDATA[SPeak]]></dc:creator><pubDate>Thu, 04 Dec 2025 12:56:56 GMT</pubDate></item><item><title><![CDATA[xlings 安装失败，git网络问题 - [xlings:xim] main: error - Cloning into &#x27;xim-pkgindex&#x27;... remote: [session-ac42ac85] reject by mode [ja-p] The requested URL returned error: 400]]></title><description><![CDATA[<p dir="auto">@saul-goodman-lja 嗯嗯, 可能是gitee网络服务的问题</p>
]]></description><link>http://forum.d2learn.org/topic/149/xlings-安装失败-git网络问题-xlings-xim-main-error-cloning-into-xim-pkgindex-remote-session-ac42ac85-reject-by-mode-ja-p-the-requested-url-returned-error-400</link><guid isPermaLink="true">http://forum.d2learn.org/topic/149/xlings-安装失败-git网络问题-xlings-xim-main-error-cloning-into-xim-pkgindex-remote-session-ac42ac85-reject-by-mode-ja-p-the-requested-url-returned-error-400</guid><dc:creator><![CDATA[SPeak]]></dc:creator><pubDate>Wed, 03 Dec 2025 17:52:50 GMT</pubDate></item><item><title><![CDATA[xlings 安装失败]]></title><description><![CDATA[<p dir="auto">@maoapoot 还记得第一安装为什么失败吗？网络原因之类的吗 还是 安装一半的 时候 中断了啊</p>
]]></description><link>http://forum.d2learn.org/topic/147/xlings-安装失败</link><guid isPermaLink="true">http://forum.d2learn.org/topic/147/xlings-安装失败</guid><dc:creator><![CDATA[SPeak]]></dc:creator><pubDate>Mon, 01 Dec 2025 15:44:05 GMT</pubDate></item><item><title><![CDATA[安装mcpp-standard时创建多级目录, 路径中包含空格时, 导致项目文件打开无代码]]></title><description><![CDATA[<p dir="auto">xlings工具已增加支持对空格路径的支持</p>

具体改动: https://github.com/d2learn/xlings/commit/2d80a98cbd90c3549211672554bff08ae90fa7ac


<p dir="auto">测试1 2空格路径截图</p>
<p dir="auto">image.png</p>
<p dir="auto">image.png</p>
]]></description><link>http://forum.d2learn.org/topic/143/安装mcpp-standard时创建多级目录-路径中包含空格时-导致项目文件打开无代码</link><guid isPermaLink="true">http://forum.d2learn.org/topic/143/安装mcpp-standard时创建多级目录-路径中包含空格时-导致项目文件打开无代码</guid><dc:creator><![CDATA[SPeak]]></dc:creator><pubDate>Sat, 08 Nov 2025 07:25:21 GMT</pubDate></item><item><title><![CDATA[显示vscode下载成功了 但一使用就显示&#x27;code.cmd&#x27;is not recognized......]]></title><description><![CDATA[<p dir="auto">测试了一下正常安装过程, 应该是没有问题的, 是不是之前安装过程存在中断或错误呢。 可以尝试卸载然后重新安装试一试</p>
xlings self clean
xlings remove code@1.100.1
xlings install code@1.100.1
code --version


<blockquote>
<p dir="auto">具体示例</p>
</blockquote>
<p dir="auto">image.png</p>
]]></description><link>http://forum.d2learn.org/topic/130/显示vscode下载成功了-但一使用就显示-code-cmd-is-not-recognized</link><guid isPermaLink="true">http://forum.d2learn.org/topic/130/显示vscode下载成功了-但一使用就显示-code-cmd-is-not-recognized</guid><dc:creator><![CDATA[SPeak]]></dc:creator><pubDate>Mon, 25 Aug 2025 09:17:48 GMT</pubDate></item><item><title><![CDATA[windows(powershell)安装xlings时出现乱码]]></title><description><![CDATA[<p dir="auto">谢谢,解决这个问题了</p>
]]></description><link>http://forum.d2learn.org/topic/127/windows-powershell-安装xlings时出现乱码</link><guid isPermaLink="true">http://forum.d2learn.org/topic/127/windows-powershell-安装xlings时出现乱码</guid><dc:creator><![CDATA[xyc]]></dc:creator><pubDate>Fri, 22 Aug 2025 08:34:10 GMT</pubDate></item><item><title><![CDATA[让cenos7也能轻松用上gcc15和C++23的import std特性 - 故事从xlings开源项目的一个issues开始]]></title><description><![CDATA[<h1>背景</h1>
<p dir="auto">前段时间社区中xlings项目上有人提了一个关于centos7上 安装gcc15的但是不能使用的问题, 我一看原来是由于glibc的版本太老了导致的 (制作gcc15包的时候我也没考虑太多glibc版本依赖问题)</p>
<p dir="auto">于是我就折腾了几天给<a href="https://github.com/d2learn/xlings" rel="nofollow ugc">xlings</a>工具增加了一个从源码构建gcc工具链的helper工具 <a href="https://github.com/d2learn/xim-pkgindex-fromsource/blob/main/pkgs/m/musl-gcc.lua" rel="nofollow ugc">musl-cross-make</a>, 同时也提供了一个预构建的gcc15包, <strong>让我们在centos7上可以用下面简单的方法就能安装gcc15或自己从源码构建gcc15</strong>. 最终效果如下:</p>
<h2>一键安装gcc15</h2>
<pre><code class="language-bash">xlings install gcc@15
</code></pre>
<h2>自己在本地 一键从源码构建gcc15</h2>
<pre><code class="language-bash">xlings install musl-cross-make #安装构建helper工具
# 命令格式: musl-cross-make version [--output yourOutputDir] [--target yourTargetArch]
musl-cross-make 15 --output mygcc-15
</code></pre>
<ul>
<li>原issues: <a href="https://github.com/d2learn/xlings/issues/107" rel="nofollow ugc">https://github.com/d2learn/xlings/issues/107</a></li>
<li>xlings开源工具: <a href="https://xlings.d2learn.org" rel="nofollow ugc">https://xlings.d2learn.org</a></li>
</ul>
<p dir="auto">下面是具体的问题解决过程, 以及 centos上 一键创建支持cpp23的cmake模板工程项目的使用示例&amp;演示...</p>
<h1>一、问题和解决的过程</h1>
<h2>Q1:  GLIBC的版本依赖问题</h2>
<ul>
<li><a href="https://github.com/d2learn/xlings/issues/107#issue-3300789666" rel="nofollow ugc">https://github.com/d2learn/xlings/issues/107#issue-3300789666</a></li>
</ul>
<pre><code>root/.xlings_software_install/xlings-main/bin/xmake: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by /root/.xlings_software_install/xlings-main/bin/xmake)
/root/.xlings_software_install/xlings-main/bin/xmake: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /root/.xlings_software_install/xlings-main/bin/xmake)
/root/.xlings_software_install/xlings-main/bin/xmake: /lib64/libc.so.6: version `GLIBC_2.29' not found (required by /root/.xlings_software_install/xlings-main/bin/xmake)
tools/install.unix.sh:行65: xlings: 未找到命令
</code></pre>
<h2>A1: 使用musl静态构建解决libc的依赖问题 - 已解决</h2>
<p dir="auto"><img src="/assets/uploads/files/1755427400156-4bd6a426-c93c-4733-9075-fad0bd686261-image.png" alt="4bd6a426-c93c-4733-9075-fad0bd686261-image.png" class=" img-fluid img-markdown" /></p>
<h2>Q2: <code>xlings install gcc@15.1.0</code>安装后工具链的使用问题</h2>
<ul>
<li><a href="https://github.com/d2learn/xlings/issues/107#issuecomment-3167203522" rel="nofollow ugc">https://github.com/d2learn/xlings/issues/107#issuecomment-3167203522</a></li>
</ul>
<h2>A2: 更新了gcc包(包括15.1.0)对centos的支持, 添加了可从源码构建包的选择及工具</h2>
<ul>
<li><a href="https://github.com/d2learn/xim-pkgindex/blob/main/pkgs/g/gcc.lua" rel="nofollow ugc">gcc</a>: 预先构建的二进制gcc工具链包
<ul>
<li>安装命令示例: <code>xlings install gcc@15</code></li>
</ul>
</li>
<li><a href="https://github.com/d2learn/xim-pkgindex-fromsource/blob/main/pkgs/m/musl-gcc.lua" rel="nofollow ugc">fromsource:musl-gcc</a>: 从源码构建基于musl的gcc工具链的xpkg包
<ul>
<li>安装命令示例: <code>xlings install fromesource:musl-gcc@version</code></li>
</ul>
</li>
<li><a href="https://github.com/d2learn/xim-pkgindex/blob/main/pkgs/m/musl-cross-make.lua" rel="nofollow ugc">musl-cross-make</a>: 可自定义的工具链构建helper工具
<ul>
<li>安装命令示例: <code>xlings install musl-cross-make</code></li>
<li>使用命令示例: <code>musl-cross-make version --output yourInstallDir</code>, <code>musl-cross-make 9.4 --output mygcc-9</code> 构建后会安装到当前目录的mygcc-9下</li>
</ul>
</li>
</ul>
<p dir="auto">原来的gcc</p>
<p dir="auto"><img src="/assets/uploads/files/1755427436036-9dd8c255-77dc-47ff-b5b6-6c6345fd1ae4-image.png" alt="9dd8c255-77dc-47ff-b5b6-6c6345fd1ae4-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">安装gcc15</p>
<p dir="auto"><img src="/assets/uploads/files/1755427493397-c1b573d2-6a4d-4150-ba6d-c4b57015f415-image.png" alt="c1b573d2-6a4d-4150-ba6d-c4b57015f415-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1755427500881-2eae2930-e8ba-440c-9742-dcaf5ee84ab3-image.png" alt="2eae2930-e8ba-440c-9742-dcaf5ee84ab3-image.png" class=" img-fluid img-markdown" /></p>
<h1>二、xlings在centos上的一些使用示例 (gcc工具链 + cpp23 import std模块)</h1>
<blockquote>
<p dir="auto">会自动安装依赖(gcc15 / cmake4 ...) , 并配置好环境</p>
</blockquote>
<h2>一键创建模板项目 + 自动安装依赖和配置环境</h2>
<p dir="auto"><img src="/assets/uploads/files/1755427523254-2c595d41-d0ed-424f-ada7-93ef240a09a7-image.png" alt="2c595d41-d0ed-424f-ada7-93ef240a09a7-image.png" class=" img-fluid img-markdown" /></p>
<h2>构建&amp;运行演示</h2>
<p dir="auto"><img src="/assets/uploads/files/1755427532477-aee61b54-60b2-4a53-8060-9d14f1462269-image.png" alt="aee61b54-60b2-4a53-8060-9d14f1462269-image.png" class=" img-fluid img-markdown" /></p>
<h1>三、其他</h1>
<ul>
<li>相关的issus: <a href="https://github.com/d2learn/xlings/issues/107" rel="nofollow ugc">https://github.com/d2learn/xlings/issues/107</a></li>
<li>xlings工具文档: <a href="https://xlings.d2learn.org/documents/quick-start/one-click-install.html" rel="nofollow ugc">https://xlings.d2learn.org/documents/quick-start/one-click-install.html</a></li>
<li>xlings工具仓库: <a href="https://github.com/d2learn/xlings" rel="nofollow ugc">https://github.com/d2learn/xlings</a></li>
<li>包索引仓库: <a href="https://github.com/d2learn/xim-pkgindex" rel="nofollow ugc">https://github.com/d2learn/xim-pkgindex</a></li>
<li>xlings社区论坛交流版块: <a href="https://forum.d2learn.org/category/9/xlings" rel="nofollow ugc">https://forum.d2learn.org/category/9/xlings</a></li>
</ul>
]]></description><link>http://forum.d2learn.org/topic/124/让cenos7也能轻松用上gcc15和c-23的import-std特性-故事从xlings开源项目的一个issues开始</link><guid isPermaLink="true">http://forum.d2learn.org/topic/124/让cenos7也能轻松用上gcc15和c-23的import-std特性-故事从xlings开源项目的一个issues开始</guid><dc:creator><![CDATA[SPeak]]></dc:creator><pubDate>Sun, 17 Aug 2025 11:19:50 GMT</pubDate></item><item><title><![CDATA[windows 安装 xlings 报错: xlings &#x2F; xmake 不是内部命令, Invoke-WebRequest 基础连接已经关闭]]></title><description><![CDATA[<p dir="auto">@tenp00  可能是临时的网络波动影响的下载安装包失败, 可以重新运行试一试. 如果还报这个问题, 可以按下面方法分两步安装试一试: https://xlings.d2learn.org/documents/qa.html</p>
<p dir="auto">image.png</p>
]]></description><link>http://forum.d2learn.org/topic/123/windows-安装-xlings-报错-xlings-xmake-不是内部命令-invoke-webrequest-基础连接已经关闭</link><guid isPermaLink="true">http://forum.d2learn.org/topic/123/windows-安装-xlings-报错-xlings-xmake-不是内部命令-invoke-webrequest-基础连接已经关闭</guid><dc:creator><![CDATA[SPeak]]></dc:creator><pubDate>Sat, 16 Aug 2025 01:02:13 GMT</pubDate></item><item><title><![CDATA[[xlings | PR]: 优化非xlings工具安装软件的检测, 并修复windows下系统中已安装vscode后重复安装的问题]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1753202866355-7b7a15fb-f3f1-400b-9120-3443fb667026-image.png" alt="7b7a15fb-f3f1-400b-9120-3443fb667026-image.png" class=" img-fluid img-markdown" /></p>
<ul>
<li>issues详情: <a href="https://github.com/d2learn/xlings/issues/104" rel="nofollow ugc">https://github.com/d2learn/xlings/issues/104</a></li>
<li>pr详情: <a href="https://github.com/d2learn/xlings/pull/105" rel="nofollow ugc">https://github.com/d2learn/xlings/pull/105</a></li>
</ul>
<hr />
<h2>修复代码&amp;测试结果</h2>
<p dir="auto"><img src="/assets/uploads/files/1753202701376-f9ac3a8d-12eb-40f4-868c-b4281fafcd2f-image.png" alt="f9ac3a8d-12eb-40f4-868c-b4281fafcd2f-image.png" class=" img-fluid img-markdown" /></p>
<h2>验证步骤</h2>
<p dir="auto">1.更新xlings到最新版本</p>
<pre><code class="language-bash">irm https://d2learn.org/xlings-install.ps1.txt | iex
</code></pre>
<p dir="auto">2.更新包索引</p>
<pre><code class="language-bash">xim --update index
</code></pre>
<p dir="auto">3.测试</p>
<pre><code class="language-bash">xlings remove code
xlings self clean
xlings install code
</code></pre>
<p dir="auto">预期输出</p>
<pre><code>code@system - already installed
</code></pre>
]]></description><link>http://forum.d2learn.org/topic/117/xlings-pr-优化非xlings工具安装软件的检测-并修复windows下系统中已安装vscode后重复安装的问题</link><guid isPermaLink="true">http://forum.d2learn.org/topic/117/xlings-pr-优化非xlings工具安装软件的检测-并修复windows下系统中已安装vscode后重复安装的问题</guid><dc:creator><![CDATA[SPeak]]></dc:creator><pubDate>Tue, 22 Jul 2025 16:48:58 GMT</pubDate></item><item><title><![CDATA[windows安装后, 运行xlings报错 - error invalid task: xlings]]></title><description><![CDATA[<p dir="auto">并且确认下用户名最好不要是中文, 详情见这个帖子: https://forum.d2learn.org/topic/99</p>
]]></description><link>http://forum.d2learn.org/topic/113/windows安装后-运行xlings报错-error-invalid-task-xlings</link><guid isPermaLink="true">http://forum.d2learn.org/topic/113/windows安装后-运行xlings报错-error-invalid-task-xlings</guid><dc:creator><![CDATA[SPeak]]></dc:creator><pubDate>Thu, 03 Jul 2025 03:31:20 GMT</pubDate></item><item><title><![CDATA[无法安装xlings - git not found]]></title><description><![CDATA[<p dir="auto">解决方法, 运行清除缓存命令</p>
xlings self clean

<p dir="auto">然后重新打开一个命令行窗口执行命令, 这个问题就没有了</p>
]]></description><link>http://forum.d2learn.org/topic/103/无法安装xlings-git-not-found</link><guid isPermaLink="true">http://forum.d2learn.org/topic/103/无法安装xlings-git-not-found</guid><dc:creator><![CDATA[SPeak]]></dc:creator><pubDate>Thu, 26 Jun 2025 14:40:09 GMT</pubDate></item><item><title><![CDATA[linux下进入错误: You are trying to start Visual Studio Code as a super user which isn&#x27;t recommended]]></title><description><![CDATA[<p dir="auto">@Jackie2chen vscode不推荐在root用户下使用, 可以新建立普通用户, 或者把项目的配置文件config.xlings中的 vscode 那一行删除 不使用指定的编辑器也可以</p>
<p dir="auto">02f62bc7-396a-4348-98e2-506cb9939f99-image.png</p>
]]></description><link>http://forum.d2learn.org/topic/102/linux下进入错误-you-are-trying-to-start-visual-studio-code-as-a-super-user-which-isn-t-recommended</link><guid isPermaLink="true">http://forum.d2learn.org/topic/102/linux下进入错误-you-are-trying-to-start-visual-studio-code-as-a-super-user-which-isn-t-recommended</guid><dc:creator><![CDATA[SPeak]]></dc:creator><pubDate>Wed, 25 Jun 2025 05:52:01 GMT</pubDate></item><item><title><![CDATA[环境变量问题 - 安装报错, 中文用户名&#x2F;中文路径的影响]]></title><description><![CDATA[<p dir="auto">@pcmingziqaq 已经安装好了。 至于文字显示 是由于和背景颜色重合了, 可以用cmd(黑色背景)里运行 xlings 就能看清楚了, 或者自己设置一下powershell的背景颜色也是可以的</p>

<p dir="auto">文字显示问题后面会尝试进行优化</p>
]]></description><link>http://forum.d2learn.org/topic/99/环境变量问题-安装报错-中文用户名-中文路径的影响</link><guid isPermaLink="true">http://forum.d2learn.org/topic/99/环境变量问题-安装报错-中文用户名-中文路径的影响</guid><dc:creator><![CDATA[SPeak]]></dc:creator><pubDate>Tue, 24 Jun 2025 10:09:28 GMT</pubDate></item><item><title><![CDATA[xlings: 全局&#x2F;多用户使用示例 - 初步 (only linux]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1750417780917-b98b07fd-87d2-4f9d-87a0-5c3b92f43bbc-image.png" alt="b98b07fd-87d2-4f9d-87a0-5c3b92f43bbc-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>http://forum.d2learn.org/topic/96/xlings-全局-多用户使用示例-初步-only-linux</link><guid isPermaLink="true">http://forum.d2learn.org/topic/96/xlings-全局-多用户使用示例-初步-only-linux</guid><dc:creator><![CDATA[SPeak]]></dc:creator><pubDate>Fri, 20 Jun 2025 11:09:43 GMT</pubDate></item><item><title><![CDATA[C++23: import std工程模板 - cmake + ninja + gcc15 及不同版本CMAKE_EXPERIMENTAL_CXX_IMPORT_STD对应的ID号]]></title><description><![CDATA[<h1>0.概要</h1>
<p dir="auto">本文主要介绍如下内容:</p>
<ul>
<li>1.cmake + ninja + gcc15(或其他支持import std的编译器)如何搭建一个支持import std(标准库模块化)特性的项目/工程模板</li>
<li>2.cmake不同版本CMAKE_EXPERIMENTAL_CXX_IMPORT_STD功能对应的ID怎么确定</li>
<li>3.如何使用xlings工具一键生成这样的项目模板并自动配置好环境 - <strong>想快速体验的朋友可以直接看第3节</strong></li>
</ul>
<h1>1.最小项目模板及构建</h1>
<h2>1.1 目录结构</h2>
<pre><code class="language-bash">├── build - 构建目录(后期生成)
├── CMakeLists.txt - 工程描述文件
├── config.xlings
├── README.md
└── src
    └── main.cpp - 源码文件

3 directories, 4 files
</code></pre>
<h2>1.2 HelloWorld代码 - src/main.cpp</h2>
<blockquote>
<p dir="auto">通过一行<code>import std</code>导入标准库, 然后不需要一个一个<code>include</code>就能使用标准库里的工具, 例如下面的<code>println</code></p>
</blockquote>
<pre><code class="language-cpp">import std;

int main() {
    std::println("Hello, C++23 modules!");
}
</code></pre>
<h2>1.3 工程描述文件</h2>
<blockquote>
<p dir="auto">在cmake的描述文件<code>project</code>定义前启用<code>import std</code>特性, 并设置相关C++23标准及模块std, 其中cmake需要3.3及以上才支持<code>CMAKE_EXPERIMENTAL_CXX_IMPORT_STD</code>并不同版本对应ID可能不一样(后面会介绍确定方法)</p>
</blockquote>
<pre><code class="language-python">cmake_minimum_required(VERSION 4.0.2)

# https://github.com/Kitware/CMake/blob/master/Help/dev/experimental.rst
set(CMAKE_EXPERIMENTAL_CXX_IMPORT_STD "a9e1cf81-9932-4810-974b-6eccaf14e457")
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_MODULE_STD 1)

project(HelloWorld LANGUAGES CXX)

add_executable(helloworld src/main.cpp)
</code></pre>
<h2>1.4 构建&amp;环境要求</h2>
<blockquote>
<p dir="auto">使用cmake生成ninja的构建文件, 然后使用ninja进行。这里需要注意的是当前不支持默认的GUN Make</p>
</blockquote>
<ul>
<li>ninja</li>
<li>cmake 4.0.2</li>
<li>gcc 15 或 支持import std特性的编译器(clang...</li>
</ul>
<pre><code class="language-bash">mkdir build &amp;&amp; cd build
cmake -G Ninja ..
ninja -v
</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1749316672444-4fbab89d-39ce-431e-8e5a-990fc85f33ce-image.png" alt="4fbab89d-39ce-431e-8e5a-990fc85f33ce-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><strong>注: 使用默认gun make会报错提示: Unsupported generator: Unix Makefiles</strong></p>
<p dir="auto"><img src="/assets/uploads/files/1749316947208-2f9f701b-c79f-4fbe-b24d-e0da407bd4db-image.png" alt="2f9f701b-c79f-4fbe-b24d-e0da407bd4db-image.png" class=" img-fluid img-markdown" /></p>
<h1>2 CMAKE_EXPERIMENTAL_CXX_IMPORT_STD不同版本对应的ID</h1>
<p dir="auto">应该不少朋友是卡在了这一步, 由于cmake这个功能还是实验性质的所以要满足以下要求:</p>
<ul>
<li>cmake版本大于等于3.30</li>
<li>要使用和自己版本匹配CMAKE_EXPERIMENTAL_CXX_IMPORT_STD的id号</li>
</ul>
<p dir="auto">这个id号在cmake的github文档中: <a href="https://github.com/Kitware/CMake/blob/master/Help/dev/experimental.rst" rel="nofollow ugc">https://github.com/Kitware/CMake/blob/master/Help/dev/experimental.rst</a><br />
<strong>但由于默认文档是master分支可能id和你的版本是不匹配的, 所以查找时要切换tag到和自己版本一样的分支 -- 这是个坑点</strong></p>
<p dir="auto"><img src="/assets/uploads/files/1749317418282-01cd4e86-ace4-4549-819e-8547ec843c11-image-resized.png" alt="01cd4e86-ace4-4549-819e-8547ec843c11-image.png" class=" img-fluid img-markdown" /></p>
<h1>3 一键生成项目模板并配置好环境</h1>
<blockquote>
<p dir="auto">我给以上模板和环境添加到了<a>xlings</a>工具, 只要一行命令就能生成这个模板并配置好工具链依赖, 对应模板名为<code>cpp23-cmake-helloworld</code>, 完整命令和生成文件(README里包含构建说明)如下</p>
</blockquote>
<pre><code class="language-bash">xlings new --template cpp23-cmake-helloworld
</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1749317918593-ea918e38-e351-40e9-a4a5-05e05f76b241-image.png" alt="ea918e38-e351-40e9-a4a5-05e05f76b241-image.png" class=" img-fluid img-markdown" /></p>
<h1>4 Other</h1>
<ul>
<li><a href="https://forum.d2learn.org/topic/94" rel="nofollow ugc">原文 - d2learn论坛</a></li>
<li><a href="https://github.com/d2learn/xlings" rel="nofollow ugc">xlings工具 - Github</a></li>
<li><a href="https://github.com/d2learn/xlings-project-templates/tree/main/cpp23/cmake/helloworld" rel="nofollow ugc">xlings - 项目模板cpp23-cmake-helloworld仓库</a></li>
<li><a href="https://www.kitware.com/import-std-in-cmake-3-30" rel="nofollow ugc">cmake文档1 - import std基础用法</a></li>
<li><a href="https://cmake.org/cmake/help/latest/variable/CMAKE_CXX_COMPILER_IMPORT_STD.html" rel="nofollow ugc">cmake文档2 - CMAKE_CXX_COMPILER_IMPORT_STD版本要求</a></li>
<li><a href="https://github.com/Kitware/CMake/blob/master/Help/dev/experimental.rst" rel="nofollow ugc">cmake文档3 - CMAKE_CXX_COMPILER_IMPORT_STD的id</a></li>
</ul>
]]></description><link>http://forum.d2learn.org/topic/94/c-23-import-std工程模板-cmake-ninja-gcc15-及不同版本cmake_experimental_cxx_import_std对应的id号</link><guid isPermaLink="true">http://forum.d2learn.org/topic/94/c-23-import-std工程模板-cmake-ninja-gcc15-及不同版本cmake_experimental_cxx_import_std对应的id号</guid><dc:creator><![CDATA[SPeak]]></dc:creator><pubDate>Sat, 07 Jun 2025 17:47:39 GMT</pubDate></item><item><title><![CDATA[xlings多语言初步支持 - i18n]]></title><description><![CDATA[<p dir="auto">通过检测环境, 自动匹配主机语言</p>
<p dir="auto">PR: <a href="https://github.com/d2learn/xlings/pull/88" rel="nofollow ugc">https://github.com/d2learn/xlings/pull/88</a></p>
<hr />
<h2>xlings帮助信息</h2>
<p dir="auto"><img src="/assets/uploads/files/1748440200196-444b4f23-3ac7-400a-b7e3-1037ce2bd026-image.png" alt="444b4f23-3ac7-400a-b7e3-1037ce2bd026-image.png" class=" img-fluid img-markdown" /></p>
<h2>xim帮助信息</h2>
<pre><code class="language-bash">speak@speak-pc ~&gt; xim

	XIM - Xlings Installation Manager

xim version: pre-v0.0.2

Usage1: $ xlings install [command] [target]
Usage2: $ xim [command] [target]

Commands:
  -i,   install,   install software/package/env
  -r,   remove,    remove the software/package/env
  -u,   update,    update the software/package/env
  -l,   list,      list all installed software/packages/env
  -s,   search,    search for a software/package
  -h,   help,      display this help message

SysCommands:
  --detect,        detect local software/packages
  --update,        update [self | index]
  --add-xpkg,      add xpkg file to index database
  --xpkg-args,     xpkg args
  --add-indexrepo, add indexrepo to repo manager
  --disable-info,  disable info display

Examples:
  xim vscode     -- install vscode
  xim -r vscode  -- remove/uninstall vscode
  xim -l         -- list all installed software/packages
  xim -s code    -- search for software/package with 'code'

More: https://d2learn.org/xlings


</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1748440340778-f4919fb2-ed80-4795-be33-5a0afb76f862-image.png" alt="f4919fb2-ed80-4795-be33-5a0afb76f862-image.png" class=" img-fluid img-markdown" /></p>
<h2>d2x帮助信息</h2>
<pre><code class="language-bash">d2x version: pre-v0.0.2

Usage: $ d2x [command] [target]

Commands:
	 new,      	 create new d2x project
	 book,     	 open project's book
	 run,      	 run sourcecode file
	 checker,  	 run checker for d2x project's exercises
	 help,     	 help info

More: https://d2learn.org/xlings
</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1748440406925-01526306-ad34-4419-bf24-464f8e410a54-image.png" alt="01526306-ad34-4419-bf24-464f8e410a54-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>http://forum.d2learn.org/topic/92/xlings多语言初步支持-i18n</link><guid isPermaLink="true">http://forum.d2learn.org/topic/92/xlings多语言初步支持-i18n</guid><dc:creator><![CDATA[SPeak]]></dc:creator><pubDate>Wed, 28 May 2025 14:13:57 GMT</pubDate></item><item><title><![CDATA[xlings: 包索引静态网站生成工具xpkgindex + xim包索引站点示例 - 从包索引仓库生成包索引网站并部署到github上]]></title><description><![CDATA[<p dir="auto">开发了一个可以把<strong>包索引仓库</strong>生成一个<strong>支持模糊搜索的包索引站点</strong>, 并提供一些基本功能:</p>
<ul>
<li>包预览</li>
<li>随机推荐</li>
<li>模糊搜索</li>
<li>包详情页面</li>
<li>语言切换(中/En)</li>
<li>等功能....</li>
</ul>
<p dir="auto">下面为初期版本页面展示...</p>
<p dir="auto"><strong>XIM包索引站点-示例Demo:</strong> <a href="https://d2learn.github.io/xim-pkgindex" rel="nofollow ugc">https://d2learn.github.io/xim-pkgindex</a></p>
<hr />
<h2>1.主页</h2>
<ul>
<li><strong>包随机推荐:</strong> 每5秒切换一个包卡片, 提供基本信息和一个可复制的安装命令</li>
<li><strong>包预览:</strong> 提供一个4行的交叉循环轮播, 并可通过点击包卡片进入详情页</li>
</ul>
<p dir="auto"><img src="/assets/uploads/files/1747194420023-6070307c-5902-4844-8b60-9d0f0ac05555-image.png" alt="6070307c-5902-4844-8b60-9d0f0ac05555-image.png" class=" img-fluid img-markdown" /></p>
<h2>2.模糊搜索</h2>
<p dir="auto">搜索列表中能预览包名、关键字、简介等信息...</p>
<p dir="auto"><img src="/assets/uploads/files/1747195866456-ebbb8ca6-52f9-4791-83f3-0111d7b5d1b1-image.png" alt="ebbb8ca6-52f9-4791-83f3-0111d7b5d1b1-image.png" class=" img-fluid img-markdown" /></p>
<h2>3.包详情页 (待完善)</h2>
<ul>
<li>包基础信息</li>
<li>依赖信息</li>
<li>相关链接</li>
</ul>
<p dir="auto"><img src="/assets/uploads/files/1747195699648-22bfd916-f51f-4f3f-99e6-d38c6c1f9fd5-image.png" alt="22bfd916-f51f-4f3f-99e6-d38c6c1f9fd5-image.png" class=" img-fluid img-markdown" /></p>
<h2>4.Github静态网页部署</h2>
<blockquote>
<p dir="auto">workflows参考: <a href="https://github.com/d2learn/xim-pkgindex/blob/main/.github/workflows/pkgindex-deloy.yml" rel="nofollow ugc">https://github.com/d2learn/xim-pkgindex/blob/main/.github/workflows/pkgindex-deloy.yml</a></p>
</blockquote>
<h2>5.相关链接</h2>
<ul>
<li><a href="https://d2learn.github.io/xim-pkgindex/" rel="nofollow ugc">XIM 包索引站点</a> - xlings的包索引站点</li>
<li><a href="https://github.com/d2learn/xpkgindex" rel="nofollow ugc">xpkgindex</a> - 包索引网页生成工具</li>
<li><a href="https://github.com/d2learn/xlings" rel="nofollow ugc">xlings</a> - 包安装工具</li>
<li><a href="https://github.com/d2learn/xim-pkgindex" rel="nofollow ugc">xim-pkgindex</a> - xpkg包描述文件仓库</li>
<li><a href="https://forum.d2learn.org/category/9/xlings" rel="nofollow ugc">论坛交流</a> - d2learn中的xlings交流讨论版块</li>
</ul>
]]></description><link>http://forum.d2learn.org/topic/89/xlings-包索引静态网站生成工具xpkgindex-xim包索引站点示例-从包索引仓库生成包索引网站并部署到github上</link><guid isPermaLink="true">http://forum.d2learn.org/topic/89/xlings-包索引静态网站生成工具xpkgindex-xim包索引站点示例-从包索引仓库生成包索引网站并部署到github上</guid><dc:creator><![CDATA[SPeak]]></dc:creator><pubDate>Wed, 14 May 2025 04:14:09 GMT</pubDate></item><item><title><![CDATA[gcc15.1安装失败amake和gmp报错，后者直接导致安装不了]]></title><description><![CDATA[<p dir="auto">@lanhaibo 在 gcc15.1安装失败amake和gmp报错，后者直接导致安装不了 中说：</p>
<blockquote>
<p dir="auto">第二次安装xmaind是手工安装的</p>
</blockquote>
<p dir="auto">第二次安装xlings, source ~/.bashrc 后xmake还是找不到吗<br />
感觉提供一个构建好的bin版本应该会方便很多, 关于glibc的版本问题后面看看编译链接的时候不使用系统的而是用自己构建能不能解决ubuntu22的问题</p>
]]></description><link>http://forum.d2learn.org/topic/85/gcc15-1安装失败amake和gmp报错-后者直接导致安装不了</link><guid isPermaLink="true">http://forum.d2learn.org/topic/85/gcc15-1安装失败amake和gmp报错-后者直接导致安装不了</guid><dc:creator><![CDATA[SPeak]]></dc:creator><pubDate>Sun, 04 May 2025 08:40:00 GMT</pubDate></item><item><title><![CDATA[[xim+]: 最新gcc15.1.0发布, 一键从源码构建 -- c++23 import std启动]]></title><description><![CDATA[<p dir="auto">@HeiseCurtain 在 [xim+]: 最新gcc15.1.0发布, 一键从源码构建 -- c++23 import std启动 中说：</p>
<blockquote>
<p dir="auto">CMake</p>
</blockquote>
<p dir="auto">你的问题好像是cmake支持import std的使用, 可以新开一个贴子讨论</p>
]]></description><link>http://forum.d2learn.org/topic/84/xim-最新gcc15-1-0发布-一键从源码构建-c-23-import-std启动</link><guid isPermaLink="true">http://forum.d2learn.org/topic/84/xim-最新gcc15-1-0发布-一键从源码构建-c-23-import-std启动</guid><dc:creator><![CDATA[SPeak]]></dc:creator><pubDate>Thu, 01 May 2025 09:07:56 GMT</pubDate></item><item><title><![CDATA[把xlings中的公开课相关命令集成到d2x工具中 - PR: d2x base]]></title><description><![CDATA[<p dir="auto"><a href="https://github.com/d2learn/xlings/pull/79" rel="nofollow ugc">https://github.com/d2learn/xlings/pull/79</a></p>
]]></description><link>http://forum.d2learn.org/topic/71/把xlings中的公开课相关命令集成到d2x工具中-pr-d2x-base</link><guid isPermaLink="true">http://forum.d2learn.org/topic/71/把xlings中的公开课相关命令集成到d2x工具中-pr-d2x-base</guid><dc:creator><![CDATA[sunrisepeak]]></dc:creator><pubDate>Tue, 18 Feb 2025 17:38:16 GMT</pubDate></item><item><title><![CDATA[windows安装xlings失败, 被Windows Defender直接删除问题解决方法]]></title><description><![CDATA[<p dir="auto">微软社区的方法: <a href="https://answers.microsoft.com/zh-hans/windows/forum/all/%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3/4042fa73-1341-4a5d-a91f-0233db9f0c9e" rel="nofollow ugc">https://answers.microsoft.com/zh-hans/windows/forum/all/如何解决/4042fa73-1341-4a5d-a91f-0233db9f0c9e</a></p>
<hr />
<p dir="auto">直接关闭Windows Defender的实时检查</p>
]]></description><link>http://forum.d2learn.org/topic/70/windows安装xlings失败-被windows-defender直接删除问题解决方法</link><guid isPermaLink="true">http://forum.d2learn.org/topic/70/windows安装xlings失败-被windows-defender直接删除问题解决方法</guid><dc:creator><![CDATA[sunrisepeak]]></dc:creator><pubDate>Sun, 16 Feb 2025 12:22:12 GMT</pubDate></item></channel></rss>