How to setup/install including mosquitto header/library file in ubuntu18.04?
-
@crispyoz Thank you for your consideration.
I'd like to install the libmosquitto. but, there is not libmosquitto in Libraries tap.
so, I checked the feeds.conf file in the /source folder for verifying OpenWrt version.list of feeds.conf file
src-git packages https://git.openwrt.org/feed/packages.git;openwrt-18.06
src-git luci https://git.openwrt.org/project/luci.git;openwrt-18.06
src-git routing https://git.openwrt.org/feed/routing.git;openwrt-18.06
src-git telephony https://git.openwrt.org/feed/telephony.git;openwrt-18.06
src-git onion https://github.com/OnionIoT/OpenWRT-Packages.git;openwrt-18.06contents of build_info.json
version: 0.3.3
build: 251Can I get the new version of build system?
or should I install the mosquitto package manually?thanks.
-
@jongrock-chun Try running these commands:
switch to the openwrt branch
git checkout openwrt-18.06
sudo apt install ncurses-dev
sudo apt install gawkclean out any old LEDE related feeds
./scripts/feeds clean
./scripts/feeds update -a
./scripts/feeds install -ash scripts/onion-feed-setup.sh
python scripts/onion-setup-build.py
-
@crispyoz thanks for your reply again.
I got a late answer because this community site went down.As a result of the above method you told me, I finally found the libmosquitto in menu>libraries.
thanks again.
but, I had an error during making the build system.error : recipe for target 'world' failed
so, I'm trying to run the command('make j1 V=s') to see the exact error.
if I succeed with the simple mqtt code, I'll post it to you.
-
@jongrock-chun make sure you have run the command:
scripts/onion-minimal-build.sh
This makes the build much faster.
If you have the error post the part of the log
-
@crispyoz First of all, I would like to express my deep gratitude for your interest.
I am even more grateful for your sincere help with my poor English skills.I found the reason for the error.
Linux for cross-compile was executed on a virtual environment in Windows. (like VMware s/w)
However, an error occurred due to the lack of size given to Linux.It was found that size of at least 30G or more was required when the installation was performed in the above way.
I succeeded to execute the simple mqtt code.
Once again, I want to say thank you so much.
I hope this article helps others when they have similar problems.
So I want to modify the title of this article to more appropriate,
so please advise if there is a title to recommend.Thanks to you, I am so grateful to solve this problem.
-
@jongrock-chun Thanks for the update, we are happy you were able to solve the problem. The fun part will now begin if you want to publish/subscribe using SSL/TLS. But that is a different topic. I keep meaning to post a tutorial but haven't had time yet.
-
@crispyoz thanks for your advice.
Do you know anything about sites or codes to refer to for SSL?
if you know that, let me know.
-
@jongrock-chun create a new topic for this question and I will reply there. Easier for other users to find later.
-
@crispyoz OK, I got it.
I'll proceed it.
-
I also followed the guidance on this thread, and successfully created a mosquitto client in our pre-existing C++ application. Thank you very much for both the questions and the answers. I cannot express how useful this thread has been to me. Very unlikely I would have ever succeeded on my own.