Giter VIP home page Giter VIP logo

go-toxcore-c's Introduction

Build Status GoDoc

go-toxcore

The golang bindings for libtoxcore

Installation

# fetch libtoxcore if necessary
# see https://github.com/TokTok/c-toxcore/blob/master/INSTALL.md
go get github.com/TokTok/go-toxcore-c

Examples

import "github.com/TokTok/go-toxcore-c"

// use custom options
opt := tox.NewToxOptions()
t := tox.NewTox(opt)
av := tox.NewToxAV(t)

// use default options
t := tox.NewTox(nil)
av := tox.NewToxAV(t)

Tests

go test -v -covermode count

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

go-toxcore-c's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar envsh avatar iphydf avatar kitech avatar nxshock avatar riking avatar sprogl avatar xhebox 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  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  avatar

Watchers

 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

go-toxcore-c's Issues

cant build do to error

hi there, i tried hard to solve this by myself but failed, i trully dont know what is this:

../../go/pkg/mod/github.com/!tok!tok/[email protected]/toxav.go:319:48: could not determine kind of name for C.toxav_audio_data_cb

does anybody now how to solve that?

how to build it?

libopus-dev is already the newest version (1.3.1-0.1build2).
libsodium-dev is already the newest version (1.0.18-1build2).
libvpx-dev is already the newest version (1.11.0-2ubuntu2).
libtoxcore-dev is already the newest version (0.2.13-1).
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
root@devtest:~/tes# go run .
# github.com/TokTok/go-toxcore-c
../../go/pkg/mod/github.com/!tok!tok/[email protected]/toxav.go:319:48: could not determine kind of name for C.toxav_audio_data_cb

the guy who fixed it by itself dont respond and did the usual forum move
"i fixed it myself and bye" thanks for nothing

Originally posted by @liadala in #52 (comment)

go get failing

Seems when the go get command is done, it issues
pkg-config --cflags toxcore

but the proper command to get back the lib should be:

[loweel@vulvatron]#  pkg-config --cflags libtoxcore
-I/usr/local/include

when using the wrong command, the result is

[loweel@vulvatron]#  pkg-config --cflags toxcore
Package toxcore was not found in the pkg-config search path.
Perhaps you should add the directory containing `toxcore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'toxcore' found

which results in the command go get to fail like this:

[loweel@vulvatron]#  go get github.com/TokTok/go-toxcore-c
# pkg-config --cflags toxcore
Package toxcore was not found in the pkg-config search path.
Perhaps you should add the directory containing `toxcore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'toxcore' found
pkg-config: exit status 1

app don't compile for windows arch

When i try to compile with command GOOS=windows GOARCH=amd64 go build -o bin/test.exe test.go

I have this error :

# github.com/TokTok/go-toxcore-c
../../../../go/pkg/mod/github.com/!tok!tok/[email protected]/hooks.go:11:13: undefined: Tox
../../../../go/pkg/mod/github.com/!tok!tok/[email protected]/hooks.go:15:13: undefined: Tox
../../../../go/pkg/mod/github.com/!tok!tok/[email protected]/hooks.go:19:13: undefined: Tox
../../../../go/pkg/mod/github.com/!tok!tok/[email protected]/hooks.go:23:13: undefined: Tox
../../../../go/pkg/mod/github.com/!tok!tok/[email protected]/utils.go:46:13: undefined: Tox
../../../../go/pkg/mod/github.com/!tok!tok/[email protected]/utils.go:69:13: undefined: Tox
../../../../go/pkg/mod/github.com/!tok!tok/[email protected]/utils.go:79:7: undefined: CONNECTION_NONE
../../../../go/pkg/mod/github.com/!tok!tok/[email protected]/utils.go:81:7: undefined: CONNECTION_TCP
../../../../go/pkg/mod/github.com/!tok!tok/[email protected]/utils.go:83:7: undefined: CONNECTION_UDP

When i compile on linux / run it it work perfectly can you help me ?

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.