could not find qtplatfom plugin eglfs
-
Did you copy the Qt folder at the exact same position you have on your desktop machine in your target ?
-
I have Qt folder ,in my laptop here /home/beagle/Qt5ForBBB1
And I copied,it just as like this
scp -r Qt5ForBBB1 debian@192.168.7.2:Qt5ForBBB1...
is it correct? or I need to copy like this
scp -r /home/beagle/Qt5ForBBB1 debian@192.168.7.2:Qt5ForBBB1
-
Even if you don't have the Qt folder on beaglebone at same location, you can export the following environment variables on BBB and be able to run your Qt application in it.
export QT_QPA_PLATFORM_PLUGIN_PATH=/home/debian/(Qt folder name)/plugins/platforms export LD_LIBRARY_PATH="/home/debian/(Qt folder name)/lib":$LD_LIBRARY_PATH export QT_PLUGIN_PATH=/home/debian/(Qt folder name)/plugins export QT_QPA_FONTDIR=/home/debian/(Qt folder name)/lib/fonts
Main thing you need to check is do you have eglfs as platform in the first place? Because I'm working on a BBB myself, and my application isn't in critical need of eglfs, but normally with BBB sysroot and linaro toolchain combo, you don't get eglfs working. You should check the path
/home/debian/(Qt folder name)/plugins/platforms
before using any app whether you have a library for eglfs there. If you do, then the commands above will point the Qt application to right folder and it will detect eglfs as platform plugin. -
Hi,
I have the platforms
linuxfb, minimal, offscreen,and vnc,
And exported platform also
export_QT_QPA_PLATFORM=vnc(because i also have vnc)As you said I already export those things,which you mentioned,
After that in .pro file added the line
target.path=$$[Qt5ForBBB]/bin
INSTALLS += targetAfter this, running the application, getting the error
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]..
exactly same error i got in BBB folder(means I followed your pdf document, same as you said i created one BBB directory, and gave the command rsync -avz debian@192.168.7.2:/usr sysroot ,in there also i got same error,but I continued next process as you mentioned in your pdf along with this error)
how to solve this rsync error,please suggest me(even I am installed debian on external hard drive,and trying or following those steps in external hard drive,but while running this command rsync -avz debian@192.168.7.2:/usr sysroot,getting same error).
how do I solve this error?
-
Why are you copying stuff in /usr ? The debian user likely doesn't have write access there.
-
@Asha said in could not find qtplatfom plugin eglfs:
then where i need to copy?
Home directory of the user
-
rsync -avz debian@192.168.7.2:/usr sysroot
Here,I am synchronizing the sysroot from board to computer,
so,Home directory to the user means ,I need to give like this
rsync -avz debian@192.168.7.2:/usr /home/beagle/BBB/sysrootOR
rsync -avz debian@192.168.7.2:/usr /home/beagle
-
@Asha said in could not find qtplatfom plugin eglfs:
rsync -avz debian@192.168.7.2:/usr /home/beagle/BBB/sysroot
OR
rsync -avz debian@192.168.7.2:/usr /home/beagleWell, if you use /home/beagle you will pollute your home directory with the sysroot content, so use /home/beagle/BBB/sysroot ...
-
@Ketank16 Hi,
can you please show me the, any .pro file,
I am very confused with this target.path file..
I followed this..
here is my .pro file
what i gave target.path, is it correct?
if its correct I am getting the error as shown in screenshot,
for that error solution ,I gave all the rights(rwx) to the /home/beagle/Qt5.13.1 directory then also getting the same error,any suggestions please....
-
@Asha I think the problem is the $$[Qt5] placeholder in the value for
target.path
variable in your .pro
what if you just make it simple astarget.path=/home/beagle/Qt5.13.1
PS: please STOP pasting pictures and just paste TEXT so it's easier for others to reference your posts...
-
Good morning ,
Thanks for the replay,
After giving /home/beagle/Qt5.13.1 in my .pro file also getting the same problem...
Here is the compile output:
10:22:04: Running steps for project concentriccircles...
10:22:04: Configuration unchanged, skipping qmake step.
10:22:04: Starting: "/usr/bin/make" -j4
make: Nothing to be done for 'first'.
10:22:04: The process "/usr/bin/make" exited normally.
10:22:04: Connecting to device "Generic Linux Device" (192.168.7.2).
10:22:08: The remote file system has 49 megabytes of free space, going ahead.
10:22:08: Deploy step finished.
10:22:08: Trying to kill "/home/beagle/Qt5.13.1/concentriccircles" on remote device...
10:22:11: Remote application killed.
10:22:11: Deploy step finished.
10:22:11: Failed to create remote directories: mkdir: cannot create directory ‘/home/beagle’: Permission denied10:22:11: Deploy step failed.
Error while building/deploying project concentriccircles (kit: BBB)
When executing step "Deploy files via rsync"
10:22:11: Elapsed time: 00:07. -
/home/beagle does not exit on my device,
I installed Qt in my laptop(location is: /home/beagle/Qt5.13.1)I copied the cross compiled qt in my device(location is : /home/debian/Qt5),
one more thing,I want to tell
my user password is :1234
I am trying to connect ssh via root,but giving the password 1234 ,I am not able to connect with my board ,getting the permission denied error,
but giving the password "ims1" ,I am able to login via root,
where "ims1" is my old user password ,is this may cause any issues? -
@Asha said in could not find qtplatfom plugin eglfs:
/home/beagle does not exit on my device
Well, that's the problem: only root has write access in /home.
Why do you use /home/beagle if your user is debian?!
Use /home/debian ... -
while giving the /home/debian
here is the compile output:
11:13:06: Running steps for project concentriccircles...
11:13:06: Configuration unchanged, skipping qmake step.
11:13:06: Starting: "/usr/bin/make" -j4
make: Nothing to be done for 'first'.
11:13:06: The process "/usr/bin/make" exited normally.
11:13:06: The remote file system has 46 megabytes of free space, going ahead.
11:13:06: Deploy step finished.
11:13:06: Trying to kill "/home/debian/Qt5/concentriccircles" on remote device...
11:13:08: Remote application killed.
11:13:08: Deploy step finished.
11:13:08: sending incremental file list11:13:08:
sent 72 bytes received 12 bytes 168.00 bytes/sec
total size is 1,576,416 speedup is 18,766.8611:13:08: Deploy step finished.
11:13:08: Elapsed time: 00:03.And
Application output is:
11:13:09: Starting /home/debian/Qt5/concentriccircles ...
qt.qpa.plugin: Could not find the Qt platform plugin "eglfs" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.Available platform plugins are: linuxfb, minimal, offscreen, vnc.
11:13:09: Remote process crashed.
-
@Asha said in could not find qtplatfom plugin eglfs:
linuxfb, minimal, offscreen, vnc
Looks like you did not build eglfs support when building Qt
-