vmagnin/gtk-fortran

MSYS2: installation of gtk-fortran fails because of src/gtk-4-fortran.exe

vmagnin opened this issue · 2 comments

Describe the bug
Installation fails at src/gtk-4-fortran probably because the filename is gtk-4-fortran.exe in Windows:

Install the project...
-- Install configuration: "RELEASE"
-- Installing: C:/msys64/ucrt64/lib/libgtk-4-fortran.a
-- Installing: C:/msys64/ucrt64/lib/libgtk-4-fortran.dll.a
-- Installing: C:/msys64/ucrt64/bin/libgtk-4-fortran.dll
-- Up-to-date: C:/msys64/ucrt64/include/gtk-4-fortran
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/cairo.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/g.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gdk.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gdk_events.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gdk_pixbuf.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gdk_pixbuf_hl.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/graphene.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gsk.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gtk.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gtk_draw_hl.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gtk_hl.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gtk_hl_assistant.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gtk_hl_button.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gtk_hl_chooser.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gtk_hl_combobox.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gtk_hl_container.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gtk_hl_dialog.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gtk_hl_entry.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gtk_hl_infobar.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gtk_hl_misc.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gtk_hl_progress.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gtk_hl_spin_slider.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gtk_hl_tree.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gtk_os_dependent.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/gtk_sup.mod
-- Installing: C:/msys64/ucrt64/include/gtk-4-fortran/pango.mod
-- Installing: C:/msys64/ucrt64/bin/gtk-4-fortran-modscan
-- Installing: C:/msys64/ucrt64/bin/gtk-4-fortran-pymodscan
CMake Error at src/cmake_install.cmake:71 (file):
  file INSTALL cannot find
  "C:/msys64/home/vmagnin/gtk-fortran/build/src/gtk-4-fortran": No such file
  or directory.
Call Stack (most recent call first):
  cmake_install.cmake:42 (include)

make: *** [Makefile:130: install] Error 1

Your system:

  • OS version: Windows 10 21H2 and MSYS2-UCRT64
  • Compiler version: gfortran 12.2.0
  • GTK branch: gtk4

In src/CMakeLists.txt:

install(PROGRAMS
  "${CMAKE_CURRENT_BINARY_DIR}/${gtk_V_fortran}"
  DESTINATION ${CMAKE_INSTALL_BINDIR}
  PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)

Fixed by:

install(TARGETS ${gtk_V_fortran}
  DESTINATION ${CMAKE_INSTALL_BINDIR}
  PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)