Am 30.03.21 um 13:03 schrieb Kornel Benko:

Could you please post
1.) The error messages you get if compiling with cmake configuration
2.) compile (and link) commands if compiling with make config

Yes, sorry I didn't get around to it yet, I was busy with other stuff. The problem is with linking - the compile runs through fine, but then the linking stage fails. I attach a complete session log, from setting up the build directory until the failure.

I'm not sure if I'm doing everything right, I just tried to do the same sequence I use on Linux, assuming that msys2 works in a similar fashion. It may well be that the msys2 build on w10 is not a well-trodden path, but I don't have MSVC here.

Please let me know if you need more information or want me to try out stuff on windows.

Kay


--
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/b4df26ab-0043-925a-e266-dace78d3c91e%40yahoo.com.
Kay F. Jahnke@DESKTOP-071N1FJ MSYS ~/src/pv
$ mkdir build

Kay F. Jahnke@DESKTOP-071N1FJ MSYS ~/src/pv
$ cd build

Kay F. Jahnke@DESKTOP-071N1FJ MSYS ~/src/pv/build
$ cmake ..
-- The C compiler identification is Clang 11.0.0
-- The CXX compiler identification is Clang 11.0.0
CMake Warning at /usr/share/cmake-3.20.0/Modules/Platform/MSYS.cmake:15 
(message):
  CMake no longer defines WIN32 on MSYS!

  (1) If you are just trying to build this project, ignore this warning or
  quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in
  the CMake cache.  If later configuration or build errors occur then this
  project may have been written under the assumption that MSYS is WIN32.  In
  that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.

  (2) If you are developing this project, add the line

    set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required

  at the top of your top-level CMakeLists.txt file or set the minimum
  required version of CMake to 2.8.4 or higher.  Then teach your project to
  build on Cygwin without WIN32.
Call Stack (most recent call first):
  /usr/share/cmake-3.20.0/Modules/CMakeSystemSpecificInformation.cmake:27 
(include)
  CMakeLists.txt:52 (project)


-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /mingw64/bin/clang.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /mingw64/bin/clang++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- /usr/bin/git.exe describe --match 1.0.7 --tags
-- WORKING_DIRECTORY = /home/Kay F. Jahnke/src/pv
-- LUX_PACKAGE_RELEASE = 176
-- CMAKE_INSTALL_PREFIX = /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to: /home/Kay F. Jahnke/src/pv/build

