Mahlet-Inc / hobbits-cookiecutters

cookiecutter templates for projects using hobbits
0 stars 0 forks source link

Operator Cookiecutter Cmake Error #1

Open jakecrowley opened 2 years ago

jakecrowley commented 2 years ago

While attempting to build the cookiecutter template for an operator plugin, I got an error while running cmake ... The previous conan install .. --build=missing command seemed to finish successfully.

-- The C compiler identification is GNU 11.3.1
-- The CXX compiler identification is GNU 11.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib64/ccache/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Conan: Adjusting output directories
-- Conan: Using cmake global configuration
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
-- Current conanbuildinfo.cmake directory: /home/users/jake/Documents/TestOperator/build
-- Conan: Compiler GCC>=5, checking major version 11
-- Conan: Checking correct version: 11
CMake Error at CMakeLists.txt:15 (include):
  include could not find requested file:

    conan_qt_executables_variables
jakecrowley commented 2 years ago

Simply commenting out that line seems to allow it to build fine.. I will leave this issue open for now in case anyone else has anything to add.

jakecrowley commented 2 years ago

Nevermind, plugin builds fine now, but i get File '.. plugin file path .. ' could not be loaded as a plugin - skipping... when I try to load hobbits now.

jakecrowley commented 2 years ago

I was able to get it to run by manually cloning the hobbits github repo and including the hobbits-core and hobbits-widgets src directories in the CMakeLists.txt file. My guess is the 'hobbits/unstable' that conan is using is outdated.