Comments (12)
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.
That would be helpful, if it isn't too much trouble...
from paho.mqtt.cpp.
Awesome.
from paho.mqtt.cpp.
@fpagliughi I'll have to check. Return to you at the end of the day.
from paho.mqtt.cpp.
Problems with CMake 2.8.7:
- Don't support the
DIRECTORY
directive of theget_filename_component
command. This command is required to build file paths. - Don't support the
LANGUAGES
directive in theproject
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.
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.
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.
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.
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.
With the unchanged CMakeLists.txt
. CMake version 2.8.12:
- Recognize the component
DIRECTORY
of theget_filename_component
command. - Require the addition of
CMAKE_LANGUAGES_COMPILER
. - Require the removal of
LANGUAGES
directive from theproject
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.
@fpagliughi, with a few changes it works with CMake 2.8.12.
from paho.mqtt.cpp.
@fpagliughi please, could you check if the pull request #62 works for you?
from paho.mqtt.cpp.
Related Issues (20)
- No consumer notification when broker cleanly disconnects HOT 3
- paho.mqtt.cpp looks for PahoMqttC, but the package named - eclipse-paho-mqtt-c. HOT 2
- CMake Error when PAHO_BUILD_SAMPLES=TRUE (Cannot find src/samples/async_consume_v5.cpp) HOT 1
- Why is this project under Eclipse v1.0 when paho.mqtt.c is under Eclipse v2.0? HOT 1
- Building paho.mqtt.cpp: cmake doesn't pick up my c++ compiler correctly. HOT 4
- Homebrew Installation HOT 1
- Automatic Reconnect Crashes MQTT when `client.reconnect()` is called HOT 7
- Connect failed, more to try HOT 1
- SSL_read() Segmentation fault
- Build with PAHO_WITH_MQTT_C is broken HOT 3
- broker(emqx) already support QUIC, and i Hope client also supports the Quic protocol HOT 1
- arm cross get error HOT 8
- Add getter for the connect_options object (connOpts_) in async_client HOT 1
- Operation not permitted on try_consume_message async HOT 1
- Base64TestOpenSSL giving problem and how to use only paho-mqtt3as libraray project in visual studio HOT 1
- Cross compilation of paho.mqtt.cpp HOT 9
- cmake issue in Docker container HOT 2
- error in install_paho_mqtt_c.sh in the installation process of the latest version of paho.mqtt.cpp HOT 1
- ThreadSanitizer: lock-order-inversion (potential deadlock) paho 1.2.0
- Linker-Error when compiling with v1.3.2 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paho.mqtt.cpp.