Comments (8)
Hi, I just tried building the latest HEAD with MSVC 2019 and it builds fine.
To be precise, I used VS 2022 but setting it up to use MSVC 2019.
For some reason, my VS 2019 installation doesn't seem to work anymore (I get a BSOD). It's probably an issue with my installation and unrelated to Fruit.
I used this CMakeSettings.json:
{
"configurations": [
{
"name": "x64-Release MSVC 2019",
"generator": "Visual Studio 16 2019 Win64",
"configurationType": "Release",
"buildRoot": "${projectDir}\\out\\build\\${name}",
"cmakeCommandArgs": "-DFRUIT_USES_BOOST=False",
"buildCommandArgs": "",
"intelliSenseMode": "windows-msvc-x64"
}
]
}
Were you building from HEAD or from the last release?
If you used the last release, I recommend you try HEAD.
Can you provide some more details on how you built it, e.g. posting the CMakeSettings.json and any other configuration / commands that you used?
Then I can try to reproduce the issue using those instructions.
Thanks
from fruit.
In CMakeLists.txt
Before the project(FRUIT... line I added:
Visual Studio 2022
cmake_minimum_required(VERSION 3.21)
Visual Studio 2019
#cmake_minimum_required(VERSION 3.20)
The line after I added set(CMAKE_VERBOSE_MAKEFILE ON)
I seem to have a CMakePresetts.json rather than a CMakeSettings.json.
The setting for MSVC is:
"displayName": "Windows x64 Debug",
"description": "Target Windows with the Visual Studio development environment.",
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}"`
},
"vendor": { "microsoft.com/VisualStudioSettings/CMake/1.0": { "hostOS": [ "Windows" ] } }
I have been building fruit with Boost, and I cloned the repository via the Visual Studio Start Window on the 8th.
from fruit.
@poletti-marco Is there any more information you would like me to supply?
from fruit.
@poletti-marco hit the wrong button, still trying to get to the bottom of this
from fruit.
Hi @poletti-marco,
I've just spotted the releases page https://github.com/google/fruit/releases/tag/v3.6.0
Once I extracted the attached Zip File, and modified the CMakeLists.txt to target my current Visual Studio's. I was able to install the fruit library successfully.
I haven't yet attempted to build any of the samples with it because I haven't had enough time in the work day to get it done, however I did also manage to build the samples against the vcpkg, using "Project from existing code", to create the projects, and the vcpkg project integration, and through that I was able to combine and run the samples
from fruit.
from fruit.
I think we can probably close this issue, as it doesn't exist in the last released version of fruit-3.6.0, it only occurs when cloning the current state of the repository.
Or would you like it to stay open to log the fact there is a problem specific to MSVC in the repository as it stands?
from fruit.
from fruit.
Related Issues (20)
- Using multibinding HOT 1
- build with vcpkg for ARM64:Android is getting errors HOT 3
- Trying to compile with NDK R22 fails HOT 11
- [Docs] Possible outdated documentation HOT 1
- what should I do to use a string as an annotion of some bind? HOT 3
- VS2022 Just My Code for Fruit Library fails using CMAKE HOT 6
- Create a fruit::Component by iterating over a list of fruit::Components HOT 7
- Can fruit be used with C language? HOT 2
- Handling lifetimes HOT 6
- Providing non-injected arguments to DI Objects HOT 14
- Build fails with Visual Studio 2022 with C++20 HOT 8
- Fruit with QT HOT 4
- Factories with reference types broken in fruit 3.7.0
- Generic binding? HOT 2
- Defining Factory Functions for Objects with Multiple Constructors HOT 11
- Replace boost HOT 1
- Creating Collections of DI Objects HOT 3
- [Suggestion] ExtractFirstError meta function SHOULD be non-error safe HOT 2
- Can no longer build examples in VS2022 Preview built by Visual Studio, VS CMake builds OK HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fruit.