Skip to main content
1 vote
0 answers
72 views

Xmake: How to prevent dependencies to be embed into a library and its binaries

I worked with ChatGPT to build an xmake script that will build my library for 2.5 platforms (linux, windows, and cross compile for windows). The project includes my library and demonstration binaries ...
larienna's user avatar
  • 171
0 votes
0 answers
25 views

Missing libpcl_in_hand_scanner.so, libpcl_modeler.so and libpcl_point_cloud_editor.so in Debian13 after downloading libpcl-dev

I am using apt::libpcl-dev with xmake. # xmake.lua add_rules("mode.debug","mode.release") add_requires("apt::libpcl-dev", {configs = {vtk=true, system = true}}) ...
yjdyamv's user avatar
2 votes
1 answer
64 views

How to print my library's or executable's build path?

I'm trying to print in my shell my library's or executable's build path using xmake. After build my library or executable file is located in build/linux/x86_64/release directory, I would like to print ...
Александр Алибеков's user avatar
1 vote
0 answers
219 views

Clangd apply different c++ standard to diffrent file

When I used VSCode+XMake+Clangd+MSVC, clangd confused me. If I wrote this in xmake.lua: set_language("c++23") I could not use std::filesystem. Then I found Clangd expanded the marco ...
Awaaaaawwwwa's user avatar
2 votes
1 answer
272 views

xmake setup for a simple app with lua scripting

I am trying to build a simple xmake based app, with the usual lua scripting, but how to write an xmake.lua for this still eludes me. For now I have this: add_rules("mode.debug", "mode....
Fedja Blagojevic's user avatar
3 votes
0 answers
596 views

Using clangd as a code hint in VScode to develop a Qt program

I used XMake as the build tool and was then able to compile properly. But I can't get good code hints again. I don't know how I can get clangd to detect my Qt library. So how should I set up the ...
Alice Leaf's user avatar
0 votes
0 answers
117 views

fail to compile libpq on macOS x86_64 using xmake

I tried to update libpq in xmake's official repository to version 16.1, however, I encountered many different kinds of strange test failure, such as: log of test for commit fb8fa01: ... gcc -Wall -...
happyZYM's user avatar
1 vote
0 answers
141 views

How can i use c++ module in vscode with xmake(or cmake)?

my project can be compiled with clang-17 and xmake.I used Clion to code before.in vscode,I tried clangd plugin(has enabled experimental feature),and pass compile_commands to it,but it still report &...
limuy's user avatar
  • 21
1 vote
0 answers
39 views

apply rules to generated files?

I am applying a rule to *.hlsl files that compiles the files with the fxc tool. rule("shadercompile.fxc") set_extensions(".hlsl") on_load(function (target) local ...
Raildex's user avatar
  • 5,387
5 votes
1 answer
2k views

How to modify gcm.cache path when using gcc-11 to build c++20 modules?

I am trying to let xmake support gcc-11 to build c++20 modules, but I have some problems. gcc-11 will generate the gcm.cache directory in the current directory by default. How can I modify this ...
ruki's user avatar
  • 193
2 votes
0 answers
308 views

can't find mingw directory xmake

I'm new to xmake, I've wrote a xmake.lua but when I try to execute xmake I receive the following issue: checking for platform ... mingw checking for architecture ... x86_64 checking for mingw ...
samuel potter's user avatar
1 vote
1 answer
2k views

xmake always reports: error: cannot get program for cxx, why?

I've "brew install xmake" on my mac, and having a .cpp file, I run xmake and it generates a xmake.lua in the directory. Then it reports: error: cannot get program for cxx I've installed clang (alias ...
Hind Forsum's user avatar
  • 10.7k
2 votes
1 answer
489 views

How to make the aur package into the archlinux community source?

I have already uploaded my aur package to the aur.archlinux.org (https://aur.archlinux.org/packages/xmake/). How to make the aur package into the archlinux community source? I want to run command ...
Ruki Wang's user avatar
0 votes
1 answer
84 views

how can I upload my open source software to the ubuntu or other official software source? [closed]

I want to create my software package and upload the ubuntu or other software sources. But I don't known how to do it. My project: https://github.com/waruqi/xmake please help me, Thanks
Ruki Wang's user avatar