so I have followed every guide I can find online from stackoverflow to random websites and I cant get it to work so would love some help.
FYI: using ubuntu, Qt creator 6.4.2 which was installed by going to the website downloading the installer and following setup process.
What I have done
ran command to find directory and check if there is a file called Qt5mqtt.dll there wasnt
qmake -query QT_INSTALL_LIBS
so I cloned the github repository using the command
git cline git://code.qt.io/qt/qtmqtt.git
Now I cd into the directory where there is a file called mqtt.pro (most guides say this file is called qtmqtt.pro but mine isnt) this files is found in qtmqtt->examples->mqtt
now I run the commands
qmake
make
make install
(tried all with sudo)
Here I get errors when i run make and make install saying
cd consolepubsub/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/dave/Qt/qtmqtt/examples/mqtt/consolepubsub/consolepubsub.pro ) && make -f Makefile
make[1]: Entering directory '/home/dave/Qt/qtmqtt/examples/mqtt/consolepubsub'
( test -e Makefile.qtmqtt_pub || /usr/lib/qt5/bin/qmake -o Makefile.qtmqtt_pub /home/dave/qtmqtt/examples/mqtt/consolepubsub/qtmqtt_pub.pro ) && make -f Makefile.qtmqtt_pub
Cannot find file: /home/dave/qtmqtt/examples/mqtt/consolepubsub/qtmqtt_pub.pro.
make[1]: *** [Makefile:45: sub-qtmqtt_pub-pro-make_first-ordered] Error 2
make[1]: Leaving directory '/home/dave/Qt/qtmqtt/examples/mqtt/consolepubsub'
make: *** [Makefile:51: sub-consolepubsub-make_first] Error 2
I have tried moving the cloned mqtt folder into where I have installed Qt,
I also tried the steps from Install MQTT Module in Open Source QT
I have also tried the mqtt library from https://github.com/emqx/qmqtt with similar results
Also if i add the QT += mqtt to my .pro file in a project I still get the error
Project ERROR: Unknown module(s) in QT: mqtt
Any help would be great, as I am very stuck and confused as what I am doing wrong
Related
I have been working on a project that requires me to use make clean, make ready, then make install to get files to run a simulation. I got make clean and make ready to work on the same area but as soon as I try to run a make install it won't work and gives this error:
ifort -w -O -tpp7 -c main.f
make: ifort: Command not found
make: *** [makefile:640: main.o] Error 127
this makes no sense to me as I don't have a Linux system and I'm running on a windows system with WSL and Ubuntu. There is a makefile if that is helpful but I don't really know what to look for in that file. Thanks in advance.
I'm running code using Ubuntu on a WSL. Every time I edit some C files I need to execute a makefile and run an installer to ensure that the changes are reflected in the python package that I am using. The set of commands I need to execute is
make clean
make
cd python
python setup.py install --user
This works perfectly when I execute them in the terminal. In order to make my life easier, I decided to put these commands in a text file Compile.txt to be executed whenever I need to compile the relevant files. I found this question and tried to replicate its solution. However, whenever I type ./Compile.txt into the terminal I get the error
'. Stop. No rule to make target 'clean
gcc -o .o
gcc: fatal error: no input files
compilation terminated.
make: *** [<builtin>: .o] Error 1
./Compile.txt: line 7: cd: $'python\r': No such file or directory
python: can't open file 'setup.py': [Errno 2] No such file or directory
Can anyone explain what I've done wrong? I apologise for any misuse of terminology as I'm still quite new to Linux.
Thanks in advance.
I recently upgraded my MacBook Pro to Yosemite and I'm having trouble building Rust from source now. When I run
$ ./configure
$ make && sudo make install
it seems to build fine, but hangs on installation at this line
rustdoc: doc/rustc/index.html
and eventually outputs this error:
task '<main>' failed at 'failed to generate documentation: couldn't open file (permission denied (Permission denied); path=doc/implementors/graphviz/trait.GraphWalk.js; mode=open; access=read)', /Users/Raevynheart/Code/rust_projects/rust/src/librustdoc/lib.rs:246
make: *** [doc/rustc/index.html] Error 101
make: *** [install] Error 2
I found this issue that might be related, but I'm unsure how to proceed. Thanks for your help.
For anyone that runs into a similar problem, here is what worked for me. If you run make help, you'll be presented with options for the make command. One of them is:
# * clean - Clean the build repertory. It is advised to run this
# command if you want to build Rust again, after an update
# of the git repository.
Running sudo make clean and then make && sudo make install got Rust ready to roll once again.
I want to test rna-star code. I have Ubuntu 12.04 on my machine.I have downloaded all the packages necessary:
sudo apt-get update
sudo apt-get install g++
sudo apt-get install make
But in the installation step I have problem running make command on STAR executable file.on the installation manual I see it says:
Unzip/tar STAR_x.x.x.tgz file into a directory of your choice <
STARsource >, cd < STARsource > and run make. The source code will be
compiled and the STAR executable will be generated.
when I run 'make STAR' it says:
make: Nothing to be done for `STAR'.
any suggestion?
This means that the "STAR" target does not exist. In a makefile, you define targets (implicit or explicit) and make takes care of building in the correct orders the dependencies for your target.
You should read documentation on this project or glance at the makefile : it's likely you need to run "make" without parameters (which is stated in your documentation excerpt), something like :
tar zxvf star...tgz
cd star...
make
So I just ran into the same problem.
Apparently the following solved it:
Redirect to source map: cd STAR-2.5.3a/source
The Makefile is in this location, after this just enter the command make.
It should start running. If you work in a cluster do not forget to edit your shell configuration before using;
export PATH=$HOME/STAR-2.5.3a/source:$PATH
I'm installing Apache on Ubuntu following this install guide
http://httpd.apache.org/docs/trunk/install.html but get an error on the last step when I run the command line below;
$ PREFIX/bin/apachectl -k start
I've noticed that the referred file (above) does not exist on my server on that path.
When I run ls -l, I get this:
-rwxr-xr-x 1 agenadinik agenadinik 7067 2011-03-22 14:08 apr-1-config
Does anyone know why this inconsistency exist?
The make install command also had this error:
make[2]: *** [install] Error 1
make[2]: Leaving directory `/home/agenadinik/httpd-2.2.17/srclib/apr-util'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/agenadinik/httpd-2.2.17/srclib'
make: *** [install-recursive] Error 1
Any idea what is happening incorrectly here and how to get it fixed?
I'm using Apache version 2.2.17 with the built folder name as httpd-2.2.17 in my home directory at /home/agenadinik/.
I think its a permissions issue. Try
sudo make install
# make clean install
# service mysqld stop
this will remove the above errors
I had the same problem with the same error message, in my case it was a permission problem so I used the following command:
# sudo make install
First, you need to run make clean install in the directory where you've compiled Apache.
Then, re-compile Apache from source with all necessary options as below;
All with sudo privileges, if required.
# ./buildconf
# ./configure --enable-ssl --enable-so --with-included-apr
# make
# make install
Options used above are:
--enable-ssl to enable SSL support,
--enable-so to enable dynamically loaded modules, and
--with-included-apr to make use of the Apache Portable Runtime (APR) supporting library in the srclib directory of your Apache project.
After a successful operation, you can now effectively start your Apache server.