Plugin compiled with MINGW is not recognized

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

EsmeraldaQuintero

  • Posts: 14
  • Joined: Fri Mar 06, 2020 12:36 am
  • Location: Mexico
  • Real Name: Esmeralda Quintero

Plugin compiled with MINGW is not recognized

PostFri Mar 13, 2020 8:57 pm

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?
Offline

EsmeraldaQuintero

  • Posts: 14
  • Joined: Fri Mar 06, 2020 12:36 am
  • Location: Mexico
  • Real Name: Esmeralda Quintero

Re: Plugin compiled with MINGW is not recognized

PostTue Mar 17, 2020 7:30 pm

For close the topic

I just forget "-g" flag

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

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 7 guests