-
-
Notifications
You must be signed in to change notification settings - Fork 816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: can msys2 be used as a thridparty package source ? #1020
Comments
msys2/pacman? I will consider supporting it. |
Yes, msys2 's mingw64 and mingw32 packages, and it is indeed using pacman. Thanks for the quick reply! |
I have support pacman packages on archlinux and msys2/mingw. you can update to dev branch and try it. add_requires("pacman::libpng", {alias = "libpng"})
target("test")
set_kind("binary")
add_files("src/*.cpp")
add_packages("libpng") On msys2 xmake f -p mingw -a [i386|x86_64] -c
xmake On archlinux xmake |
Okay, so when I use the command Edit: when I use |
Please try xmake f -c -vD
xmake |
Here you go:
|
try |
Here you go:
|
find_package pacman::nlohmann-json fails. Maybe it is because mingw-w64-x86_64-nlohmann-json is a header-only library, so xmake can not find I will improve it. |
I have improved it, you can update to dev and try it again xmake update -s dev
xmake f -p mingw -c -vD
xmake |
It worked using |
Okay, then I will close it first, if you encounter other problems, you can open a new issue or reopen this issue. |
I have this problem when launching xmake, might be unrelated to msys:
|
This is however related to msys: the target_os is linux in this:
|
It only for cross-compilation, We never use it on other platforms. Of course, I will try to improve it later, only showing the default value on the cross platform. |
Ok I got further with using xmake and I have now this problem with Eigen (linear algebra header-only library)
I added the add_requires('pacman::eigen3') (which worked) and add_package('pacman::eigen3) in my target. Output of xmake f -p mingw -c -vD:
|
Okay nevermind I understood why it did not work ^^. |
pacman::::eigen3? pacman::eigen3? please let me see your xmake.lua |
Do not worry, the pacman::::eigen3 is a typo on github. I wrote it correctly in my xmake .lua ^^. Reagrding the error I had, it was just that I forgot a target that needed eigen in my project. |
Can you run |
You do not seem to understand that the problem I described above was not an error from xmake, but an error from myself in my xmake.lua, which I have fixed. It certainly because I don't express myself well in english ^^. |
ok, you can also use alias name. add_requires("pacman::eigen3", {alias = "eigen3"}) add_packages("eigen3") |
Could |
I have improve it on dev branch, but I haven't tested it yet. |
That seems to work, thanks! |
Is your feature request related to a problem? Please describe.
I generally use msys2 to compile and manage my dependencies on windows
Describe the solution you'd like
I saw that xmake generally search in existing package sources like brew or vcpkg and I wondered if support for msys2 mingw package could be also added.
The text was updated successfully, but these errors were encountered: