Code Monkey home page Code Monkey logo

Comments (3)

sergystepanov avatar sergystepanov commented on May 27, 2024

@ImanCol, could you please explain your problem again?
What command do you run for the build?
And does this problem still persist?

Make sure you use the latest code.
Every push to this repository starts a bunch of build jobs for different OSes, so far everything builds just fine.
I recommend using prebuilt Docker images from here.

from cloud-game.

ImanCol avatar ImanCol commented on May 27, 2024

@ImanCol, could you please explain your problem again?
What command do you run for the build?
And does this problem still persist?

Make sure you use the latest code.
Every push to this repository starts a bunch of build jobs for different OSes, so far everything builds just fine.
I recommend using prebuilt Docker images from here.

I've been using Debian 11, recommended here.
Run this on the Amazon AWS EC2 Free Tier. Some packages are not available so I had to do some previous installations. Use these:

sudo apt install golang-go
sudo apt-get install pip
sudo pip install pyngrok --quiet
sudo ngrok
sudo ngrok http 8000

//Open another command promp
sudo apt-get install -y make gcc pkg-config libvpx-dev libx264-dev libopus-dev libsdl2-dev
sudo apt-get install git
sudo git clone https://github.com/giongto35/cloud-game.git
cd cloud-games
sudo make dev.run
//Error, can't copy, bin directory already exists
//run again...
sudo make dev.run
//Succeful```

from cloud-game.

sergystepanov avatar sergystepanov commented on May 27, 2024

Reproduced this "bug". This is a problem with Golang versions below 1.16. By default Amazon EC2 Debian 11 installs go version go1.15.9 linux/amd64.
The gist of this problem: if the build output is a new dir (not a file), then it will error out the first time but will create the dir, that is why it will run fine the second time. This was fixed in Go 1.16.
I fixed it by forcing to create the output dir before builds.
Personally, I recommend do not use Go from the apt-get repositories and install the newest versions as described in the official guide for Linux.

asciicast

from cloud-game.

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.