Yes user have rights to access /dev/fb0
Even I can run qt example code of frambuffer(examples/qws/framebuffer.) on board, and Its show me three rectangles on my display.
Yes user have rights to access /dev/fb0
Even I can run qt example code of frambuffer(examples/qws/framebuffer.) on board, and Its show me three rectangles on my display.
All the example having QApplication object show segmentation fault.
But for QCoreApplication object, i can use QDateTime, QDate etc.. sub classes of QCoreApplication. It's works fine with QCoreApplication.
Is there any other way to test QApplication object, I mean
Can ./configure affect Qt Gui ?? I have tried with full configuration also.
Your suggestion would be great help for me..
Your problem is deployment, not compilation. Could you post a backtrace of an exemplory crash? An strace showing files being opened (and statuses of the calls) would be nice as well.
Below is my test application code
main.cpp file
Qt Code:
#include <QtGui/QApplication> #include <QLabel> #include "widget.h" int main(int argc, char *argv[]) { printf("Inside main\n"); unsigned int loop; printf("argc = %d \n",argc); for(loop=0;loop<argc;loop++) { printf("argv[%d] = %s \n",argc,argv[loop]); } Widget w; w.setFixedSize(200,200); w.show(); return a.exec(); } [B][U]widget.cpp file[/U][/B] #include "widget.h" { } Widget::~Widget() { } [U][B]widget.h file[/B][/U] #ifndef WIDGET_H #define WIDGET_H #include <QtGui/QWidget> { Q_OBJECT public: ~Widget(); }; #endif // WIDGET_HTo copy to clipboard, switch view to plain text mode
Back trace of the above code is attached - file : QApplication_backtrace.txt
I have also attached back trace of qt's example code - framebuffer , file : QtFramebuffer_exampleCode.txt
Your suggestion would be a great help for me..
This is an strace. What about a debugger backtrace?
The strace suggests there is a problem with mapping the framebuffer to memory.
Can you post result for the following command "fbset --info" too, thx.
Hi,
I am trying something similar on a an embedded system, albeit a different one.
How was this resolved, if at all?
I know that this thread is dated, but anything that can be recalled will be helpful.
Cheers,
--
Vis
Bookmarks