TeamTalk 5 C-API DLL: TeamTalk Library Setup

TeamTalk 5 C-API DLL Version 5.18A

Loading...
Searching...
No Matches
TeamTalk Library Setup

The TeamTalk C-API library is located in the `Library` folder.

The following sections explain how to set up the TeamTalk DLL so it can be used in a development project on a given platform.

- TeamTalk DLL on Windows
- TeamTalk DLL on Mac OS X
- TeamTalk DLL on Linux
- TeamTalk DLL on iOS

# TeamTalk DLL on Windows

On Windows the TeamTalk DLL requires Windows 7/8/10. The TeamTalk DLLs are available as both 32 and 64-bit so ensure correct DLL is being used for the architecture.

To access the TeamTalk API in a project the TeamTalk.h file must be included. Prior to including the TeamTalk.h file the `windows.h` file must have been included since the TeamTalk API depends on types specified by the Windows header file.

The TeamTalk import library must be provided to the compiler's linker so resolve its dependencies.

When running an application which uses the TeamTalk DLL on Windows ensure that the DLL is in the working directory of the application or the directory is in the `PATH` variable.

# TeamTalk DLL on Mac OS X

On Mac OS X the directory of the DLL (shared object) must be in the `DYLD_LIBRARY_PATH` environment variable.

# TeamTalk DLL on Linux

On Linux the directory of the DLL (shared object) must be in the `LD_LIBRARY_PATH` environment variable.

The TeamTalk DLL has dependencies to ALSA and OpenSSL so ensure the dependencies are installed (typically called libasound2 and libssl).

# TeamTalk DLL on iOS

Here's a guide on how to set up an iOS project in Xcode which uses the TeamTalk library.

## Xcode project setup

First create a new Xcode project, in this case "MyTeamTalkClient".

Xcode project

### Add library dependencies

Next scroll to the "Linked Frameworks and Libraries" and click the "+" button. The following dialog will appear:

Add library dependencies

Add the following library dependencies:

- `AVFoundation.framework`
- `AudioToolbox.framework`
- `libstdc++`.6.dylib
- `libstdc++`.dylib
- `libz.dylib`

Finally add the TeamTalk static library by clicking "Add Other..." in the frameworks dialog and locating the TeamTalk static library in the unzipped TeamTalk SDK folder:

Add TeamTalk static libray

The Xcode project should now look as follows:

Xcode project with dependencies set

## Setup header file

Navigate to "Build Settings", enable "All" and "Levels" in the toolbar header. Locate "Header Search Paths" as shown here:

Setup header search path

Add the TeamTalk SDK's include file directory to the list of search paths:

TeamTalk SDK include path

## Compile Xcode project

The Xcode project is now ready to compile. Here's an example where the TeamTalk library's version number is printed:

Xcode project ready