You are here

VESC package

1 post / 0 new
taylose
Offline
Last seen: 1 year 4 months ago
Joined: 2023-02-10 05:44
Posts: 1
VESC package

Hi,

I'm currently attempting to implement a custom encoder package to implement the specific callbacks for an AksIM-2 encoder. From what I've been able to tell by looking through the source code is I can do this using a VESC package. I've created a basic version of this package for testing and it builds an compiles however I've gotten stuck running the vesc_tool --buildPKg command. I've tried creating the package through the IDE and this does seem to successfully create a .vescpkg file but i'm not sure this is building the package properly or just creating some form of template file. When I tested this package it doesn't seem to import the lib properly

The specific error I get tried to run --buildPKg is this:

"

qt.qpa.plugin: Could not find the Qt platform plugin "offscreen" 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: xcb.
"

I've spent some time digging into this error but have not yet found a fix.

Is there something I'm missing? What is the proper way to build a vesc package?

Any thoughts would be helpful

Thanks.

##EDIT

I've since found out that building the package through the VESC tool is in-fact doing the same thing as running the binary with the --buildPkg tool, at least it seems that way. I also found a work-around where if you run --buildPkg with only 4 arguments instead of the 6, assuming you already have a .vescpkg file then it doesn't try to create a QT application and doesn't fail. So I guess I'm back to wondering why my package is not importing the lib properly. Any thoughts would still be useful. Thanks

##EDIT