[fixed] conda: win compile error

there is currently a compilation error for conda / windows:

2022-10-30T07:32:26.2268950Z %PREFIX%\Library\include\boost/detail/iterator.hpp(13): note: This header is deprecated. Use <iterator> instead.
2022-10-30T07:32:26.2273024Z %SRC_DIR%\src\Gui\Placement.cpp(698): error C2065: 'SelectionObject': undeclared identifier
2022-10-30T07:32:26.2278738Z %SRC_DIR%\src\Gui\Placement.cpp(698): error C2923: 'std::vector': 'SelectionObject' is not a valid template type argument for parameter '_Ty'
2022-10-30T07:32:26.3208726Z %SRC_DIR%\src\Gui\Placement.cpp(698): error C3203: 'allocator': unspecialized class template can't be used as a template argument for template parameter '_Alloc', expected a real type
2022-10-30T07:32:26.3221501Z %SRC_DIR%\src\Gui\Placement.cpp(698): error C2955: 'std::vector': use of class template requires template argument list
2022-10-30T07:32:26.3222586Z %PREFIX%\Library\include\boost/detail/container_fwd.hpp(135): note: see declaration of 'std::vector'
2022-10-30T07:32:26.3249360Z %SRC_DIR%\src\Gui\Placement.cpp(699): error C2955: 'std::vector': use of class template requires template argument list
2022-10-30T07:32:26.3250393Z %PREFIX%\Library\include\boost/detail/container_fwd.hpp(135): note: see declaration of 'std::vector'
2022-10-30T07:32:26.3260455Z %SRC_DIR%\src\Gui\Placement.cpp(699): error C2511: 'void Gui::Dialog::Placement::setSelection(const std::vector &)': overloaded member function not found in 'Gui::Dialog::Placement'
2022-10-30T07:32:26.3261614Z d:\bld\freecad_1667111313501\work\src\gui\Placement.h(42): note: see declaration of 'Gui::Dialog::Placement'
2022-10-30T07:32:26.3266307Z %SRC_DIR%\src\Gui\Placement.cpp(700): error C2597: illegal reference to non-static member 'Gui::Dialog::Placement::selectionObjects'
2022-10-30T07:32:26.3267229Z %SRC_DIR%\src\Gui\Placement.cpp(918): error C2065: 'SelectionObject': undeclared identifier
2022-10-30T07:32:26.3274119Z %SRC_DIR%\src\Gui\Placement.cpp(918): error C2923: 'std::vector': 'SelectionObject' is not a valid template type argument for parameter '_Ty'
2022-10-30T07:32:26.3275154Z %SRC_DIR%\src\Gui\Placement.cpp(918): error C3203: 'allocator': unspecialized class template can't be used as a template argument for template parameter '_Alloc', expected a real type
2022-10-30T07:32:26.3322601Z %SRC_DIR%\src\Gui\Placement.cpp(918): error C2955: 'std::vector': use of class template requires template argument list
2022-10-30T07:32:26.3323851Z %PREFIX%\Library\include\boost/detail/container_fwd.hpp(135): note: see declaration of 'std::vector'
2022-10-30T07:32:26.3394161Z %SRC_DIR%\src\Gui\Placement.cpp(919): error C2955: 'std::vector': use of class template requires template argument list
2022-10-30T07:32:31.5820966Z %PREFIX%\Library\include\boost/detail/container_fwd.hpp(135): note: see declaration of 'std::vector'
2022-10-30T07:32:31.5822616Z %SRC_DIR%\src\Gui\Placement.cpp(919): error C2511: 'void Gui::Dialog::TaskPlacement::setSelection(const std::vector &)': overloaded member function not found in 'Gui::Dialog::TaskPlacement'

wmayer

wmayer any ideas? Is there a header missing in Placement.cpp?

You may have to add “Gui::” to the SelectionObject. Check if 356794a646 fixes it.

thanks that fixed this issue

again some similar issues occurred:

%SRC_DIR%\src\Gui\DlgKeyboardImp.cpp(285): error C2061: syntax error: identifier 'AccelLineEdit'
%SRC_DIR%\src\Gui\DlgKeyboardImp.cpp(287): error C2511: 'boost::signals2::connection Gui::Dialog::DlgCustomKeyboardImp::initCommandWidgets(QTreeWidget *,QTreeWidgetItem *,QComboBox *,QLineEdit *,QTreeWidget *,QAbstractButton *,QAbstractButton *)': overloaded member function not found in 'Gui::Dialog::DlgCustomKeyboardImp'
d:\bld\freecad_1668320869292\work\src\gui\DlgKeyboardImp.h(53): note: see declaration of 'Gui::Dialog::DlgCustomKeyboardImp'
%SRC_DIR%\src\Gui\DlgKeyboardImp.cpp(296): error C2065: 'currentShortcut': undeclared identifier
%SRC_DIR%\src\Gui\DlgKeyboardImp.cpp(297): error C2065: 'currentShortcut': undeclared identifier
%SRC_DIR%\src\Gui\DlgKeyboardImp.cpp(301): error C2065: 'editShortcut': undeclared identifier
%SRC_DIR%\src\Gui\DlgKeyboardImp.cpp(308): error C2065: 'editShortcut': undeclared identifier
%SRC_DIR%\src\Gui\DlgKeyboardImp.cpp(308): error C2065: 'currentShortcut': undeclared identifier
%SRC_DIR%\src\Gui\DlgKeyboardImp.cpp(316): error C2061: syntax error: identifier 'AccelLineEdit'
%SRC_DIR%\src\Gui\DlgKeyboardImp.cpp(318): error C2511: 'void Gui::Dialog::DlgCustomKeyboardImp::populatePriorityList(QTreeWidget *)': overloaded member function not found in 'Gui::Dialog::DlgCustomKeyboardImp'
d:\bld\freecad_1668320869292\work\src\gui\DlgKeyboardImp.h(53): note: see declaration of 'Gui::Dialog::DlgCustomKeyboardImp'
%SRC_DIR%\src\Gui\DlgKeyboardImp.cpp(325): error C2065: 'editor': undeclared identifier
%SRC_DIR%\src\Gui\DlgKeyboardImp.cpp(326): error C2065: 'editor': undeclared identifier
%SRC_DIR%\src\Gui\DlgKeyboardImp.cpp(327): error C2065: 'curShortcut': undeclared identifier
%SRC_DIR%\src\Gui\DlgKeyboardImp.cpp(328): error C2065: 'curShortcut': undeclared identifier

wmayer and realthunder made recent changes to that file https://github.com/FreeCAD/FreeCAD/commits/master/src/Gui/DlgKeyboardImp.cpp

we really need windows CI on conda and libpack

again some similar issues occurred:

I don’t know why it complains about AccelLineEdit. Does it work to replace AccelLineEdit with Gui::AccelLineEdit in DlgKeyboardImp.cpp and .h?

Try 955eeb4775

thanks, I haven’t seen your answer, but the ci is working again.

Is there a problem with Windows compiling again? I am asking because there have been no Windows binaries for a while in the weekly-builds bundle. Or are the Conda Windows weekly binaries deprecated nowadays, like the Libpack version was?


https://github.com/FreeCAD/FreeCAD-Bundle/releases/tag/weekly-builds


EDIT: Screenshot of weekly-bundles page
weekly-bundles.png

the problem is not with the compilation but with uploading the bundles, I found the problem and submitted a fix already so it shouldn’t be too long before things go back to normal: https://forum.freecadweb.org/viewtopic.php?p=654445#p654445

Ok, great, thank you very much! :smiley: