Code Monkey home page Code Monkey logo

vst3_cmake's People

Contributors

ferdnyc avatar scheffle avatar ygrabit avatar

Stargazers

 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

vst3_cmake's Issues

`LOCAL_JACK_LIB` in `SMTG_FindJack.cmake` is not set correctly on windows

I tried to build audiohost.exe on Windows10 64bit machine, but it failed due to LIBJACK_FOUND was not set.
My environment is Windows10 Professional, Version 1909, Build 18363.1316.

At first, I installed Jack using installer downloaded from here.
Then I executed the below cmake command in build directory,
but LIBJACK_FOUND was not set was shown despite of Jack libraries installed.

$ cmake -DSMTG_ENABLE_USE_OF_JACK=ON -DSMTG_JACK_SDK_PATH="C:\Program Files\JACK2" ..
...
-- Could NOT find LIBJACK (missing: LIBJACK_LIBRARY)
-- LIBJACK_FOUND is not set. If you need it, please install Jack Audio from http://www.jackaudio.org!
-- LIBJACK_FOUND is not set.
...

I found the reason was that wrong library path was set in SMTG_FindJack.cmake.

if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(EXTENSION 64)
set(LOCAL_JACK_LIB "${SMTG_JACK_SDK_PATH}/lib/win64")
else ()
set(LOCAL_JACK_LIB "${SMTG_JACK_SDK_PATH}/lib/win32")
endif()

The above lines set LOCAL_JACK_LIB as "${SMTG_JACK_SDK_PATH}/lib/win64" on 64bit build,
but current Jack installer for windows try to install 64bit libraries to

  • C:\Program Files\JACK2\lib

It also set LOCAL_JACK_LIB as ${SMTG_JACK_SDK_PATH}/lib/win32 on 32bit build,
but Jack installer for windows installs 32bit libraries to

  • C:\Program FIles\JACK2\lib32 on 64bit windows machine (in my environment, and guessed from 64bit installer code)
  • C:\Program Files\JACK2\lib on 32bit windows machine (guessed from 32bit installer code)

So finally I fixed this issue by replacing
set(LOCAL_JACK_LIB ${SMTG_JACK_SDK_PATH}/lib/win64) to
set(LOCAL_JACK_LIB "${SMTG_JACK_SDK_PATH}/lib").

Validator does not run after building

Hi.

After upgraded to vstsdk370_30_07_2020_build_115, validator doesn't run after building plugin. This issue occurred on following environment:

  • Windows 10 Home, Version 1903, Build 18362.959
  • Linux, Fedora 32

I used git to upgrade vst3sdk.

cd vst3sdk
git pull --recurse-submodules

On cmake, SMTG_RUN_VST_VALIDATOR is turned on.

>cmake -LA
# ...
SMTG_RUN_VST_VALIDATOR:BOOL=ON

I'm using smtg_add_vst3plugin in my CMakeLists.txt. When I removed first if(TARGET validator) condition in smtg_run_vst_validator (link to code) as following, validator starts running again.

# In `modules/AddVST3Library.cmake`.

function(smtg_run_vst_validator target) # Line 9.
    # if(TARGET validator)
        add_dependencies(${target} validator)
        if(SMTG_WIN)
            set(TARGET_PATH $<TARGET_FILE:${target}>)
            add_custom_command(TARGET ${target} 
                POST_BUILD COMMAND 
                    $<TARGET_FILE:validator> 
                    "${TARGET_PATH}" 
                    WORKING_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}"
                )
        else()
            get_target_property(PLUGIN_PACKAGE_PATH ${target} SMTG_PLUGIN_PACKAGE_PATH)
            add_custom_command(TARGET ${target} 
                POST_BUILD COMMAND 
                    $<TARGET_FILE:validator> 
                    $<$<CONFIG:Debug>:${PLUGIN_PACKAGE_PATH}>
                    $<$<CONFIG:Release>:${PLUGIN_PACKAGE_PATH}> 
                    WORKING_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}"
            )
        endif()
    # endif()
endfunction()

For Windows, create destination installation folders if they don't exist

Hi.
After building a project, the final VST3 bundle is installed (creating a symlink) to the %USERPROFILE%\AppData\Local\Programs\Common\VST3\ folder on Windows 64bit.
But if that folder does not exist, the post-build fails.
Could the modules/SMTG_SetupVST3LibraryDefaultPath.cmake be modified so it creates the missing folders automatically?

Thanks.

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.