-
Notifications
You must be signed in to change notification settings - Fork 132
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
Fixes for compiling on Windows #41
Fixes for compiling on Windows #41
Conversation
Should |
@davetcoleman as far as I understand, |
i believe you're right, yes |
Yes, urdfdom is consider as a stand-alone library and it is used outside ROS, in fact it is an official ubuntu package. |
This looks like a cleaner solution. It would be really nice if TinyXML installed it's own cmake but until then copying the Find rule will be the cleanest solution. |
Seems like Tinyxml authors designed it to be embedded into other projects, in its own words:
So I won't expect any upstream movement into the line of having a cmake module. In downstream, the things are not easy too, since depending on the distribution, they are shipping custom pkgconfig files which brings some cross distribution discussions. So yes, +1 to Silvio approach. |
@j-rivero I was discussing with our local CMake expert (cc @drdanz ) and he was suggesting that perhaps distribution mantainers could be interested in having a CMake-specific patch. |
@traversaro I think that would be a good idea, especially if they're already adding the pkg-config files. The CMake infrastructure is a parallel usage. Of course this will take a while and so we'll have to deal with it in the mean time and for other platforms if it's not being accepted upstream. |
@traversaro if we speak about distribution level, I agree, I see no reason for providing a .pc file but no a .cmake file. In this cases is totally up to the maintainer. However, it will make things worse at cross-distributions level (see the comments of the Gentoo maintainer in my previous link) with probably a good bunch of problems for not keeping in sync all the tinyxml.cmake floating around. Another option could be trying to send it to cmake developers as a module so we get it in cmake-data like we have FindPNG, etc. |
@traversaro +1 |
…dows_fixes_pr Conflicts: CMakeLists.txt
In Windows find_package(package) finds the PackageConfig.cmake following a set of path patterns [1]: * <prefix>/ * <prefix>/(cmake|CMake)/ * <prefix>/<name>*/ * <prefix>/<name>*/(cmake|CMake)/ This commit modifies the CMake config installation to install them in CMAKE_INSTALL_PREFIX/CMake on Windows (see for reference [2]). [1] : https://cmake.org/cmake/help/v3.0/command/find_package.html [2] : https://github.com/robotology/ycm/blob/master/modules/InstallBasicPackageFiles.cmake#L175
Merged with current master. |
I also had several other Windows-related fixes that I did an year ago, but I stopped submitting PRs when I saw that upstream was not interested in Windows related patches, and I then simply forked the repo. [1] If now there is interest for Windows-related fix I would be apply to port some of them upstream . [1] : https://github.com/robotology-dependencies/urdfdom/commits/master |
+1 |
…s_pr Fixes for compiling on Windows
The fixes are the following (tested on Visual Studio 12 on Windows 7):
configure_file
.There is still another issue preventing to use the library in Windows, but I opened a separated issue ( #42 ) because is involve a more invasive change to the library structure.