Git Product home page Git Product logo

Comments (12)

fpagliughi avatar fpagliughi commented on August 18, 2024 1

OK. No worries. It would have been nice to have, but these targets are starting to age anyway, and we have other ways to support them. The latest Ubuntu LTS appears to have CMake 3.5.1. I will try that out in a day or two.

from paho.mqtt.cpp.

fpagliughi avatar fpagliughi commented on August 18, 2024 1

That would be helpful, if it isn't too much trouble...

from paho.mqtt.cpp.

fpagliughi avatar fpagliughi commented on August 18, 2024 1

Awesome.

from paho.mqtt.cpp.

guilhermeferreira avatar guilhermeferreira commented on August 18, 2024

@fpagliughi I'll have to check. Return to you at the end of the day.

from paho.mqtt.cpp.

guilhermeferreira avatar guilhermeferreira commented on August 18, 2024

Problems with CMake 2.8.7:

  • Don't support the DIRECTORY directive of the get_filename_component command. This command is required to build file paths.
  • Don't support the LANGUAGES directive in the project command.
$ cmake --version
cmake version 2.8.7

$ cmake -DCMAKE_INSTALL_PREFIX=/tmp/paho-cpp \
-DPAHO_MQTT_C_PATH=/tmp/paho-c \
-DPAHO_BUILD_DOCUMENTATION=ON \
-DPAHO_BUILD_SAMPLES=ON \
-DPAHO_BUILD_STATIC=ON \
-DPAHO_WITH_SSL=ON ..
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_LANGUAGES_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_LANGUAGES_COMPILER
CMake Error: Could not find cmake module file:paho.mqtt.cpp/build_cmake/CMakeFiles/CMakeLANGUAGESCompiler.cmake
-- The CXX compiler identification is GNU
CMake Error: Could not find cmake module file:CMakeLANGUAGESInformation.cmake
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error: CMAKE_LANGUAGES_COMPILER not set, after EnableLanguage
-- checking for module 'openssl'
--   found openssl, version 1.0.1
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1..1")
CMake Error at src/samples/CMakeLists.txt:31 (get_filename_component):
  get_filename_component unknown component DIRECTORY


-- Found Doxygen: /usr/bin/doxygen 
-- Configuring incomplete, errors occurred!

from paho.mqtt.cpp.

guilhermeferreira avatar guilhermeferreira commented on August 18, 2024

CMake version 2.8.8 has the same problems as version 2.8.7:

$ cmake --version
cmake version 2.8.8

$ cmake -DCMAKE_INSTALL_PREFIX=/tmp/paho-cpp \
-DPAHO_MQTT_C_PATH=/tmp/paho-c \
-DPAHO_BUILD_DOCUMENTATION=ON \
-DPAHO_BUILD_SAMPLES=ON \
-DPAHO_BUILD_STATIC=ON \
-DPAHO_WITH_SSL=ON ..
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_LANGUAGES_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_LANGUAGES_COMPILER
CMake Error: Could not find cmake module file:paho.mqtt.cpp/build_cmake/CMakeFiles/CMakeLANGUAGESCompiler.cmake
-- The CXX compiler identification is GNU 4.6.3
CMake Error: Could not find cmake module file:CMakeLANGUAGESInformation.cmake
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error: CMAKE_LANGUAGES_COMPILER not set, after EnableLanguage
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.1") 
CMake Error at src/samples/CMakeLists.txt:31 (get_filename_component):
  get_filename_component unknown component DIRECTORY


-- Found Doxygen: /usr/bin/doxygen (found version "1.7.6.1") 
-- Configuring incomplete, errors occurred!

from paho.mqtt.cpp.

guilhermeferreira avatar guilhermeferreira commented on August 18, 2024

CMake version 2.8.9 has the same problems as versions 2.8.7 and 2.8.8:

$ cmake --version
cmake version 2.8.9

$ cmake -DCMAKE_INSTALL_PREFIX=/tmp/paho-cpp \
-DPAHO_MQTT_C_PATH=/tmp/paho-c \
-DPAHO_BUILD_DOCUMENTATION=ON \
-DPAHO_BUILD_SAMPLES=ON \
-DPAHO_BUILD_STATIC=ON \
-DPAHO_WITH_SSL=ON ..
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_LANGUAGES_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_LANGUAGES_COMPILER
CMake Error: Could not find cmake module file:paho.mqtt.cpp/build_cmake/CMakeFiles/CMakeLANGUAGESCompiler.cmake
-- The CXX compiler identification is GNU 4.6.3
CMake Error: Could not find cmake module file:CMakeLANGUAGESInformation.cmake
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error: CMAKE_LANGUAGES_COMPILER not set, after EnableLanguage
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.1") 
CMake Error at src/samples/CMakeLists.txt:31 (get_filename_component):
  get_filename_component unknown component DIRECTORY


-- Found Doxygen: /usr/bin/doxygen (found version "1.7.6.1") 
-- Configuring incomplete, errors occurred!

from paho.mqtt.cpp.

guilhermeferreira avatar guilhermeferreira commented on August 18, 2024

