Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions: Enable conda-forge CI on Window #532

Merged
merged 3 commits into from
Dec 22, 2020

Conversation

traversaro
Copy link
Member

@traversaro traversaro commented Nov 23, 2020

Similar to #484 but for Windows. The lack of direct Visual Studio 2019 support (see conda-forge/vc-feedstock#20) has been addressed by explicitly using the Visual Studio 16 2019 generator.

@traversaro
Copy link
Member Author

Errors:

2020-11-23T23:13:54.8962138Z   D:\a\robotology-superbuild\robotology-superbuild\robotology\ICUB\src\modules\templatePFTracker\src\particleFilter.cpp(136): message : see reference to function template instantiation 'cv::Mat yarp::cv::toCvMat<yarp::sig::PixelRgb>(yarp::sig::ImageOf<yarp::sig::PixelRgb> &)' being compiled [D:\a\robotology-superbuild\robotology-superbuild\build\robotology\ICUB\src\modules\templatePFTracker\templatePFTracker.vcxproj]
2020-11-23T23:13:54.9966899Z     Generating Code...
2020-11-23T23:13:55.8632599Z particleFilter.obj : error LNK2019: unresolved external symbol gsl_rng_mt19937 referenced in function "public: __cdecl PARTICLEThread::PARTICLEThread(void)" (??0PARTICLEThread@@QEAA@XZ) [D:\a\robotology-superbuild\robotology-superbuild\build\robotology\ICUB\src\modules\templatePFTracker\templatePFTracker.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\ICUB.vcxproj]
2020-11-23T23:13:55.8897255Z D:\a\robotology-superbuild\robotology-superbuild\build\robotology\ICUB\bin\Release\templatePFTracker.exe : fatal error LNK1120: 1 unresolved externals [D:\a\robotology-superbuild\robotology-superbuild\build\robotology\ICUB\src\modules\templatePFTracker\templatePFTracker.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\ICUB.vcxproj]

Missing gsl_rng_mt19937, possibly a bug in https://github.com/conda-forge/gsl-feedstock ?

2020-11-23T23:17:49.0789711Z     Auto build dll exports
2020-11-23T23:17:49.4500379Z LINK : fatal error LNK1104: cannot open file 'boost_date_time.lib' [D:\a\robotology-superbuild\robotology-superbuild\build\robotology\blocktestcore\src\blocktestcore\blocktestcore.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\blocktestcore.vcxproj]
2020-11-23T23:17:49.5074524Z C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238,5): error MSB8066: Custom build for 'D:\a\robotology-superbuild\robotology-superbuild\build\CMakeFiles\404f555e8a12e53cef30d21ca3d2506c\blocktestcore-mkdir.rule;D:\a\robotology-superbuild\robotology-superbuild\build\CMakeFiles\404f555e8a12e53cef30d21ca3d2506c\blocktestcore-download.rule;D:\a\robotology-superbuild\robotology-superbuild\build\CMakeFiles\404f555e8a12e53cef30d21ca3d2506c\blocktestcore-update.rule;D:\a\robotology-superbuild\robotology-superbuild\build\CMakeFiles\404f555e8a12e53cef30d21ca3d2506c\blocktestcore-patch.rule;D:\a\robotology-superbuild\robotology-superbuild\build\CMakeFiles\404f555e8a12e53cef30d21ca3d2506c\blocktestcore-configure.rule;D:\a\robotology-superbuild\robotology-superbuild\build\CMakeFiles\404f555e8a12e53cef30d21ca3d2506c\blocktestcore-build.rule;D:\a\robotology-superbuild\robotology-superbuild\build\CMakeFiles\404f555e8a12e53cef30d21ca3d2506c\blocktestcore-install.rule;D:\a\robotology-superbuild\robotology-superbuild\build\CMakeFiles\4275c776d303b7150b3a535f28dff29e\blocktestcore-complete.rule;D:\a\robotology-superbuild\robotology-superbuild\build\CMakeFiles\d0996b97d72583c2ba390d2748a54d8f\blocktestcore.rule' exited with code 1. [D:\a\robotology-superbuild\robotology-superbuild\build\blocktestcore.vcxproj]

