as title, I downloaded last version of plugin sdk (api 26) and I’d like to build it for test it and start learning it.
but I’m completely stuck since I’m unable to build, I’m on windows, and I’m assuming I have to install tons of tools in order to be able to compile it.
many many many years ago I was able to compile through codeblocks
few years ago I was able to compile through visual studio
now looks like I have to use this “make” that’s available only on linux, or on windows by installing a set of tools
does someone have a practice solution?
if not I’ll try go on a linux machine.
thanks in advance.
Well here is shameless plug for my own plugin template. It goes a bit further through, as it incorporates Qt to allow for GUI configuration.
The README contains everything you need to get this up and running and there is also a GitHub CI/CD pipeline to compile, bundle and publish the plugin for you.
The compilation is done through CMake. I personally always use(d) VSCode with the CMake extensions.
If you really want to compile the bare metal joke of a plugin example provided by TeamSpeak, you will need to setup your own Visual Studio solution, include all the files, manage the include path, etc.
1 Like
Isn’t there a guide that explain how to do it?
The readme doesn’t contain any info.
I tried to put all on a ubuntu vm and run “make” but it generate a .so file
While what I need is the classic .dll
Yes, the Makefile
is a GNU Makefile and designed to run with GNU Make. Thus it’s designed to compile on Unix (Linux in this case) systems and the Makefile here compiles to Linux and thus outputs a .so
- shared object.
For Windows you want to compile it with the MSVC compiler from Visual Studio. My repo provides a simple CMake wrapper so that everything is handled for you.
If you don’t want to use my template but just the official plugin template you will need to setup everything yourself. I am not aware of a good example / guide on how to do this. In simple terms:
- You need to create your own Visual Studio Solution.
- You want to use the
v140_xp
toolset for optimal compatibility with the TeamSpeak client.
- You need to specify all
.c(pp)
files so they are compiled.
- You need to set your target as a shared library.
- You need to include all folders with
.h(pp)
files in your include path.
- For better compatibility (but potentially worse performance) you may want to statically link CRT and STL.
1 Like
Isn’t there an official guide by teamspeak?
99% of plugins are made for windows, so I don’t understand why they provide something for linux.
edit: I solved by simply compiling with visual studio 2022 as dll without its v143 toolset, didn’t gave problems
the problem now is to find a documentation of all events and functions because tons of stuffs are unknown
1 Like