Comments (5)
@ensisoft
There is some very sparse documentation in the readme
file. But in principle do it like this:
- Download the scripts CMake scripts from this repository.
- Download the source for the dependencies you would like to use from the locations specified in the
readme
file. - Start the CMake GUI and select the directory with the scripts as your source directory. Use any desired output directory as binary directory.
- Press Configure inside the CMake GUI.
- Fill in the location of the downloaded sources of your desired dependencies and press "Configure" again. Repeat until there is no more errors and warnings in CMake.
- Press Generate inside the CMake GUI. This will generate solution file inside your binary directory.
- Open the solution file in your IDE.
- Build the
ALL_BUILD
project for both debug and release. - Build the
INSTALL
project for both debug and release.
In your binary directory there will now be a folder named 3rdParty
with a sub-folder named after your target platform (i.e. v140-x86
for Visual Studio 2015 32-bit). Inside this folder there should be all your headers and libraries.
from osg-3rdparty-cmake.
Thanks for the quick reply,
is there an alternative way for those how'd prefer to script this on the command line?
from osg-3rdparty-cmake.
CMake can be run from the commandline, although each variable has to be set via the form:
-D <var>:<type>=<value>
For example:
-DZLIB_SOURCE_DIR:PATH=D:/zlib-1.2.8
So all variables you specified in the CMake GUI must be supplied this way.
Building the solution can then be achieved via MSBuild. This is something I never tried myself, but a command line reference to MSBuild can be found here:
https://msdn.microsoft.com/en-us/library/ms164311.aspx
from osg-3rdparty-cmake.
Oh, right they come through the -D flags.
Thanks again for quick replies!
from osg-3rdparty-cmake.
Thanks for the replies.
from osg-3rdparty-cmake.
Related Issues (20)
- libCurl support HOT 1
- Visual Studio 2015 compiled failed in libtiff 4.0.6 HOT 5
- Freetype include path have changed
- FreeType builds have serious linker errors
- giflib library name should be giflib not libgif HOT 1
- Missing some .c files in giflib CMake HOT 1
- Undefined label names in ZLIB when built with ZLIB_USE_AMD64 HOT 2
- How to open project in VS2015 HOT 3
- Can this repository be used in Ubuntu 14.04? HOT 1
- Having a weird issue HOT 5
- Add support for Visual Studio 2017 Toolset
- How to build a glut dynamic library HOT 2
- Example osgviewerGLUT cannot link correctly to static library
- CMakeLists not working for latest minizip HOT 2
- Need for new way to store AppVeyor builds HOT 5
- Add support for FontConfig
- Can't Download Prebuilt versions HOT 1
- Appveyor binaries expired HOT 2
- zlib cmake error 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 osg-3rdparty-cmake.