xmake-repo icon indicating copy to clipboard operation
xmake-repo copied to clipboard

coinutils: add new package

Open luadebug opened this issue 5 months ago • 5 comments

Just test against MSVC. So how to fix fortran issue? Like use UCRT64/CLANG64 and use flang? It does not seem MSYS2 MINGW64 runner has same issue as Windows... :/ https://packages.msys2.org/base/mingw-w64-flang

luadebug avatar Jun 26 '25 18:06 luadebug

Keep the name consistent with existing packages? https://github.com/xmake-io/xmake-repo/tree/dev/packages/c/coin-or-ipopt https://github.com/xmake-io/xmake-repo/tree/dev/packages/c/coin-or-asl

choyy avatar Jun 27 '25 00:06 choyy

😅 vcpkg: coinutils conan: coin-utils pacman: coin-or-coinutils apt: coinor-libcoinutils-dev

I suggest coin-or-coinutils.

star-hengxing avatar Jun 27 '25 05:06 star-hengxing

You can try xmake port, but we need to fix config.h.in

io.writefile("xmake.lua", [[
    add_rules("mode.debug", "mode.release")
    add_requires("bzip2", "zlib")
    set_languages("c++11")
    target("CoinUtils")
        set_kind("$(kind)")
        add_files("CoinUtils/src/*.cpp")
        add_headerfiles("CoinUtils/src/*.hpp", "CoinUtils/src/*.h", {prefixdir = "coin"})
        add_defines("COINUTILS_BUILD")
        add_packages("bzip2", "zlib")
        if is_plat("macosx", "iphoneos") then
            add_frameworks("Accelerate")
        elseif is_plat("linux", "bsd") then
            add_syslinks("m")
        end
]])
import("package.tools.xmake").install(package)

star-hengxing avatar Jun 27 '25 06:06 star-hengxing

You can try xmake port, but we need to fix config.h.in

io.writefile("xmake.lua", [[
    add_rules("mode.debug", "mode.release")
    add_requires("bzip2", "zlib")
    set_languages("c++11")
    target("CoinUtils")
        set_kind("$(kind)")
        add_files("CoinUtils/src/*.cpp")
        add_headerfiles("CoinUtils/src/*.hpp", "CoinUtils/src/*.h", {prefixdir = "coin"})
        add_defines("COINUTILS_BUILD")
        add_packages("bzip2", "zlib")
        if is_plat("macosx", "iphoneos") then
            add_frameworks("Accelerate")
        elseif is_plat("linux", "bsd") then
            add_syslinks("m")
        end
]])
import("package.tools.xmake").install(package)

I do not know how to fix Windows shared library build, we could just try to use export_all rule.

luadebug avatar Jun 27 '25 15:06 luadebug

Bot detected the issue body's language is not English, translate it automatically.


You can try xmake port, but we need to fix config.h.in

io.writefile("xmake.lua", [[
    add_rules("mode.debug", "mode.release")
    add_requires("bzip2", "zlib")
    set_languages("c++11")
    target("CoinUtils")
        set_kind("$(kind)")
        add_files("CoinUtils/src/*.cpp")
        add_headerfiles("CoinUtils/src/*.hpp", "CoinUtils/src/*.h", {prefixdir = "coin"})
        add_defines("COINUTILS_BUILD")
        add_packages("bzip2", "zlib")
        if is_plat("macosx", "iphoneos") then
            add_frameworks("Accelerate")
        elseif is_plat("linux", "bsd") then
            add_syslinks("m")
        end
]])
import("package.tools.xmake").install(package)

I do not know how to fix Windows part, we could just try to use export_all util. (COINUTILS_BUILD is for MSVC only)

Issues-translate-bot avatar Jun 27 '25 15:06 Issues-translate-bot