View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide

sc3 windows compilation

Home   How To   Code Pool   Public Library   Theory   Events
The Windows port of sc3 is just beginning. At this stage only the server is working, but it does work. These instructions are for people who are comfortable with creating project files or makefiles from scratch. Some skill in debugging configuration issues would be useful too.

For build compatibility reasons MSVC is probably the best choice of compiler, followed by gcc, i'm using BCB so go figure.

To begin with you will need:


The general idea is to make DLLs for libsndfile and pthreads, to build the sc server into an exe, and build each plugin into a separate dll (these go in a /plugins directory when you've finished). PortAudio can be linked statically or as a DLL. It's important for libsndfile and pthreads to be DLLs so they can be accessed from the plugins.

Depending on whether your compiler is supported by libsndfile or pthreads-win32 you may need to know something about .def files to get the DLL exports working properly.

building the server

LIBRARY  portaudio.dll
EXPORTS

;
load		_load

Below are some further build notes I made as I was working, it's probably best to ignore them unless you encounter problems. Better to read the documentation that comes with the libraries.

libsndfile


pthreads-win32

#ifndef ENOSYS
#define ENOSYS EINVFNC
#endif
#ifndef EDEADLK
#define EDEADLK EDEADLOCK
#endif
##ifdef __BORLANDC__
##define _ftime ftime
##define _timeb timeb
##endif

portaudio v19-devel