/usr/bin/cmake.exe -E cmake_progress_start "/home/Kay F. 
Jahnke/src/pv/build/CMakeFiles" "/home/Kay F. 
Jahnke/src/pv/build//CMakeFiles/progress.marks"
make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/Kay F. Jahnke/src/pv/build'
make  -f CMakeFiles/lux.dir/build.make CMakeFiles/lux.dir/depend
make[2]: Entering directory '/home/Kay F. Jahnke/src/pv/build'
cd "/home/Kay F. Jahnke/src/pv/build" && /usr/bin/cmake.exe -E cmake_depends 
"Unix Makefiles" "/home/Kay F. Jahnke/src/pv" "/home/Kay F. Jahnke/src/pv" 
"/home/Kay F. Jahnke/src/pv/build" "/home/Kay F. Jahnke/src/pv/build" 
"/home/Kay F. Jahnke/src/pv/build/CMakeFiles/lux.dir/DependInfo.cmake" --color=
Consolidate compiler generated dependencies of target lux
make[2]: Leaving directory '/home/Kay F. Jahnke/src/pv/build'
make  -f CMakeFiles/lux.dir/build.make CMakeFiles/lux.dir/build
make[2]: Entering directory '/home/Kay F. Jahnke/src/pv/build'
[  5%] Building CXX object CMakeFiles/lux.dir/pv_no_rendering.cc.o
/mingw64/bin/clang++.exe  -I"/home/Kay F. Jahnke/src/pv" -Ofast -D USE_VC -D 
VECTORIZE -fno-math-errno -Wno-unused-value  
-DPV_FONTDATADIR=\"/usr/local/share/lux//fonts\" -std=gnu++11 -Ofast 
-std=gnu++11 -MD -MT CMakeFiles/lux.dir/pv_no_rendering.cc.o -MF 
CMakeFiles/lux.dir/pv_no_rendering.cc.o.d -o 
CMakeFiles/lux.dir/pv_no_rendering.cc.o -c "/home/Kay F. 
Jahnke/src/pv/pv_no_rendering.cc"
[ 10%] Building CXX object CMakeFiles/lux.dir/pv_initialize.cc.o
/mingw64/bin/clang++.exe  -I"/home/Kay F. Jahnke/src/pv" -Ofast -D USE_VC -D 
VECTORIZE -fno-math-errno -Wno-unused-value  
-DPV_FONTDATADIR=\"/usr/local/share/lux//fonts\" -std=gnu++11 -Ofast 
-std=gnu++11 -MD -MT CMakeFiles/lux.dir/pv_initialize.cc.o -MF 
CMakeFiles/lux.dir/pv_initialize.cc.o.d -o 
CMakeFiles/lux.dir/pv_initialize.cc.o -c "/home/Kay F. 
Jahnke/src/pv/pv_initialize.cc"
[ 15%] Building CXX object CMakeFiles/lux.dir/file_dialog.cc.o
/mingw64/bin/clang++.exe  -I"/home/Kay F. Jahnke/src/pv" -Ofast -D USE_VC -D 
VECTORIZE -fno-math-errno -Wno-unused-value  
-DPV_FONTDATADIR=\"/usr/local/share/lux//fonts\" -std=gnu++11 
-DUSE_TINYFILEDIALOGS -MD -MT CMakeFiles/lux.dir/file_dialog.cc.o -MF 
CMakeFiles/lux.dir/file_dialog.cc.o.d -o CMakeFiles/lux.dir/file_dialog.cc.o -c 
"/home/Kay F. Jahnke/src/pv/file_dialog.cc"
[ 20%] Building CXX object CMakeFiles/lux.dir/pv_fallback.cc.o
/mingw64/bin/clang++.exe  -I"/home/Kay F. Jahnke/src/pv" -Ofast -D USE_VC -D 
VECTORIZE -fno-math-errno -Wno-unused-value  
-DPV_FONTDATADIR=\"/usr/local/share/lux//fonts\" -std=gnu++11 -D 
PV_ARCH=PV_FALLBACK -MD -MT CMakeFiles/lux.dir/pv_fallback.cc.o -MF 
CMakeFiles/lux.dir/pv_fallback.cc.o.d -o CMakeFiles/lux.dir/pv_fallback.cc.o -c 
"/home/Kay F. Jahnke/src/pv/build/pv_fallback.cc"
[ 25%] Building CXX object CMakeFiles/lux.dir/pv_cmb_fallback.cc.o
/mingw64/bin/clang++.exe  -I"/home/Kay F. Jahnke/src/pv" -Ofast -D USE_VC -D 
VECTORIZE -fno-math-errno -Wno-unused-value  
-DPV_FONTDATADIR=\"/usr/local/share/lux//fonts\" -std=gnu++11 -D 
PV_ARCH=PV_FALLBACK -MD -MT CMakeFiles/lux.dir/pv_cmb_fallback.cc.o -MF 
CMakeFiles/lux.dir/pv_cmb_fallback.cc.o.d -o 
CMakeFiles/lux.dir/pv_cmb_fallback.cc.o -c "/home/Kay F. 
Jahnke/src/pv/build/pv_cmb_fallback.cc"
[ 30%] Building CXX object CMakeFiles/lux.dir/pv_avx.cc.o
/mingw64/bin/clang++.exe  -I"/home/Kay F. Jahnke/src/pv" -Ofast -D USE_VC -D 
VECTORIZE -fno-math-errno -Wno-unused-value  
-DPV_FONTDATADIR=\"/usr/local/share/lux//fonts\" -std=gnu++11 -mavx -D 
PV_ARCH=PV_AVX -MD -MT CMakeFiles/lux.dir/pv_avx.cc.o -MF 
CMakeFiles/lux.dir/pv_avx.cc.o.d -o CMakeFiles/lux.dir/pv_avx.cc.o -c 
"/home/Kay F. Jahnke/src/pv/build/pv_avx.cc"
[ 35%] Building CXX object CMakeFiles/lux.dir/pv_cmb_avx.cc.o
/mingw64/bin/clang++.exe  -I"/home/Kay F. Jahnke/src/pv" -Ofast -D USE_VC -D 
VECTORIZE -fno-math-errno -Wno-unused-value  
-DPV_FONTDATADIR=\"/usr/local/share/lux//fonts\" -std=gnu++11 -mavx -D 
PV_ARCH=PV_AVX -MD -MT CMakeFiles/lux.dir/pv_cmb_avx.cc.o -MF 
CMakeFiles/lux.dir/pv_cmb_avx.cc.o.d -o CMakeFiles/lux.dir/pv_cmb_avx.cc.o -c 
"/home/Kay F. Jahnke/src/pv/build/pv_cmb_avx.cc"
[ 40%] Building CXX object CMakeFiles/lux.dir/pv_avx2.cc.o
/mingw64/bin/clang++.exe  -I"/home/Kay F. Jahnke/src/pv" -Ofast -D USE_VC -D 
VECTORIZE -fno-math-errno -Wno-unused-value  
-DPV_FONTDATADIR=\"/usr/local/share/lux//fonts\" -std=gnu++11 -mavx2 -D 
PV_ARCH=PV_AVX2 -MD -MT CMakeFiles/lux.dir/pv_avx2.cc.o -MF 
CMakeFiles/lux.dir/pv_avx2.cc.o.d -o CMakeFiles/lux.dir/pv_avx2.cc.o -c 
"/home/Kay F. Jahnke/src/pv/build/pv_avx2.cc"
[ 45%] Building CXX object CMakeFiles/lux.dir/pv_cmb_avx2.cc.o
/mingw64/bin/clang++.exe  -I"/home/Kay F. Jahnke/src/pv" -Ofast -D USE_VC -D 
VECTORIZE -fno-math-errno -Wno-unused-value  
-DPV_FONTDATADIR=\"/usr/local/share/lux//fonts\" -std=gnu++11 -mavx2 -D 
PV_ARCH=PV_AVX2 -MD -MT CMakeFiles/lux.dir/pv_cmb_avx2.cc.o -MF 
CMakeFiles/lux.dir/pv_cmb_avx2.cc.o.d -o CMakeFiles/lux.dir/pv_cmb_avx2.cc.o -c 
"/home/Kay F. Jahnke/src/pv/build/pv_cmb_avx2.cc"
[ 50%] Building CXX object CMakeFiles/lux.dir/pv_avx512f.cc.o
/mingw64/bin/clang++.exe  -I"/home/Kay F. Jahnke/src/pv" -Ofast -D USE_VC -D 
VECTORIZE -fno-math-errno -Wno-unused-value  
-DPV_FONTDATADIR=\"/usr/local/share/lux//fonts\" -std=gnu++11 -mavx512f -D 
PV_ARCH=PV_AVX512f -MD -MT CMakeFiles/lux.dir/pv_avx512f.cc.o -MF 
CMakeFiles/lux.dir/pv_avx512f.cc.o.d -o CMakeFiles/lux.dir/pv_avx512f.cc.o -c 
"/home/Kay F. Jahnke/src/pv/build/pv_avx512f.cc"
[ 55%] Building CXX object CMakeFiles/lux.dir/pv_cmb_avx512f.cc.o
/mingw64/bin/clang++.exe  -I"/home/Kay F. Jahnke/src/pv" -Ofast -D USE_VC -D 
VECTORIZE -fno-math-errno -Wno-unused-value  
-DPV_FONTDATADIR=\"/usr/local/share/lux//fonts\" -std=gnu++11 -mavx512f -D 
PV_ARCH=PV_AVX512f -MD -MT CMakeFiles/lux.dir/pv_cmb_avx512f.cc.o -MF 
CMakeFiles/lux.dir/pv_cmb_avx512f.cc.o.d -o 
CMakeFiles/lux.dir/pv_cmb_avx512f.cc.o -c "/home/Kay F. 
Jahnke/src/pv/build/pv_cmb_avx512f.cc"
[ 60%] Linking CXX executable lux.exe
/usr/bin/cmake.exe -E cmake_link_script CMakeFiles/lux.dir/link.txt --verbose=1
/mingw64/bin/clang++.exe -Wl,--enable-auto-import 
CMakeFiles/lux.dir/pv_no_rendering.cc.o CMakeFiles/lux.dir/pv_initialize.cc.o 
CMakeFiles/lux.dir/file_dialog.cc.o CMakeFiles/lux.dir/pv_fallback.cc.o 
CMakeFiles/lux.dir/pv_cmb_fallback.cc.o CMakeFiles/lux.dir/pv_avx.cc.o 
CMakeFiles/lux.dir/pv_cmb_avx.cc.o CMakeFiles/lux.dir/pv_avx2.cc.o 
CMakeFiles/lux.dir/pv_cmb_avx2.cc.o CMakeFiles/lux.dir/pv_avx512f.cc.o 
CMakeFiles/lux.dir/pv_cmb_avx512f.cc.o -o lux.exe -Wl,--out-implib,liblux.dll.a 
-Wl,--major-image-version,0,--minor-image-version,0  /usr/lib/libpthread.a 
/usr/local/lib/libVc.a /usr/local/lib/libvigraimpex.dll.a 
/mingw64/lib/libsfml-window.dll.a /mingw64/lib/libsfml-graphics.dll.a 
/mingw64/lib/libsfml-system.dll.a /mingw64/lib/libexiv2.dll.a
C:\msys64\mingw64\bin\ld: 
C:\msys64\mingw64\x86_64-w64-mingw32\lib/libpthread.dll.a(d000079.o):(.text+0x0):
 multiple definition of `pthread_mutex_unlock'; 
C:/msys64/usr/lib/libpthread.a(t-d001117.o):fake:(.text+0x0): first defined here
C:\msys64\mingw64\bin\ld: 
C:\msys64\mingw64\x86_64-w64-mingw32\lib/libpthread.dll.a(d000076.o):(.text+0x0):
 multiple definition of `pthread_mutex_lock'; 
