V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
cruii
V2EX  ›  Java

求助, macOS 环境如何进行 JNA 开发?

  •  
  •   cruii · Jan 7, 2020 · 3572 views
    This topic created in 2305 days ago, the information mentioned may be changed or developed.
    最近这段时间一直在接触 JNA 相关的开发,不怎么熟悉,但难顶的是,不知道怎么在 mac 环境下使用 idea 进行调试,每次想要测试的时候,得把包拷贝到 PD 的虚拟机里然后启动调试,如果有问题就要一直重复操作。

    目前就是调用同事写好的 dll

    所以有没有大佬有这方面经验,能够直接在 mac 下调试的方案?或者更加效率的解决办法?
    6 replies    2020-01-07 11:17:58 +08:00
    wuliyichen
        1
    wuliyichen  
       Jan 7, 2020
    看起来自己写个 shell 就行啦
    hebin
        2
    hebin  
       Jan 7, 2020
    听起来可以使用 vagrant,可以做到你用 mac 开发,但是你在 vagrant 的那个环境里面调试。(文件夹是共享的)
    nicevar
        3
    nicevar  
       Jan 7, 2020
    你用源码编译成 mac 下的 jnilib 就行了,如果你没源码,同事只提供你 windows 用的 dll 肯定不行了
    EastLord
        4
    EastLord  
       Jan 7, 2020
    楼上说得对,Linux 是 .so 文件
    mrhhsg
        5
    mrhhsg  
       Jan 7, 2020
    JNA 是什么? JNI 吗?
    Leiothrix
        6
    Leiothrix  
       Jan 7, 2020   ❤️ 1
    @mrhhsg SUN 对 JNI 的封装,比原生 JNI 友好一点
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5098 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 08:21 · PVG 16:21 · LAX 01:21 · JFK 04:21
    ♥ Do have faith in what you're doing.