Hi Daniel,
thank you for your help. You're right, i have done it the wrong way. I wanted to add the functions step by step, which could only compiled with brlcad after all was finished...
Yes, I have a small question. Can I add Qt libraries on the same way how in a normal qt application (#include <QApplication> + link in the make file)? At this time I am getting compile errors, I will do a new svn checkout. I have changed to many files, maybe after that it will work...
And last but not least, shall I delete previos versions of DM, before I upload a new version to patch tracker?
Btw. Thank you I will take it as a compliment, the most of the code isn't generated. I have writen it :)...
Regards
Mesut
Mesut,
Your patch for the Qt display manager doesn't really fit to BRL-CAD.
Correct me if I'm wrong but it looks like some generated code.
Instead of trying to solve all problems at a time I recommend to go
step by step. Start with the interface:
- Use one of the dm-~.c files as a template and copy it to dm-qt.c
- Rename the functions to qt_~ and remove all the function bodies
from this file.
- Hook your new functions to the display manager as “qt”(?).
- Compile and link BRL-CAD.
- Start mged with qt as display manager. Then you should see
nothing - but it shouldn't crash.
If you succeeded with this we can talk about transferring dm-qt.c to dm-qt.cpp.
And don't hesitate to ask if something isn't clear :)
Daniel
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel
Your patch for the Qt display manager doesn't really fit to BRL-CAD.
Correct me if I'm wrong but it looks like some generated code.
Instead of trying to solve all problems at a time I recommend to go
step by step. Start with the interface:
- Use one of the dm-~.c files as a template and copy it to dm-qt.c
- Rename the functions to qt_~ and remove all the function bodies
from this file.
- Hook your new functions to the display manager as “qt”(?).
- Compile and link BRL-CAD.
- Start mged with qt as display manager. Then you should see
nothing - but it shouldn't crash.
If you succeeded with this we can talk about transferring dm-qt.c to dm-qt.cpp.
And don't hesitate to ask if something isn't clear :)
Daniel
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel
Ihr WEB.DE Postfach immer dabei: die kostenlose WEB.DE Mail App für iPhone und Android. https://produkte.web.de/freemail_mobile_startseite/ |
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel