Skip to main content
PCook.1
Associate
July 10, 2021
Question

How to use WinGW + GCC + Cmake compile link STemWin STemWin532_CM4_OS_GCC.a

  • July 10, 2021
  • 1 reply
  • 1013 views

185/5000

Win10 system using the CLion IDE, in the compilation environment of WinGW, using Cmake and arm-none-eabi-gcc toolchain compilation connection static library stemwin532_cm4_os_gcc. a,

CMake Error at CMakeLists.txt:68 (target_link_libraries):

"Cannot specify link libraries for target "demo" which is not built by this project."

mingw32-make.exe: *** [cmake_check_build_system] Error 1

This topic has been closed for replies.

1 reply

PCook.1
PCook.1Author
Associate
July 10, 2021

my Cmakelist

This file is generated by STM32CubeMX.

link_directories(STemwin/Include)

link_libraries(STemwin/GUI_Lib)

add_executable(${PROJECT_NAME}.elf ${SOURCES} ${LINKER_SCRIPT})

target_link_libraries(${PROJECT_NAME} STemWin532_CM4_OS_GCC.a)

Is the library available only under Linux?