OculusLinkLinux icon indicating copy to clipboard operation
OculusLinkLinux copied to clipboard

Can't compile on latest version of Conan

Open MilkJug1 opened this issue 2 years ago • 4 comments

Describe the bug On the newest version of Conan, version 2, Conan will refuse to build because of its depreciated support for the Makefile build system. Thus making the Install.md File obsolete.

Also, the OpenVR Conan recipe is also broken, due to all the new changes in Conan v.2. This is more of an issue with the main person behind the recipe to fix,

To Reproduce Nuff said already, just try to build the project with a newer version of Conan

Screenshots image

Please Read

Because of this, do not follow the instructions in the Install.md file, as they are currently outdated now, and will cause issues when trying to build. I will make note of this in the Install.md file here soon.

Additional context As stated by their docs, support for the Makefile generator will be gone in one of the newer versions of Conan, meaning that we have to switch build systems. This can be averted by using an older version of Conan, but I'm not sure how that will work later in the future. So at the current moment, I am currently going to be working on a separate branch with a new build system that might work, Meson is already considered as one of them.

Currently:

  • [ ] Fix and switch to a new build system, Meson is considered to be one of these at the moment, but I'm not sure yet.
  • [ ] Restructure file structure to accommodate for new Conan version.

Note conan v2 is doing some weird freaky stuff when installing the deps, image as shown here in an example CMake project that I was using to test out the new Conan features, This is going to be annoying in the future by the way. At the current moment I may not stick with conan as a package manager for the project, something like vcpkg is being considered. As long as it has support for the meson build system, then I will consider it.

  • [ ] If the V2 of Conan proves to be too troublesome, switch to a new package manager.

MilkJug1 avatar Mar 27 '23 23:03 MilkJug1

Upon further research, Makefile support might actually be brought back, based on this issue that talks about makefiles, as not only have there been forks trying to reimplement it back, they are still trying to figure out how to bring it back with the newest revision. So maybe its coming back?

There is also a current pull request that is still being worked on that has the current progress of the Makefile generator, maybe if it goes through fully, we won't have to switch. Follow it here, Conan 2.0 Makefile Generator Progress

MilkJug1 avatar Jun 24 '23 19:06 MilkJug1

@MilkJug1 For OpenVR recipe you should open an issue to ConanCenterIndex, asking to update it to be supported by Conan v2 (https://github.com/conan-io/conan-center-index/issues/). There is huge effort right now in CCI to update recipes there.

About the Make generator, there is a on going PR with a new support here: https://github.com/conan-io/conan/pull/14133, but the legacy make generator will not come back due its limitations and effort needed for maintenance.

uilianries avatar Jun 30 '23 08:06 uilianries

@uilianries I will make a issue in CCI for the OpenVR recipe soon, so thank you for telling me that. Also thank you for letting me know about the pr for conan that is going to be adding the MakeDeps generator.

MilkJug1 avatar Jun 30 '23 15:06 MilkJug1

I might be doing something wrong or something is weird about my computer but whenever I try to build it gives me an error. It gives me this graph.

Call me dumb but If someone can help please do.

Dustinasaurus avatar Aug 31 '24 18:08 Dustinasaurus