-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake Build Error #61
Comments
Same issue here. |
As I'm not a CMAKE expert, any suggestion is welcome, I'm spending most of my time in Rust these days. |
I could progress a bit on that. Seems the paho lib must be built and installed:
but this not sufficient, because there's a next error as the paho lib is not build static, therefore paho-mqtt3as-static is missing That can be fixed by adding
I found that potentially -DPAHO_WITH_MQTT_C=ON in both paho and serial2mqtt was about, however my tries weren't successful. If you put the -DPAHO_BUILD_STATIC=true, the last error that is raised is:
and indeed,
as only the non-SSL one is generated, but not the I don't know what to change in order to ask the paho build to install also the -DPAHO_BUILD_STATIC=true |
I will correct myself.
Then the correct way to build paho-mqtt-c with the expected flavor is
I mae some additional tests such as installing the lib paho-mqtt-c, so I hope it does not have fixed some issues without me knowing exactly what changed. |
Thanks a lot for your help. |
This is the first time I involve myself in such open source project. Although I know enough GIT to be able to clone/commit, I'm not yet familiar with pull-request. I was looking for such a solution on google, and was surprised that there is not a lot people interrested in that use-case. |
@vortex314 as I thought, the fix is not sufficient. I tested on a fresh computer, and there are many actions that can be done to fix the build. Let me investigate and come back to you. |
@Gagns4395 thanks already for your effort ! |
@vortex314 please find my pull-request #62 |
Hey its been a long time since i've had a chance to look at this project, my goal is to connect my meshtastic station g2 esp32 device to my raspberry pi mosquitto mqtt server via usb/serial instead of wifi which is unreliable. I was able to progress further in the build but failed on the final 'make' step, see below:
|
When attempting to build this project on my raspberry pi running debian bookworm i'm hitting this problem at the end of the build instructions:
`mqtt@mqtt:
/serial2mqtt $ cd build//serial2mqtt/build $ cmake ..mqtt@mqtt:
CMake Error at CMakeLists.txt:12 (find_package):
By not providing "Findeclipse-paho-mqtt-c.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"eclipse-paho-mqtt-c", but CMake did not find one.
Could not find a package configuration file provided by
"eclipse-paho-mqtt-c" with any of the following names:
Add the installation prefix of "eclipse-paho-mqtt-c" to CMAKE_PREFIX_PATH
or set "eclipse-paho-mqtt-c_DIR" to a directory containing one of the above
files. If "eclipse-paho-mqtt-c" provides a separate development package or
SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred!
See also "/home/mqtt/serial2mqtt/build/CMakeFiles/CMakeOutput.log".
`
The text was updated successfully, but these errors were encountered: