Coder Social home page Coder Social logo

steamworks's Introduction

Steamworks API wrapper for Go

GoDoc Go Report Card CodeFactor

steamworks's People

Contributors

benlubar avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

steamworks's Issues

library not found for -lsteam_api

OSX

github.com/BenLubar/steamworks/internal
ld: library not found for -lsteam_api
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The terminal process "/bin/bash '-c', 'go build'" terminated with exit code: 2

Version control check failed on go get

Greetings,

the go get github.com/BenLubar/steamworks command fails because one of the dependencies of this project fails the version check from the go.mod file.

PS D:\GoProj\xxxxxx> go get github.com/BenLubar/steamworks   
go: github.com/BenLubar/steamworks upgrade => v0.0.0-20181009034830-72424b225176
go get: github.com/BenLubar/[email protected] requires
        golang.org/x/[email protected]: invalid pseudo-version: does not match version-control timestamp (expected 20181008205924)

libsteam_api.so: cannot open shared object file

Code

main.go

package main

import (
	"fmt"
	"net"

	SteamWorks "github.com/BenLubar/steamworks"
)

func main() {
	ServerIP := net.IPv4(uint8(123), uint8(123), uint8(123), uint8(123))
	ServerPort := uint16(12345)
	GamePort := uint16(12346)
	QueryPort := uint16(12347)

	SteamWorks.InitServer(ServerIP, ServerPort, GamePort, QueryPort, SteamWorks.Authentication, "2022.07.13", true)
}

Environment

❯ uname -a
Linux 4.18.0-348.12.2.el8_5.x86_64 #1 SMP Wed Jan 19 17:53:40 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
❯ grep . /etc/*-release
/etc/centos-release:Rocky Linux release 8.6 (Green Obsidian)
/etc/os-release:NAME="Rocky Linux"
/etc/os-release:VERSION="8.6 (Green Obsidian)"
/etc/os-release:ID="rocky"
/etc/os-release:ID_LIKE="rhel centos fedora"
/etc/os-release:VERSION_ID="8.6"
/etc/os-release:PLATFORM_ID="platform:el8"
/etc/os-release:PRETTY_NAME="Rocky Linux 8.6 (Green Obsidian)"
/etc/os-release:ANSI_COLOR="0;32"
/etc/os-release:CPE_NAME="cpe:/o:rocky:rocky:8:GA"
/etc/os-release:HOME_URL="https://rockylinux.org/"
/etc/os-release:BUG_REPORT_URL="https://bugs.rockylinux.org/"
/etc/os-release:ROCKY_SUPPORT_PRODUCT="Rocky Linux"
/etc/os-release:ROCKY_SUPPORT_PRODUCT_VERSION="8"
/etc/os-release:REDHAT_SUPPORT_PRODUCT="Rocky Linux"
/etc/os-release:REDHAT_SUPPORT_PRODUCT_VERSION="8"
/etc/redhat-release:Rocky Linux release 8.6 (Green Obsidian)
/etc/rocky-release:Rocky Linux release 8.6 (Green Obsidian)
/etc/system-release:Rocky Linux release 8.6 (Green Obsidian)

Executed Command

go run ./main.go

Error

/tmp/go-build3774866012/b001/exe/main: error while loading shared libraries: libsteam_api.so: cannot open shared object file: No such file or directory
exit status 127

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.