conan: I am not able to install packages(Boost) on ubuntu 18.04 .

conanfile.txt:

[requires]
Poco/1.7.8p3@pocoproject/stable
Boost/1.67.0@lasote/stable

[generators]
cmake

[options]
Boost:shared=False
Poco:shared=False

Run command : conan install …

Output :

Boost/1.67.0@lasote/stable: Not found in local cache, looking in remotes...
Boost/1.67.0@lasote/stable: Trying with 'conan-center'...
ERROR: Failed requirement 'Boost/1.67.0@lasote/stable' from 'PROJECT'
ERROR: Unable to find 'Boost/1.67.0@lasote/stable' in remotes

Conan remote list :

conan-center: https://conan.bintray.com [Verify SSL: True]

What am I doing wrong?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (1 by maintainers)

Most upvoted comments

commands :

build-libraries :    `conan install .. -s compiler=gcc -s compiler.version=7.3 -s compiler.libcxx=libstdc++11 --build=missing`
compile and run : `cmake .. ; make`

main.cpp :

#include <Poco/MD5Engine.h>
#include <boost/regex.hpp>
#include <string>
#include <iostream>

using namespace Poco;
using namespace std;

int main(){
    MD5Engine md5;
    md5.update("Hello World");
    string md5string = DigestEngine::digestToHex(md5.digest());
    cout<< "MD5= " << md5string << "\n";
    int n = 5;
    while(n--) {
        md5.update("hola");
        cout << "MD5= " << DigestEngine::digestToHex(md5.digest()) << "\n";
    }
    string s = "correct@email.com", s2="bademail";
    boost::regex expr{"\\b[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}\\b"};
    cout << boolalpha << boost::regex_match(s, expr) << '\n';
    cout << boolalpha << boost::regex_match(s2, expr) << '\n';

}

Conan version : 1.6.1

~/.conan/profiles/default :

[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=7
compiler.libcxx=libstdc++
build_type=Release
[options]
[build_requires]
[env]

CMakeLists.txt :

cmake_minimum_required(VERSION 2.8)
project(BoostPoco)

add_executable(BoostPoco demo.cpp)
find_package(Boost)
find_package(Poco)

include_directories($(Boost_INCLUDE_DIRS) $(Poco_INCLUDE_DIRS))
if(Boost_FOUND)
    target_link_libraries(BoostPoco $(Boost_LIBRARIES))
endif()

if(Poco_FOUND)
     target_link_libraries(BoostPoco $(Poco_LIBRARIES))
endif()