Using lwjgl in Leiningen/Clojure

前端 未结 4 1432
独厮守ぢ
独厮守ぢ 2021-01-02 10:00

Solution

(1) (println (. System getProperty \"java.library.path\"))

This gives me a list of places java looks for native extensions.

4条回答
  •  甜味超标
    2021-01-02 10:49

    Looks like a problem with your LD_LIBRARY_PATH. Are you including the correct .dll or .so files?

    You probably need to add something like :native-dependencies [[lwjgl "2.8.2"]] to your project.clj.

    Alternatively, you could try setting the right value from your shell:

    export LD_LIBRARY_PATH=/home/username/lwjgl-2.8.2/native/linux/
    

提交回复
热议问题