Missing library in boost-cpp? CMake error in blocktest?

2020-11-23T23:18:00.4060904Z D:\a\robotology-superbuild\robotology-superbuild\robotology\event-driven\lib\include\event-driven/vtsHelper.h(171,37): error C2065: 'M_PI': undeclared identifier [D:\a\robotology-superbuild\robotology-superbuild\build\robotology\event-driven\lib\event-driven.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\event-driven.vcxproj]
2020-11-23T23:18:00.4064882Z D:\a\robotology-superbuild\robotology-superbuild\robotology\event-driven\lib\include\event-driven/vtsHelper.h(173,39): error C2065: 'M_PI': undeclared identifier [D:\a\robotology-superbuild\robotology-superbuild\build\robotology\event-driven\lib\event-driven.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\event-driven.vcxproj]
2020-11-23T23:18:00.4104079Z D:\a\robotology-superbuild\robotology-superbuild\robotology\event-driven\lib\src\vtsHelper.cpp(23,10): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [D:\a\robotology-superbuild\robotology-superbuild\build\robotology\event-driven\lib\event-driven.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\event-driven.vcxproj]

This is easy, ROBOTOLOGY_USES_EVENT_DRIVEN does not support Windows and should be disabled.

@traversaro
Copy link
Member Author

Missing gsl_rng_mt19937, possibly a bug in https://github.com/conda-forge/gsl-feedstock ?

This should be fixed by conda-forge/gsl-feedstock#53 .

Missing library in boost-cpp? CMake error in blocktest?

This should be fixed by robotology/blocktest#44 .

@traversaro
Copy link
Member Author

There was a new problem emerged recently: conda-forge/freeglut-feedstock#26 .

@traversaro
Copy link
Member Author

As conda-forge/gsl-feedstock#53 was merged and conda-forge/freeglut-feedstock#26 was workaround by explicitly installing freeglut 3.0.0 on Windows, the PR should now ready.

@traversaro
Copy link
Member Author

The build is now failing for a regression that I introduced myself in Gazebo. It should be fixed by conda-forge/gazebo-feedstock#43 and gazebosim/gazebo-classic#2906 .

@traversaro
Copy link
Member Author

The build is still failing for:

2020-12-13T10:43:02.0857373Z particleFilter.obj : error LNK2019: unresolved external symbol gsl_rng_mt19937 referenced in function "public: __cdecl PARTICLEThread::PARTICLEThread(void)" (??0PARTICLEThread@@QEAA@XZ) [D:\a\robotology-superbuild\robotology-superbuild\build\robotology\ICUB\src\modules\templatePFTracker\templatePFTracker.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\ICUB.vcxproj]
2020-12-13T10:43:02.1327400Z D:\a\robotology-superbuild\robotology-superbuild\build\robotology\ICUB\bin\Release\templatePFTracker.exe : fatal error LNK1120: 1 unresolved externals [D:\a\robotology-superbuild\robotology-superbuild\build\robotology\ICUB\src\modules\templatePFTracker\templatePFTracker.vcxproj] [D:\a\robotology-superbuild\robotology-superbuild\build\ICUB.vcxproj]

Probably something was wrong in conda-forge/gsl-feedstock#53 .

@traversaro
Copy link
Member Author

I added a local workaround while we wait for conda-forge/gsl-feedstock#53 to be actually fixed. Thanks to that, the PR is finally working.

@traversaro
Copy link
Member Author

Failures are related to the Homebrew problems that were fixed in #566, I think we can merge.

@traversaro traversaro merged commit cc921b5 into master Dec 22, 2020
@traversaro traversaro deleted the conda-enable-windows-1 branch December 22, 2020 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants