Issue with 'xlib' platform plugin.
-
Hi everyone,
While creating and running my tests on Linux I have encountered an error during the execution of my test:
2024-09-25T15:28:31 ERROR /MytestSuite/MyTestCase/test.py:38: Script Error RuntimeError: Platform plugin 'xlib' was not linked into the executable 2024-09-25T15:28:31 END_TEST_CASE End 'MyTestCase' End of test 'MyTestCase' 15:28:31:804 Wrapper: MySquishApp[759831]: Native pointer move error: Platform plugin 'xlib' was not linked into the executable
This error seem to spawn from commands like "mouseRelease()" or "mousePress()" (as is the case line 38 of my "test.py").
But commands like "clickButton()" or "doubleClick()" works juste fine.Now I am running this test on a remote, headless, Linux, so while the SquishServer and SquishRunner are on the Linux machine, the GUI gets forwarded to my windows machine.
I am using a Squish that is built from sources so when I first encountered the error I realized that I had, in fact, not included all the ".a" files that were generated. In particular I missed a "libsquishxlib.a".
But now that I have added that missing lib (I even ended up including all of the generated ".a" files), I still get the same error like nothing changed.
So now I'm kinda stumped. Any help or clue would be greatly appreciated.
Thanks in advance,
-
@PLL3 said in Issue with 'xlib' platform plugin.:
Hi everyone,
While creating and running my tests on Linux I have encountered an error during the execution of my test:
2024-09-25T15:28:31 ERROR /MytestSuite/MyTestCase/test.py:38: Script Error RuntimeError: Platform plugin 'xlib' was not linked into the executable 2024-09-25T15:28:31 END_TEST_CASE End 'MyTestCase' End of test 'MyTestCase' 15:28:31:804 Wrapper: MySquishApp[759831]: Native pointer move error: Platform plugin 'xlib' was not linked into the executable
This error seem to spawn from commands like "mouseRelease()" or "mousePress()" (as is the case line 38 of my "test.py njmcdirect").
But commands like "clickButton()" or "doubleClick()" works juste fine.Now I am running this test on a remote, headless, Linux, so while the SquishServer and SquishRunner are on the Linux machine, the GUI gets forwarded to my windows machine.
I am using a Squish that is built from sources so when I first encountered the error I realized that I had, in fact, not included all the ".a" files that were generated. In particular I missed a "libsquishxlib.a".
But now that I have added that missing lib (I even ended up including all of the generated ".a" files), I still get the same error like nothing changed.
So now I'm kinda stumped. Any help or clue would be greatly appreciated.
Thanks in advance,
I also face this problem. But fortunately, I found your post. Anyone give the solution of xlib plugin.
-
Hi, I've sent a mail to Squish support and they replied with something that might help you, unfortunately it didn't help for me, but maybe it will for you.
They've told me to add those two options to the configure call of my Squish build:
--with-x11-includedir=<path-to-dir>
--with-x11-libdir=<path-to-dir> -
If the environment lacks xtest libraries, it might be worth installing them and try again.
ex:
sudo apt-get install libxcb-xtest0-dev -
@PLL3 said in Issue with 'xlib' platform plugin.:
Hi everyone,
While creating and running my tests on Linux I have encountered an error during the execution of my test:
2024-09-25T15:28:31 ERROR /MytestSuite/MyTestCase/test.py:38: Script Error RuntimeError: Platform plugin 'xlib' was not linked into the executable 2024-09-25T15:28:31 END_TEST_CASE End 'MyTestCase' End of test 'MyTestCase' 15:28:31:804 Wrapper: MySquishApp[759831]: Native pointer move error: Platform plugin 'xlib' was not linked into the executable
This error seem to spawn from commands like "mouseRelease()" or "mousePress()" (as is the case line 38 of my "test.py").
But commands like "clickButton()" or "doubleClick()" works juste fine.Now I am running this test on a remote, headless, Linux, so while the SquishServer and SquishRunner are on the Linux machine, the GUI gets forwarded to my windows machine.
I am using a Squish that is built from sources so when I first encountered the error I realized that I had, in fact, not included all the ".a" files that were generated. In particular I missed a "libsquishxlib.a".
But now that I have added that missing lib (I even ended up including all of the generated ".a" files), I still get the same error like nothing changed.
So now I'm kinda stumped. Any help or clue would be greatly appreciated.
Thanks in advance,
Thanks for giving detailed answer.