Hi! I am trying to compile this plugin on Windows 11, but without success.
Murphy, D. T., Mátyás, J., and Ternström, S., “Articulatory vocal tract synthesis in Supercollider”, Proc. of the 18th Int. Conference on Digital Audio Effects (DAFx-15), pp. 307-313, Trondheim, Norway, Nov. 30-Dec. 3, 2015.
Source code here. Article here.
I have adapted the CMakeList from newer versions, but when I try to build it is trowing this linkage error.
VocalTractArea.cpp(238,1): error C2375: 'load': redefinition; different linkage
Here is my version:
####################################################################################################
# basic project config
cmake_minimum_required(VERSION 3.5)
set(project_name "Apex")
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake_modules ${CMAKE_MODULE_PATH})
set(CMAKE_CXX_STANDARD 11)
####################################################################################################
# load modules
include(SuperColliderServerPlugin RESULT_VARIABLE server_plugin_found)
if(NOT server_plugin_found)
message(FATAL_ERROR "Could not find server plugin functions module")
endif()
include(SuperColliderCompilerConfig RESULT_VARIABLE compiler_config_found)
if(NOT compiler_config_found)
message(FATAL_ERROR "Could not find compiler config module")
endif()
# Windows - puts redistributable DLLs in install directory
include(InstallRequiredSystemLibraries)
sc_check_sc_path("${SC_PATH}")
message(STATUS "Found SuperCollider: ${SC_PATH}")
set(SC_PATH "${SC_PATH}" CACHE PATH
"Path to SuperCollider source. Relative paths are treated as relative to this script" FORCE)
include("${SC_PATH}/SCVersion.txt")
message(STATUS "Building plugins for SuperCollider version: ${SC_VERSION}")
# set project here to avoid SCVersion.txt clobbering our version info
project(${project_name})
sc_do_initial_compiler_config() # do after setting project so compiler ID is available
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT OR NOT CMAKE_INSTALL_PREFIX)
message(WARNING "No install prefix provided, defaulting to $BUILD_DIR/install")
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE PATH "Install prefix" FORCE)
endif()
message(STATUS "Install directory set to: ${CMAKE_INSTALL_PREFIX}")
####################################################################################################
# options
option(SUPERNOVA "Build plugins for supernova" ON)
option(SCSYNTH "Build plugins for scsynth" ON)
option(NATIVE "Optimize for native architecture" OFF)
option(STRICT "Use strict warning flags" OFF)
option(NOVA_SIMD "Build plugins with nova-simd support." ON)
####################################################################################################
# include libraries
if (NOVA_SIMD)
add_definitions(-DNOVA_SIMD)
include_directories(${SC_PATH}/external_libraries/nova-simd)
endif()
####################################################################################################
# Begin target Apex
set(Apex_cpp_files
plugins/Apex/VocalTractArea.cpp
plugins/Apex/KLVocalTract.cpp
)
set(Apex_sc_files
plugins/Apex/VocalTractArea.sc
plugins/Apex/KLVocalTract.sc
)
set(Apex_schelp_files
plugins/Apex/VocalTractArea.schelp
plugins/Apex/KLVocalTract.schelp
)
sc_add_server_plugin(
"Apex/Apex" # desination directory
"Apex" # target name
"${Apex_cpp_files}"
"${Apex_sc_files}"
"${Apex_schelp_files}"
)
# End target Apex
####################################################################################################
####################################################################################################
# END PLUGIN TARGET DEFINITION
####################################################################################################
message(STATUS "Generating plugin targets done")
and here is the original one:
cmake_minimum_required (VERSION 2.8)
include_directories(${SC_PATH}/include/plugin_interface)
include_directories(${SC_PATH}/include/common)
include_directories(${SC_PATH}/external_libraries/libsndfile/)
set(plugin_sources
VocaltractArea.cpp
KLVocalTract.cpp
)
#set(plugins "")
set(CMAKE_SHARED_MODULE_PREFIX "")
if(APPLE OR WIN32)
set(CMAKE_SHARED_MODULE_SUFFIX ".scx")
endif()
#This adapted a bit from the SC3 membranes make file for multiplt source files
foreach(plugin ${plugin_sources})
string(REPLACE .cpp "" plugin_name ${plugin} )
add_library(${plugin_name} MODULE ${plugin}; tool.cpp)
list(APPEND plugins ${plugin_name})
endforeach(plugin)
Any ideas about how to proceed?