NTNU-IHB / FMI4cpp

FMI 2.0 implementation written in modern C++.
MIT License
93 stars 34 forks source link

Installation issue #101

Closed GarronFish closed 3 years ago

GarronFish commented 3 years ago

When running running conan to install FMI4cpp/testing on Windows I get the following error: ERROR: Conflict in libzip/1.5.2@bincrafters/stable: 'libzip/1.5.2@bincrafters/stable' requires 'zlib/1.2.11' while 'boost/1.66.0@conan/stable' requires 'zlib/1.2.11@conan/stable'.

This was done in FMI4cpp-conan-master by running a conan console and then running conan create . FMI4cpp/testing

markaren commented 3 years ago

I'll have a look today. The conan repo might be a little out of date.

markaren commented 3 years ago

FMI4cpp-conan should be fixed now. Targets 0.8.0-ALPHA, which I just made a release of.

Edit: Don't mind the failed circleci status. I disabled that instance. Need to change to GitHub actions. Tested fine locally.

GarronFish commented 3 years ago

Thanks,

Now I get: ERROR: Failed requirement 'openssl/1.0.2u' from 'libzip/1.5.2@bincrafters/stable' ERROR: Requested 'openssl/1.0.2u' but found case incompatible 'OpenSSL' Case insensitive filesystem can't manage this

markaren commented 3 years ago

That one is related to Conan itself. You need to clear the conan cache and re-run.

GarronFish commented 3 years ago

Cleared cache by changing environmental variable CONAN_USER_HOME Now get: ERROR: Missing binary: boost/1.66.0@conan/stable:e6323f6266863b5b9bc7a29b1cde8113bdde591f

Thanks for the help

GarronFish commented 3 years ago

I tried this: conan create . FMI4cpp/testing --build=boost --build=fmi4cpp and then got this error: ERROR: boost/1.66.0@conan/stable: Error in build() method, line 89 b2_exe = self.bootstrap() while calling 'bootstrap', line 293 self.run(cmd) ConanException: Error 1 while executing bootstrap.bat vc16

markaren commented 3 years ago

I'm not so sure changing home dir was the best solution. Just delete the cache folder. This is an issue common to all conan recepies as some libraries changed their name. It should not be necessary to build boost manually.

GarronFish commented 3 years ago

Sorry did not update alpha going to try that

markaren commented 3 years ago

Are you using VS 2019? As far as I can remember, there are no pre-built boost (for this version) for that version of VS. So, yes, you'd need to tell conan to build it. Another solution would be to upgrade the conan dependency. I have not done that, becouse they changed where artifacts are stored in later versions, so I can't just bump the verrsion.

markaren commented 3 years ago

I'll have a go at upgrading boost.

markaren commented 3 years ago

Try now

GarronFish commented 3 years ago

Sorry going to update FMI4cpp-conan-master Alpha and try again

GarronFish commented 3 years ago

Its all working! Thanks I owe you some beers! I tested example and this appears to work as expected.