Conan Recipe: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
First step is to figure out which GR dependencies are already in conan-center and which aren't
conanfile.py:


* '''libboost-all-dev''' - boost/1.65.1@conan/stable
from conans import ConanFile, CMake
* '''libgmp-dev''' - gmp/6.1.2
from conans.tools import os_info, SystemPackageTool
* '''doxygen''' - doxygen/1.8.18
* '''libfftw3-dev''' - fftw/3.3.8
class PocoTimerConan(ConanFile):
* '''libsdl1.2-dev''' - libsdl2 has a recipe, but we might not need this anyway
    settings = "os", "compiler", "build_type", "arch"
* '''libgsl-dev''' - only needed for gr-wavelet which we could disable
    requires = ["boost/1.73.0",
* '''libqwt-qt5-dev''' - check out https://github.com/kenfred/conan-qwt not sure if it will work
                "gmp/6.1.2",
* '''libqt5opengl5-dev''' - no idea if this is included in some other qt5 recipe
                "fftw/3.3.8",
* '''liblog4cpp5-dev''' - log4cplus/2.0.4
                "zmq/4.2.5@bincrafters/stable",
* '''libzmq3-dev''' - zmq/4.2.5@bincrafters/stable
                "doxygen/1.8.17",
* '''gir1.2-gtk-3.0''' - (is this needed?)
                "swig/4.0.1",
                "log4cplus/2.0.4",
                "qt/5.15.0@bincrafters/stable",
                "xorg/system"] # had to add this, conan yelled at me for not having it
    generators = "cmake"#, "gcc", "txt"





Revision as of 04:56, 27 July 2020

conanfile.py:

from conans import ConanFile, CMake
from conans.tools import os_info, SystemPackageTool

class PocoTimerConan(ConanFile):
   settings = "os", "compiler", "build_type", "arch"
   requires = ["boost/1.73.0",
               "gmp/6.1.2", 
               "fftw/3.3.8",
               "zmq/4.2.5@bincrafters/stable",
               "doxygen/1.8.17",
               "swig/4.0.1",
               "log4cplus/2.0.4",
               "qt/5.15.0@bincrafters/stable",
               "xorg/system"] # had to add this, conan yelled at me for not having it
   generators = "cmake"#, "gcc", "txt"


Stuff I had to do to get this to work:

The build process is the same except you do

  1. conan install .. (which installs the dependencies and sets up cmake)
  2. cmake ..
  3. make
  4. make install

When the "conan install .." command runs, settings in ~/.conan/profiles/default file are applied, which might get fishy. you can also change stuff via cmd args "conan config install" is designed to share these settings/profiles with others

generate a pretty graph of dependency tree with:

conan info .. --graph=file.html

Search for recipes in conan-center with:

conan search "*xyz*" --remote=conan-center