Open SamuelMarks opened 3 years ago
The bincrafters recipe is not under our control, so there is nothing we can do regarding it. The wxwidget is already listed in https://github.com/conan-io/conan-center-index/issues/621, so it will be added eventually. In any case, this is not a Conan issue, but a ConanCenter one, so moving the issue there.
Hi, @SamuelMarks . This should be considered a library request, the recipe is not currently in this repository. I would encourage you to submit a pull-request with this recipe.
Anyway, even if the binary is not available for wxwidgets/3.1.4@bincrafters/stable
, you know you can build it from sources, right?
conan install .. --build missing
Hmm, tried that and CONAN_LIBS
is always empty:
cmake_minimum_required(VERSION 3.1.2)
cmake_policy(SET CMP0048 NEW)
project(pp VERSION 0.0.0 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 14)
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan")
file(DOWNLOAD "https://raw.githubusercontent.com/conan-io/cmake-conan/master/conan.cmake"
"${CMAKE_BINARY_DIR}/conan.cmake")
endif()
include("${CMAKE_BINARY_DIR}/conan.cmake")
conan_cmake_run(REQUIRE wxwidgets/3.1.4@bincrafters/stable
BASIC_SETUP
BUILD missing)
file(DOWNLOAD https://raw.githubusercontent.com/wxWidgets/wxWidgets/c034a78/samples/widgets/button.cpp src/main.cpp
EXPECTED_HASH SHA256=c94699427f8b4a90c7ae3e075210bc44ae80098b5303a564f11d3991c620328f)
file(DOWNLOAD https://raw.githubusercontent.com/wxWidgets/wxWidgets/c034a78/samples/widgets/widgets.h src/widgets.h
EXPECTED_HASH SHA256=6ccef93318db87830fd400a8d217f08030358b0494bc594bf533bcf75da9cf2d)
file(DOWNLOAD https://raw.githubusercontent.com/wxWidgets/wxWidgets/WX_3_0_BRANCH/samples/widgets/icons/button.xpm src/icons/button.xpm
EXPECTED_HASH SHA256=c7f7bf9a4b678376a20af95adc213a467450a71040710dacc168fa6885a1ad0f)
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) # Added these two when error
conan_basic_setup(TARGETS) # occurred; same error still occurs.
# Also tried without `TARGETS`
set(src "${CMAKE_CURRENT_BINARY_DIR}/src/main.cpp")
message(CONAN_LIBS = "${CONAN_LIBS}")
add_executable(${PROJECT_NAME} "${src}")
target_include_directories(${PROJECT_NAME} PRIVATE "${CONAN_LIBS}")
target_link_libraries(${PROJECT_NAME} PRIVATE "${CONAN_LIBS}")
So naturally I get:
src/main.cpp:20:10: fatal error: 'wx/wxprec.h' file not found
#include "wx/wxprec.h"
^~~~~~~~~~~~~
1 error generated.
Would it be a typo in conan_cmake_run
argument : REQUIRE
->REQUIRES
?
Thanks that solved it - Another reason not to code at ~2AM
(got to free some space for the build to finish working, will confirm it all works in the morning)
As a general note, please report problems for Bincrafters recipes here: https://github.com/bincrafters/community
@Croydon Ok in future I'll post there.
@ericLemanissier It almost worked:
-- Installing: .conan/data/wxwidgets/3.1.4/bincrafters/stable/package/3d47f4af00e2be7a61abf71a89f598dd98d88cba/bin/wxrc
wxwidgets/3.1.4@bincrafters/stable package(): Packaged 2 '.1' files: wxrc-3.1, osx_cocoa-unicode-static-3.1
wxwidgets/3.1.4@bincrafters/stable package(): Packaged 2 files: wxrc, wx-config
wxwidgets/3.1.4@bincrafters/stable package(): Packaged 1444 '.h' files
wxwidgets/3.1.4@bincrafters/stable package(): Packaged 3 '.cpp' files: arrimpl.cpp, listimpl.cpp, thrimpl.cpp
wxwidgets/3.1.4@bincrafters/stable package(): Packaged 10 '.cur' files
wxwidgets/3.1.4@bincrafters/stable package(): Packaged 1 '.rc' file: wx.rc
wxwidgets/3.1.4@bincrafters/stable package(): Packaged 9 '.manifest' files
wxwidgets/3.1.4@bincrafters/stable package(): Packaged 2 '.bmp' files: colours.bmp, csquery.bmp
wxwidgets/3.1.4@bincrafters/stable package(): Packaged 12 '.ico' files
wxwidgets/3.1.4@bincrafters/stable package(): Packaged 1 '.xpm' file: image_placeholder24x24.xpm
wxwidgets/3.1.4@bincrafters/stable package(): Packaged 17 '.a' files
wxwidgets/3.1.4@bincrafters/stable: Package '3d47f4af00e2be7a61abf71a89f598dd98d88cba' created
wxwidgets/3.1.4@bincrafters/stable: Created package revision 96f6dcc3065afff992e5b6465b175ada
conanfile.txt: Generator cmake created conanbuildinfo.cmake
conanfile.txt: Generator txt created conanbuildinfo.txt
conanfile.txt: Generated conaninfo.txt
conanfile.txt: Generated graphinfo
-- Conan: Loading conanbuildinfo.cmake
-- Conan: Adjusting output directories
-- Conan: Using cmake global configuration
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
-- Current conanbuildinfo.cmake directory: temp_dir/wx/wx_conan/cmake-build-debug
-- Conan: Adjusting output directories
-- Conan: Using cmake global configuration
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
-- Current conanbuildinfo.cmake directory: temp_dir/wx/wx_conan/cmake-build-debug
CONAN_LIBS=wx_osx_cocoau_xrc-3.1;wx_osx_cocoau_webview-3.1;wx_osx_cocoau_stc-3.1;wxscintilla-3.1;wx_osx_cocoau_richtext-3.1;wx_osx_cocoau_ribbon-3.1;wx_osx_cocoau_qa-3.1;wx_osx_cocoau_propgrid-3.1;wx_osx_cocoau_html-3.1;wx_osx_cocoau_gl-3.1;wx_osx_cocoau_aui-3.1;wx_baseu_xml-3.1;wx_baseu_net-3.1;wx_osx_cocoau_adv-3.1;wx_osx_cocoau_core-3.1;wx_baseu-3.1;wxregexu-3.1;png16d;tiffxx;tiff;expat;z;jpeg;lzma;jbig;wx_osx_cocoau_xrc-3.1;wx_osx_cocoau_webview-3.1;wx_osx_cocoau_stc-3.1;wxscintilla-3.1;wx_osx_cocoau_richtext-3.1;wx_osx_cocoau_ribbon-3.1;wx_osx_cocoau_qa-3.1;wx_osx_cocoau_propgrid-3.1;wx_osx_cocoau_html-3.1;wx_osx_cocoau_gl-3.1;wx_osx_cocoau_aui-3.1;wx_baseu_xml-3.1;wx_baseu_net-3.1;wx_osx_cocoau_adv-3.1;wx_osx_cocoau_core-3.1;wx_baseu-3.1;wxregexu-3.1;png16d;tiffxx;tiff;expat;z;jpeg;lzma;jbig
-- Configuring done
CMake Error in CMakeLists.txt:
Found relative path while evaluating include directories of "pp":
"wx_osx_cocoau_webview-3.1"
CMake Error in CMakeLists.txt:
Found relative path while evaluating include directories of "pp":
"wx_osx_cocoau_webview-3.1"
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
(I can make a new issue for this if you want)
EDIT: Posted here https://github.com/bincrafters/community/issues/1385 - not closing this issue as this is requesting wxWidgets in the main conan center
Environment Details (include every applicable attribute)
Steps to reproduce (Include if Applicable)
conanfile.txt
Logs (Executed commands with output) (Include/Attach if Applicable)
(happy to use a different remote and/or different version of wxWidgets)