C:/msys64/usr/lib/libpthread.a(t-d001113.o):fake:(.text+0x0): first defined here
C:\msys64\mingw64\bin\ld: 
C:\msys64\mingw64\x86_64-w64-mingw32\lib/libpthread.dll.a(d000075.o):(.text+0x0):
 multiple definition of `pthread_mutex_init'; 
C:/msys64/usr/lib/libpthread.a(t-d001112.o):fake:(.text+0x0): first defined here
C:\msys64\mingw64\bin\ld: 
C:\msys64\mingw64\x86_64-w64-mingw32\lib/libpthread.dll.a(d000074.o):(.text+0x0):
 multiple definition of `pthread_mutex_destroy'; 
C:/msys64/usr/lib/libpthread.a(t-d001110.o):fake:(.text+0x0): first defined here
C:\msys64\mingw64\bin\ld: 
CMakeFiles/lux.dir/pv_no_rendering.cc.o:pv_no_rendering.cc:(.text$_ZN5vigra6detail11exportImageINS_25ConstStridedImageIteratorINS_10TinyVectorIfLi4EEEEENS_14VectorAccessorIS4_EEEEvT_S8_T0_RKNS_15ImageExportInfoENS_14VigraFalseTypeE[_ZN5vigra6detail11exportImageINS_25ConstStridedImageIteratorINS_10TinyVectorIfLi4EEEEENS_14VectorAccessorIS4_EEEEvT_S8_T0_RKNS_15ImageExportInfoENS_14VigraFalseTypeE]+0x125):
 undefined reference to 
`__imp__ZN5vigra18negotiatePixelTypeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_RS5_'
C:\msys64\mingw64\bin\ld: 
CMakeFiles/lux.dir/pv_no_rendering.cc.o:pv_no_rendering.cc:(.text$_ZN5vigra6detail11exportImageINS_25ConstStridedImageIteratorINS_10TinyVectorIfLi4EEEEENS_14VectorAccessorIS4_EEEEvT_S8_T0_RKNS_15ImageExportInfoENS_14VigraFalseTypeE[_ZN5vigra6detail11exportImageINS_25ConstStridedImageIteratorINS_10TinyVectorIfLi4EEEEENS_14VectorAccessorIS4_EEEEvT_S8_T0_RKNS_15ImageExportInfoENS_14VigraFalseTypeE]+0x196):
 undefined reference to 
`__imp__ZN5vigra21isBandNumberSupportedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi'
C:\msys64\mingw64\bin\ld: 
CMakeFiles/lux.dir/pv_no_rendering.cc.o:pv_no_rendering.cc:(.text$_ZN5vigra6detail11exportImageINS_25ConstStridedImageIteratorINS_10TinyVectorIfLi3EEEEENS_14VectorAccessorIS4_EEEEvT_S8_T0_RKNS_15ImageExportInfoENS_14VigraFalseTypeE[_ZN5vigra6detail11exportImageINS_25ConstStridedImageIteratorINS_10TinyVectorIfLi3EEEEENS_14VectorAccessorIS4_EEEEvT_S8_T0_RKNS_15ImageExportInfoENS_14VigraFalseTypeE]+0x123):
 undefined reference to 
