Git Product home page Git Product logo

Comments (7)

lanctot avatar lanctot commented on June 15, 2024 1

Ohhh, I had totally forgotten about that extra environment variable. Good call, and I just checked: it works! I will add a test that re-enables the Julia API test. Thanks for helping with this!

from open_spiel.

lanctot avatar lanctot commented on June 15, 2024

Note: I tried updating the versions of Julia and CxxWrap in Project.toml but that didn't seem to work.

from open_spiel.

lanctot avatar lanctot commented on June 15, 2024

Note: you should not need to build with python, so you can safely remove -DPython3_EXECUTABLE=python.. I'm just used to always including it.

from open_spiel.

findmyway avatar findmyway commented on June 15, 2024

Got it, I'll look into it soon.


I finally got a workable environment. Still working on it.

from open_spiel.

findmyway avatar findmyway commented on June 15, 2024

Here's what I found with a fresh new docker image of tag ubuntu:24.04:

  1. The error with install.sh can be safely ignored. Because at that time, the openspiel lib is not built yet.

Based on discussions here: https://discourse.julialang.org/t/how-to-disable-automatic-precompilation-of-packages-in-julia-1-6/57053

We can set the JULIA_PKG_PRECOMPILE_AUTO environment variable to 0 to stop the precompiling here.

cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 $HOME/packages/julias/julia-1.6.1/lib/julia

  1. The above line needs to be updated:
- cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 $HOME/packages/julias/julia-1.6.1/lib/julia 
+ cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /opt/julias/julia-1.6.1/bin/../lib/julia/libstdc++.so.6

from open_spiel.

lanctot avatar lanctot commented on June 15, 2024

Hmm, I retried and I am still getting that CMake error above that it cannot find the configuration file.

There is also nothing in /opt, because the installer is putting it into $HOME/packages/julias like before.

This is on a fresh install of Ubuntu 24.04.

from open_spiel.

findmyway avatar findmyway commented on June 15, 2024

Hmm, I retried and I am still getting that CMake error above that it cannot find the configuration file.

So I assume you executed like this?

(venv) lanctot@nitro-exp:~/open_spiel/build$ OPEN_SPIEL_BUILD_WITH_JULIA=ON cmake -DPython3_EXECUTABLE=python -DCMAKE_CXX_COMPILER=clang++ ../open_spiel

Well that is not enough since some extra environment variables needs to be set. See

LIBCXXWRAP_JULIA_DIR=`julia --project=${MYDIR}/../julia -e 'using CxxWrap; print(dirname(dirname(CxxWrap.CxxWrapCore.libcxxwrap_julia_jll.libcxxwrap_julia_path)))'`

You can simply execute build_and_run_tests.sh to build the lib.

There is also nothing in /opt, because the installer is putting it into $HOME/packages/julias like before.

I see, in that case we don't need that modification.

from open_spiel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.