Comments (7)
I want use GL3 build osg, added a line of set(osg_OPENGL_PROFILE "GL3") to the x64-windows.cmake file. And then there's this problem
from vcpkg.
Duplicate of #33008
from vcpkg.
I reinstalled VS2022 and installed the latest MSVC 14.39.33519, but I still got an error,It seems that min\max and std:: min () and std:: max () are conflicts defined by Visual C ++. I don't know how to solve them
from vcpkg.
Some configuration seem to include windows.h
before or without defining NOMINMAX
.
from vcpkg.
I added -DNOMINMAX=ON
at vcpkg_cmake_configure(OPTIONS)
in vcpkg\ports\osg\portfile.cmake , like this
vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" OPTIONS ${FEATURE_OPTIONS} -DNOMINMAX=ON
And add add_definitions(-DNOMINMAX)
to vcpkg\buildtrees\osg\src\raph-3.6.5-c3f8c61ada.clean\CMakeLists.txt .
Not sure which one worked, but osg is installed!
from vcpkg.
I added
-DNOMINMAX=ON
atvcpkg_cmake_configure(OPTIONS)
in vcpkg\ports\osg\portfile.cmake , like thisvcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" OPTIONS ${FEATURE_OPTIONS} -DNOMINMAX=ON
And addadd_definitions(-DNOMINMAX)
to vcpkg\buildtrees\osg\src\raph-3.6.5-c3f8c61ada.clean\CMakeLists.txt . Not sure which one worked, but osg is installed!
I don't believe this is the fix. It must be passed to the compiler (preprocessor macro), not to cmake (option).
add_definitions
is the key.
from vcpkg.
In fact, I changed the portfile.cmake configuration to run vcpkg install osg,then add 'add_definitions(-DNOMINMAX)' to vcpkg\buildtrees\osg\src\raph-3.6.5-c3f8c61ada.clean\CMakeLists.txt .
Probably made it work by changing the CMakeLists before it started building, which I know is not a good idea, but haven't figured out a better way
from vcpkg.
Related Issues (20)
- [libiconv] Build error on x64-windows HOT 1
- [dlib] update to 19.24.4
- [New Port Request] <GmSSL>
- jluna: A modern Julia Wrapper for C++ (v1.0.0) HOT 1
- [liblzma] Build error on x64-windows HOT 1
- [libevent] Build error on x86-mingw-dynamic
- [bzip2] Build error on x64-windows HOT 2
- [exptrk] update to 2024-01-01 HOT 1
- [protobuf] pc files reference wrong library on windows HOT 1
- [7zip] Add missing Windows Header HOT 7
- [open62541] update to 1.4.0
- Use vcpkg in a Visual Studio project without user-wide integration HOT 2
- [7zip] update to <24.05>
- [llvm] Build error on x64-windows HOT 2
- [colmap] Build error on x64-windows HOT 1
- Installing specific version of a package on CLI HOT 3
- [colmap] Build error on x64-windows HOT 13
- [<port name>] build failurebootstrap-vcpkg.bat errors HOT 1
- Pinning specific Embree version, while using TBB, causes CMake Error HOT 1
- [ceres] update to 2.2.0 HOT 1
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 vcpkg.