[fixed] conda: win compile error

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

[fixed] conda: win compile error

Post by looo »

there is currently a compilation error for conda / windows:

Code: Select all

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
Last edited by looo on Tue Nov 08, 2022 6:58 pm, edited 1 time in total.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda: win compile error

Post by looo »

@wmayer any ideas? Is there a header missing in Placement.cpp?
wmayer
Founder
Posts: 20242
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: conda: win compile error

Post by wmayer »

You may have to add "Gui::" to the SelectionObject. Check if git commit 356794a646 fixes it.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda: win compile error

Post by looo »

wmayer wrote: Tue Nov 01, 2022 9:58 pm You may have to add "Gui::" to the SelectionObject. Check if git commit 356794a646 fixes it.
thanks that fixed this issue
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: [fixed] conda: win compile error

Post by looo »

again some similar issues occurred:

Code: Select all

%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
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: [fixed] conda: win compile error

Post by adrianinsaval »

@wmayer and @realthunder made recent changes to that file https://github.com/FreeCAD/FreeCAD/comm ... ardImp.cpp

we really need windows CI on conda and libpack
wmayer
Founder
Posts: 20242
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: [fixed] conda: win compile error

Post by wmayer »

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?
wmayer
Founder
Posts: 20242
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: [fixed] conda: win compile error

Post by wmayer »

User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: [fixed] conda: win compile error

Post by looo »

thanks, I haven't seen your answer, but the ci is working again.
wmayer wrote: Wed Nov 16, 2022 10:26 pm Try git commit 955eeb4775
aapo
Posts: 615
Joined: Mon Oct 29, 2018 6:41 pm

Re: [fixed] conda: win compile error

Post by aapo »

looo wrote: Mon Nov 21, 2022 6:13 pm 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-Bund ... kly-builds


EDIT: Screenshot of weekly-bundles page
weekly-bundles.png
weekly-bundles.png (97.84 KiB) Viewed 4389 times
Post Reply