imagej-launcher
imagej-launcher copied to clipboard
Launcher fails to build locally on windows
mvn clean install
currently fails at linking:
[INFO] [exec] [100%] Linking C executable ImageJ-win64.exe
[INFO] [exec] "C:\Program Files\CMake\bin\cmake.exe" -E cmake_link_script CMakeFiles\ImageJ-win64.dir\link.txt --verbose=1
[INFO] [exec] "C:\Program Files\CMake\bin\cmake.exe" -E rm -f CMakeFiles\ImageJ-win64.dir/objects.a
[INFO] [exec] C:\ProgramData\mingw64\mingw64\bin\ar.exe cr CMakeFiles\ImageJ-win64.dir/objects.a @CMakeFiles\ImageJ-win64.dir\objects1.rsp
[INFO] [exec] C:\ProgramData\mingw64\mingw64\bin\gcc.exe -D__int64=int64_t -mwindows -Wl,--whole-archive CMakeFiles\ImageJ-win64.dir/objects.a -Wl,--no-whole-archive -o ImageJ-win64.exe -Wl,--out-implib,libImageJ-win64.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\ImageJ-win64.dir\linklibs.rsp
[INFO] [exec] C:/ProgramData/mingw64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\ImageJ-win64.dir/objects.a(file-funcs.c.obj):file-funcs.c:(.bss+0x0): multiple definition of `entry'; CMakeFiles\ImageJ-win64.dir/objects.a(ImageJ.c.obj):ImageJ.c:(.bss+0x0): first defined here
[INFO] [exec] C:/ProgramData/mingw64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\ImageJ-win64.dir/objects.a(java.c.obj):java.c:(.bss+0x0): multiple definition of `entry'; CMakeFiles\ImageJ-win64.dir/objects.a(ImageJ.c.obj):ImageJ.c:(.bss+0x0): first defined here
[INFO] [exec] C:/ProgramData/mingw64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\ImageJ-win64.dir/objects.a(platform.c.obj):platform.c:(.bss+0x0): multiple definition of `entry'; CMakeFiles\ImageJ-win64.dir/objects.a(ImageJ.c.obj):ImageJ.c:(.bss+0x0): first defined here
[INFO] [exec] collect2.exe: error: ld returned 1 exit status
[INFO] [exec] mingw32-make[2]: Leaving directory 'C:/Users/hiner/code/imagej/imagej-launcher/target'
[INFO] [exec] mingw32-make[1]: Leaving directory 'C:/Users/hiner/code/imagej/imagej-launcher/target'
[INFO] [exec] mingw32-make[2]: *** [CMakeFiles\ImageJ-win64.dir\build.make:234: ImageJ-win64.exe] Error 1
[INFO] [exec] mingw32-make[1]: *** [CMakeFiles\Makefile2:95: CMakeFiles/ImageJ-win64.dir/all] Error 2
[INFO] [exec] mingw32-make: *** [Makefile:103: all] Error 2