CMake version 2.8.10. Same problems:

$ cmake --version
cmake version 2.8.10

$ cmake -DCMAKE_INSTALL_PREFIX=/tmp/paho-cpp \
-DPAHO_MQTT_C_PATH=/tmp/paho-c \
-DPAHO_BUILD_DOCUMENTATION=ON \
-DPAHO_BUILD_SAMPLES=ON \
-DPAHO_BUILD_STATIC=ON \
-DPAHO_WITH_SSL=ON ..
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_LANGUAGES_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_LANGUAGES_COMPILER
CMake Error: Could not find cmake module file:paho.mqtt.cpp/build_cmake/CMakeFiles/2.8.10/CMakeLANGUAGESCompiler.cmake
-- The CXX compiler identification is GNU 4.6.3
CMake Error: Could not find cmake module file:CMakeLANGUAGESInformation.cmake
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error: CMAKE_LANGUAGES_COMPILER not set, after EnableLanguage
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.1") 
CMake Error at src/samples/CMakeLists.txt:31 (get_filename_component):
  get_filename_component unknown component DIRECTORY


-- Found Doxygen: /usr/bin/doxygen (found version "1.7.6.1") 
-- Configuring incomplete, errors occurred!

from paho.mqtt.cpp.

guilhermeferreira avatar guilhermeferreira commented on August 18, 2024

CMake version 2.8.11. Same problems as the previous versions:

$ cmake --version
cmake version 2.8.11

$ cmake -DCMAKE_INSTALL_PREFIX=/tmp/paho-cpp \
-DPAHO_MQTT_C_PATH=/tmp/paho-c \
-DPAHO_BUILD_DOCUMENTATION=ON \
-DPAHO_BUILD_SAMPLES=ON \
-DPAHO_BUILD_STATIC=ON \
-DPAHO_WITH_SSL=ON ..
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_LANGUAGES_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_LANGUAGES_COMPILER
CMake Error: Could not find cmake module file:paho.mqtt.cpp/build_cmake/CMakeFiles/2.8.11/CMakeLANGUAGESCompiler.cmake
-- The CXX compiler identification is GNU 4.6.3
CMake Error: Could not find cmake module file:CMakeLANGUAGESInformation.cmake
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error: CMAKE_LANGUAGES_COMPILER not set, after EnableLanguage
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.1") 
CMake Error at src/samples/CMakeLists.txt:31 (get_filename_component):
  get_filename_component unknown component DIRECTORY


-- Found Doxygen: /usr/bin/doxygen (found version "1.7.6.1") 
-- Configuring incomplete, errors occurred!

from paho.mqtt.cpp.

guilhermeferreira avatar guilhermeferreira commented on August 18, 2024

With the unchanged CMakeLists.txt. CMake version 2.8.12:

  • Recognize the component DIRECTORY of the get_filename_component command.
  • Require the addition of CMAKE_LANGUAGES_COMPILER.
  • Require the removal of LANGUAGES directive from the project command.
$ cmake --version
cmake version 2.8.12

$ cmake -DCMAKE_INSTALL_PREFIX=/tmp/paho-cpp \
-DPAHO_MQTT_C_PATH=/tmp/paho-c \
-DPAHO_BUILD_DOCUMENTATION=ON \
-DPAHO_BUILD_SAMPLES=ON \
-DPAHO_BUILD_STATIC=ON \
-DPAHO_WITH_SSL=ON ..
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_LANGUAGES_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_LANGUAGES_COMPILER
CMake Error: Could not find cmake module file: paho.mqtt.cpp/build_cmake/CMakeFiles/2.8.12/CMakeLANGUAGESCompiler.cmake
-- The CXX compiler identification is GNU 4.6.3
CMake Error: Could not find cmake module file: CMakeLANGUAGESInformation.cmake
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error: CMAKE_LANGUAGES_COMPILER not set, after EnableLanguage
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.1") 
-- Found Doxygen: /usr/bin/doxygen (found version "1.7.6.1") 
-- Configuring incomplete, errors occurred!
See also "paho.mqtt.cpp/build_cmake/CMakeFiles/CMakeOutput.log".

After the changes:

$ cmake -DCMAKE_INSTALL_PREFIX=/tmp/paho-cpp \
-DPAHO_MQTT_C_PATH=/tmp/paho-c \
-DPAHO_BUILD_DOCUMENTATION=ON \
-DPAHO_BUILD_SAMPLES=ON \
-DPAHO_BUILD_STATIC=ON \
-DPAHO_WITH_SSL=ON ..
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.1") 
-- Found Doxygen: /usr/bin/doxygen (found version "1.7.6.1") 
-- Configuring done
-- Generating done
-- Build files have been written to: paho.mqtt.cpp/build_cmake

from paho.mqtt.cpp.

guilhermeferreira avatar guilhermeferreira commented on August 18, 2024

@fpagliughi, with a few changes it works with CMake 2.8.12.

from paho.mqtt.cpp.

guilhermeferreira avatar guilhermeferreira commented on August 18, 2024

@fpagliughi please, could you check if the pull request #62 works for you?

from paho.mqtt.cpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.