could not find qtplatfom plugin eglfs
-
@jsulm I followed the below document ,please go through this one, even he also done with debian,created sysroot....
here is the link https://forum.qt.io/topic/106912/how-to-copy-cross-compiled-qt-binaries-from-one-computer-to-another/13 in the post 13...click here you will get a one pdf(I followed that one) but he did with vnc plugin(export done vnc only),even i also have that vnc plugin and i tried (exported also)but getting the same issue....
I am very new to this,(if i asked any foolish questions then sorry)
-
Hi,
I connected ssh,via ssh debian@192.168.7.2
after this,I am executing the executable
./example platform=vnc
The result is QVncServer created on port 5900
After this blank screen is showing...
Any suggestions about this....
-
Hi,
I tried ,creation and execution of application through command prompt only,created directory
mkdir qws
cd qws
vi qws.pro
TEMPLET=app
SOURCES=main.cppvi main.cpp
#include<QApplication>
#include<QPushButton>
int main(int argc,char** argv)
{
QApplication app(argc,argv);
QPushButton btn("HI");
btn.show();
btn.showMaximized();
}After this gave the command
qmake
the output is:
qmake:could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/make : No such file or directory
I am fully confused what going,what is the mistake, i cross compiled the qt5 but its showing about qt4....any ideas ?please
-
Always use the full path to the qmake version you want to use.
Note that your cross-compiles Qt will have qmake built for the host and not the target.
-
@SGaist Hi,
I created the drectory,and created the .cpp and .pro file after that tring for qmke but getting "qmake: could not exec '/usr/lib/x86_64-Linux-gnu/qt4/bin/make': No such file or directory.."
mkdir sample
cd sample
vi sample.cpp
vi sample.pro
qmake /home/beagle/Qt5/bin/qmakeAny suggestions please?.......
-
@Asha said in could not find qtplatfom plugin eglfs:
Any suggestions please?.......
"qmake /home/beagle/Qt5/bin/qmake" - what is this line supposed to be?!
It should be/home/beagle/Qt5/bin/qmake
-
@jsulm yes,i gave this one /home/beagle/Qt5/bin/qmake
After this i got the makefile,
the gave the makeafter this make getting the error
arm-linux-gnueabihf-g++: error : .o No such file or directory
Makefile:141: recipe for target 'sample' failed
make: ***[sample] Error 1when i list the files ,i got the sample.o file
so I copied that obj file in my board using scp,
And executing that sample.o file in board,
./sample.o platform=vncgetting the error:
-bash: ./sample.o: cannot execute binary file: EXec format error
-
@Asha You can't execute *.o files!
Those needs to be linked together to an executable."arm-linux-gnueabihf-g++: error : .o - please delete everything in your build directory, run qmake again and then build (call make).
Also this error message looks strange - there should be actual file name in front of .o -
Those needs to be linked together to an executable.but i am not getting the executable file...
getting this
arm-linux-gnueabihf-g++: error : .o No such file or directory
Makefile:141: recipe for target 'sample' failed
make: ***[sample] Error 1.o - please delete everything in your build directory,
I am not understood the above line,delete everything in build directory means,I need to delete the Qt5 directory files and directories?
-
@Asha said in could not find qtplatfom plugin eglfs:
I need to delete the Qt5 directory files and directories?
No.
What I mean is: delete all build artefacts from previous builds (like *.o files, Makefiles). -
@jsulm I deleted the all makefiles and .o files now tring to execute sample.o file but getting the -bash: ./sample.o:cannot execute binary file: Exec format error..
"You can't execute *.o files!",Please suggest me where i need to link that .o file(I am not getting any executable file)..
-
@Asha said in could not find qtplatfom plugin eglfs:
"You can't execute *.o files!",Please suggest me where i need to link that .o file(I am not getting any executable file)..
You just need to build again!
"I am not getting any executable file" - yes, because your build fails.
Before I wrote: please delete everything in your build directory, run qmake again and then build (call make).
So again: please run qmake and build. -
Hi,
I done once again qmake and make,
After make ,I got
undefined reference to 'main'
collect2: error :ld returned 1 exit status
Makefile:137: recipe for target 'sample 'failed'
make: *** [sample] Error 1After listing the files,the result is
Makefile
.qmake.stash
sample.cpp
sample.proI am not getting ,what is the problem....
-
@jsulm
yes,#include <QCoreApplication> #include <QString> #include <QFile> #include <QDir> #include <QTextStream> #include <QDebug> int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); // prepare the message QString message("Hello World!"); // prepare a file in the users home directory named out.txt QFile file(QDir::home().absoluteFilePath("out.txt")); // try to open the file in write mode if(!file.open(QIODevice::WriteOnly)) { qWarning() << "Can not open file with write access"; return -1; } // as we handle text we need to use proper text codecs QTextStream stream(&file); // write message to file via the text stream stream << message; return 0; } ~
-
@Asha said in could not find qtplatfom plugin eglfs:
\ sample.cpp
why do you have backslash in front of sample.cpp?
"Qt += core gui" must be "QT += core gui"[edit: Fixed variable name SGaist]