Page 1 of 1

Plugin compiled with MINGW is not recognized

PostPosted: Fri Mar 13, 2020 8:57 pm
by EsmeraldaQuintero
Hello!

I made a CMakeLists for the basic plugin example from openfx repository. I compiled it with Visual Studio 2015 and it works, but when I compile it with MINGW it does not work
github.com/ofxa/openfx/tree/master/Documentation/sources/Guide/Code/Example1/basics.cpp

Basically the Cmakelists code look like this:
Code: Select all
project(OpenFX_Plugin)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(OS_VAR "windows")
set(OFX_ARCH_NAME "Win64")
add_definitions(-DWIN64)

set(OPENFX_DIR ./openfx)
include_directories(${OPENFX_DIR}/include)
set(OPENFX_PLUGIN_DIR ./OpenFX_Plugin)
include_directories(${OPENFX_PLUGIN_DIR})
file(GLOB SRC_LIST ${SRC_LIST} ${OPENFX_PLUGIN_DIR}/basics.cpp)
add_library(${PROJECT_NAME} SHARED ${SRC_LIST} ${HEADER_LIST})
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
set_target_properties(${PROJECT_NAME} PROPERTIES SUFFIX ".ofx")

set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/${OS_VAR}/${CMAKE_BUILD_TYPE})
install(
    TARGETS ${PROJECT_NAME}
    RUNTIME DESTINATION ${PROJECT_NAME}.ofx.bundle/Contents/${OFX_ARCH_NAME}
    LIBRARY DESTINATION ${PROJECT_NAME}.ofx.bundle/Contents/${OFX_ARCH_NAME}
    )


Am I missing something?
Davinci resolve supports plugins compiled with mingw?
Is there another place where I could ask?

Re: Plugin compiled with MINGW is not recognized

PostPosted: Tue Mar 17, 2020 7:30 pm
by EsmeraldaQuintero
For close the topic

I just forget "-g" flag

Code: Select all
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g")