`__imp__ZN5vigra18negotiatePixelTypeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_RS5_'
C:\msys64\mingw64\bin\ld: 
CMakeFiles/lux.dir/pv_no_rendering.cc.o:pv_no_rendering.cc:(.text$_ZN5vigra6detail11exportImageINS_25ConstStridedImageIteratorINS_10TinyVectorIfLi3EEEEENS_14VectorAccessorIS4_EEEEvT_S8_T0_RKNS_15ImageExportInfoENS_14VigraFalseTypeE[_ZN5vigra6detail11exportImageINS_25ConstStridedImageIteratorINS_10TinyVectorIfLi3EEEEENS_14VectorAccessorIS4_EEEEvT_S8_T0_RKNS_15ImageExportInfoENS_14VigraFalseTypeE]+0x18f):
 undefined reference to 
`__imp__ZN5vigra21isBandNumberSupportedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi'
C:\msys64\mingw64\bin\ld: 
CMakeFiles/lux.dir/file_dialog.cc.o:file_dialog.cc:(.text+0x1509): undefined 
reference to `__imp_CoInitializeEx'
C:\msys64\mingw64\bin\ld: 
CMakeFiles/lux.dir/file_dialog.cc.o:file_dialog.cc:(.text+0x181b): undefined 
reference to `__imp_GetSaveFileNameW'
C:\msys64\mingw64\bin\ld: 
CMakeFiles/lux.dir/file_dialog.cc.o:file_dialog.cc:(.text+0x1832): undefined 
reference to `__imp_CoUninitialize'
C:\msys64\mingw64\bin\ld: 
CMakeFiles/lux.dir/file_dialog.cc.o:file_dialog.cc:(.text+0x1ae5): undefined 
reference to `__imp_CoInitializeEx'
C:\msys64\mingw64\bin\ld: 
CMakeFiles/lux.dir/file_dialog.cc.o:file_dialog.cc:(.text+0x1dcc): undefined 
reference to `__imp_GetOpenFileNameW'
C:\msys64\mingw64\bin\ld: 
CMakeFiles/lux.dir/file_dialog.cc.o:file_dialog.cc:(.text+0x2037): undefined 
reference to `__imp_CoUninitialize'
C:\msys64\mingw64\bin\ld: 
CMakeFiles/lux.dir/file_dialog.cc.o:file_dialog.cc:(.text+0x219b): undefined 
reference to `__imp_CoInitializeEx'
C:\msys64\mingw64\bin\ld: 
CMakeFiles/lux.dir/file_dialog.cc.o:file_dialog.cc:(.text+0x2221): undefined 
reference to `__imp_CoUninitialize'
C:\msys64\mingw64\bin\ld: 
CMakeFiles/lux.dir/file_dialog.cc.o:file_dialog.cc:(.text+0x2355): undefined 
reference to `__imp_CoInitializeEx'
C:\msys64\mingw64\bin\ld: 
CMakeFiles/lux.dir/file_dialog.cc.o:file_dialog.cc:(.text+0x236e): undefined 
reference to `__imp_CoInitializeEx'
C:\msys64\mingw64\bin\ld: 
CMakeFiles/lux.dir/file_dialog.cc.o:file_dialog.cc:(.text+0x242e): undefined 
reference to `__imp_ChooseColorW'
C:\msys64\mingw64\bin\ld: 
CMakeFiles/lux.dir/file_dialog.cc.o:file_dialog.cc:(.text+0x247f): undefined 
reference to `__imp_CoUninitialize'
clang++: error: linker command failed with exit code 1 (use -v to see 
invocation)
make[2]: *** [CMakeFiles/lux.dir/build.make:299: lux.exe] Error 1
make[2]: Leaving directory '/home/Kay F. Jahnke/src/pv/build'
make[1]: *** [CMakeFiles/Makefile2:86: CMakeFiles/lux.dir/all] Error 2
make[1]: Leaving directory '/home/Kay F. Jahnke/src/pv/build'
make: *** [Makefile:159: all] Error 2

Kay F. Jahnke@DESKTOP-071N1FJ MSYS ~/src/pv/build

Here's the link script, for good measure:

$ cat CMakeFiles/lux.dir/link.txt
/mingw64/bin/clang++.exe -Wl,--enable-auto-import 
CMakeFiles/lux.dir/pv_no_rendering.cc.o CMakeFiles/lux.dir/pv_initialize.cc.o 
CMakeFiles/lux.dir/file_dialog.cc.o CMakeFiles/lux.dir/pv_fallback.cc.o 
CMakeFiles/lux.dir/pv_cmb_fallback.cc.o CMakeFiles/lux.dir/pv_avx.cc.o 
CMakeFiles/lux.dir/pv_cmb_avx.cc.o CMakeFiles/lux.dir/pv_avx2.cc.o 
CMakeFiles/lux.dir/pv_cmb_avx2.cc.o CMakeFiles/lux.dir/pv_avx512f.cc.o 
CMakeFiles/lux.dir/pv_cmb_avx512f.cc.o -o lux.exe -Wl,--out-implib,liblux.dll.a 
-Wl,--major-image-version,0,--minor-image-version,0  /usr/lib/libpthread.a 
/usr/local/lib/libVc.a /usr/local/lib/libvigraimpex.dll.a 
/mingw64/lib/libsfml-window.dll.a /mingw64/lib/libsfml-graphics.dll.a 
/mingw64/lib/libsfml-system.dll.a /mingw64/lib/libexiv2.dll.a

Reply via email to