awestlake87 / sc2-rs

2 stars 2 forks source link

Check if Startcraft started fine #50

Open tatref opened 6 years ago

tatref commented 6 years ago

Hi,

Trying to run the examples on CentOS 7, I got:

StarCraftII/Versions/Base60321/SC2_x64: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by StarCraftII/Versions/Base60321/SC2_x64)

It could be cool to check if the exe started. I tried implemeting a simple check here: https://github.com/awestlake87/sc2-rs/blob/01c6286341fcbc82af85da3c78d3b06c561033eb/src/instance.rs#L97-L104

Example of output:

StarCraftII/Versions/Base60321/SC2_x64: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by StarCraftII/Versions/Base60321/SC2_x64)
Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "" }
Error: StarCraft II exe couldn't start

Tell me if it's fine for you, I can submit a PR if you want.

XinyiYS commented 5 years ago

Hi any chance you resolved the issue? I have been having the same problem. Thanks in advance.

tatref commented 5 years ago

Hi,

About the GLIBCXXX issue, this is related to the version of Linux. Centos 7 provides a too old glibc. You can try to switch to another OS (Centos8, Ubuntu...)