Having trouble installing or compiling FreeCAD? Get help here.
-
looo
- Veteran
- Posts: 3941
- Joined: Mon Nov 11, 2013 5:29 pm
Post
by looo »
Not sure why this is failing:
Code: Select all
[2340/3244] Linking CXX shared library bin\FreeCADGui.dll
FAILED: bin/FreeCADGui.dll src/Gui/FreeCADGui.lib
cmd.exe /C "cd . && %BUILD_PREFIX%\Library\bin\cmake.exe -E vs_link_dll --intdir=src\Gui\CMakeFiles\FreeCADGui.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\x64\mt.exe --manifests -- C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\link.exe /nologo @CMakeFiles\FreeCADGui.rsp /out:bin\FreeCADGui.dll /implib:src\Gui\FreeCADGui.lib /pdb:bin\FreeCADGui.pdb /dll /version:0.0 /machine:x64 /NODEFAULTLIB /INCREMENTAL:NO /DEBUG && cd ."
LINK: command "C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\link.exe /nologo @CMakeFiles\FreeCADGui.rsp /out:bin\FreeCADGui.dll /implib:src\Gui\FreeCADGui.lib /pdb:bin\FreeCADGui.pdb /dll /version:0.0 /machine:x64 /NODEFAULTLIB /INCREMENTAL:NO /DEBUG /MANIFEST /MANIFESTFILE:bin\FreeCADGui.dll.manifest" failed (exit code 1107) with the following output:
LINK : warning LNK4044: unrecognized option '/lpthreads'; ignored
%PREFIX%\Library\bin\shiboken2.cp37-win_amd64.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x348
%PREFIX%\Library\bin\shiboken2.cp37-win_amd64.dll exists.
ref:
https://dev.azure.com/sppedflyer/feedst ... 3b989e923d
-
UR_
- Veteran
- Posts: 1355
- Joined: Tue Jan 03, 2017 8:42 pm
Post
by UR_ »
looo wrote: ↑Sun Oct 06, 2019 9:07 am
%PREFIX%\Library\bin\shiboken2.cp37-win_amd64.dll exists.
but IMO
/Library/lib/shiboken2.cp37-win_amd64.lib
is needed for linking
-
looo
- Veteran
- Posts: 3941
- Joined: Mon Nov 11, 2013 5:29 pm
Post
by looo »
Ah thanks.
pyside2 config file doesn't look very good:
Code: Select all
# Import target "Shiboken2::libshiboken" for configuration "Release"
set_property(TARGET Shiboken2::libshiboken APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(Shiboken2::libshiboken PROPERTIES
IMPORTED_IMPLIB_RELEASE "D:/bld/pyside2_1569322331212/_h_env/Library/lib/shiboken2.cp37-win_amd64.lib"
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/bin/shiboken2.cp37-win_amd64.dll"
)
list(APPEND _IMPORT_CHECK_TARGETS Shiboken2::libshiboken )
list(APPEND _IMPORT_CHECK_FILES_FOR_Shiboken2::libshiboken "D:/bld/pyside2_1569322331212/_h_env/Library/lib/shiboken2.cp37-win_amd64.lib" "${_IMPORT_PREFIX}/bin/shiboken2.cp37-win_amd64.dll" )
# Import target "Shiboken2::shiboken2" for configuration "Release"
set_property(TARGET Shiboken2::shiboken2 APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(Shiboken2::shiboken2 PROPERTIES
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/bin/shiboken2.exe"
)
list(APPEND _IMPORT_CHECK_TARGETS Shiboken2::shiboken2 )
list(APPEND _IMPORT_CHECK_FILES_FOR_Shiboken2::shiboken2 "${_IMPORT_PREFIX}/bin/shiboken2.exe" )
So i guess a patch is necessary.
ref.:
https://github.com/conda-forge/pyside2- ... /issues/43