Jump to content
Sign in to follow this  

Using Conan to get windows dependencies

Recommended Posts

@Itms recently asked me to try Conan on IRC. Conan is a C++ decentralized package manager that is supposed to make life easier for developers. 


So today I tried to make it work with the game and succeeded. It's still missing some libraries, but they are hard to build as they require cygwin, which takes a long time to install. I had no luck with wxwidgets either, the build just fails.

You need Cmake and python and a working visual studio 2015

In cmd cd to you libraries/win32 directory then;

pip install virtualenv
python -m virtualenv 
pip install conan


Now let's add some repositories to get all our dependencies

For libcurl, libpng,openal,enet, sdl2,ogg,vorbis

conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan

For miniupnpc

conan remote add rhard https://api.bintray.com/conan/rhard/conan

For boost, zlib

conan remote add conan-community https://api.bintray.com/conan/conan-community/conan

 And another one just in case

conan remote add conan-transit https://api.bintray.com/conan/conan/conan-transit


If you want to find another package '*' are wildcards

conan search *boost* --remote=conan-center


Then all the magic happens in the python file, that's where you define the requirements and the build flags for the libraries

Currently not enabled, icu, iconv, wxwidgets.

Currently missing gltext (OpenGl)

Then finally run

load-libs.cmd > output.log

This will build the libraries one by one after downloading them, then place all the files in the correct folders.

Don't forget to apply the diff on premake :)




conan-premake.diff conanfile.py load-libs.cmd

0 A.D.Using Conan.docx

  • Like 3

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...