could not find qtplatfom plugin eglfs
-
@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]