Skip to content
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

random #9

Open
zeronavi opened this issue Mar 25, 2022 · 1 comment
Open

random #9

zeronavi opened this issue Mar 25, 2022 · 1 comment

Comments

@zeronavi
Copy link

Optional modules (meta and random) are not available

import "random" for Random

Wren foreign method seed_() not found in C++

@matusnovak
Copy link
Owner

Hi @zeronavi

I apologize for a late reply. I had a busy year.

Yes, the random and meta modules are not built if you are building Wren as part of this repo's CMake. See here: https://github.com/matusnovak/wrenbind17/blob/master/modules/FindWren.cmake#L9

However, this is a header only library. You can build Wren with Wren's official guidelines, in any way you like, and simply include wrenbind17 by adding <wrenbind17/wrenbind17.hpp>. In short, there is no need to use CMake in this project.

Building wren with the CMake file in wrenbind17 is purely optional.

I don't remember why I set WREN_OPT_META=0 WREN_OPT_RANDOM=0... I must have had a reason, or I was lazy to figure it out, I honestly do not know.

If you are looking for a quick way to build Wren, I recommend using the package manager vcpkg: vcpkg install wren.

I probably should port wrenbind17 to vcpkg as well...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants