Hi Daniel,
I have done the Steps as you had advised me. I have described it in my Reports and uploaded the changes to the patch tracker.
I have a small question about Tk and TCL. If we use Qt, we dont need them for the qt-dm?
At this week I will port the dm-qt.c file to cpp. After that I will implement the first logic. Begining with opening a window and closing it. After that I will look at the eventprocessing. Have you some advices?
Thank you. Regards
Mesut
From: Daniel Roßberg <danielmrossb...@googlemail.com>
Date: 2012/6/10
Subject: Re: [brlcad-devel] CMake: Qt display manager
To: BRL-CAD Developer Mailing List <brlcad-devel@lists.sourceforge.net>
The error is caused by the BRL-CAD redefinition of the add_library
macro. A work around is to create some UNKNOWN and IMPORTED file in
src/libdm. For a real solution you should talk with Clifford about
this issue.
Daniel
2012/6/9 "Mesut Özdogan" <m.oezdo...@web.de>
>
> Hi Daniel,
> I have done most of the steps. Know I am trying to link libdm with Qt. After I add find_package(Qt4) I am getting following error (in linux and windows):
>
> CMake Error at CMakeLists.txt:456 (_message):
> Attempting to ignore non-existent file UNKNOWN, in directory
> /home/kane/Development/brlcad/src/libdm
> Call Stack (most recent call first):
> misc/CMake/BRLCAD_CMakeFiles.cmake:128 (message)
> CMakeLists.txt:375 (CMAKEFILES)
> /usr/share/cmake-2.8/Modules/FindQt4.cmake:374 (ADD_LIBRARY)
> /usr/share/cmake-2.8/Modules/FindQt4.cmake:906 (_QT4_ADJUST_LIB_VARS)
> src/libdm/CMakeLists.txt:16 (FIND_PACKAGE)
>
> I have tested a self writen cmake file with qt and it works, so it is not a problem on my machine. I have searched a whole day for solution, but not found anything. Maybe you or someone else can help me?
>
> Thanks & Regards
>
> Mesut
> Gesendet: Dienstag, 05. Juni 2012 um 12:39 Uhr
> Von: "Daniel Roßberg" <danielmrossb...@googlemail.com>
> An: "BRL-CAD Developer Mailing List" <brlcad-devel@lists.sourceforge.net>
> Betreff: Re: [brlcad-devel] Qt display manager
> 2012/6/5 "Mesut Özdogan" <m.oezdo...@web.de>
> >
> > 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...
>
> I recommend to start with the task described in my mail i.e. dm-qt.c.
>
> > 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...
>
> There are several instructions around there about how to create Qt
> programs and libraries with CMake. That means you should use BRL-CAD
> CMake to build your module. However, this will be the third step, not
> the first one.
>
> > And last but not least, shall I delete previos versions of DM, before I
> > upload a new version to patch tracker?
>
> This isn't necessary. Just add the file to the existing tracker entry.
>
> > Btw. Thank you I will take it as a compliment, the most of the code isn't
> > generated. I have writen it :)...
>
> OK :)
>
> > Regards
> >
> > Mesut
>
> Daniel
>
> > 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
> >
> >
> >
> > 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
> >
>
> ------------------------------------------------------------------------------
> 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
>
Date: 2012/6/10
Subject: Re: [brlcad-devel] CMake: Qt display manager
To: BRL-CAD Developer Mailing List <brlcad-devel@lists.sourceforge.net>
The error is caused by the BRL-CAD redefinition of the add_library
macro. A work around is to create some UNKNOWN and IMPORTED file in
src/libdm. For a real solution you should talk with Clifford about
this issue.
Daniel
2012/6/9 "Mesut Özdogan" <m.oezdo...@web.de>
>
> Hi Daniel,
> I have done most of the steps. Know I am trying to link libdm with Qt. After I add find_package(Qt4) I am getting following error (in linux and windows):
>
> CMake Error at CMakeLists.txt:456 (_message):
> Attempting to ignore non-existent file UNKNOWN, in directory
> /home/kane/Development/brlcad/src/libdm
> Call Stack (most recent call first):
> misc/CMake/BRLCAD_CMakeFiles.cmake:128 (message)
> CMakeLists.txt:375 (CMAKEFILES)
> /usr/share/cmake-2.8/Modules/FindQt4.cmake:374 (ADD_LIBRARY)
> /usr/share/cmake-2.8/Modules/FindQt4.cmake:906 (_QT4_ADJUST_LIB_VARS)
> src/libdm/CMakeLists.txt:16 (FIND_PACKAGE)
>
> I have tested a self writen cmake file with qt and it works, so it is not a problem on my machine. I have searched a whole day for solution, but not found anything. Maybe you or someone else can help me?
>
> Thanks & Regards
>
> Mesut
> Gesendet: Dienstag, 05. Juni 2012 um 12:39 Uhr
> Von: "Daniel Roßberg" <danielmrossb...@googlemail.com>
> An: "BRL-CAD Developer Mailing List" <brlcad-devel@lists.sourceforge.net>
> Betreff: Re: [brlcad-devel] Qt display manager
> 2012/6/5 "Mesut Özdogan" <m.oezdo...@web.de>
> >
> > 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...
>
> I recommend to start with the task described in my mail i.e. dm-qt.c.
>
> > 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...
>
> There are several instructions around there about how to create Qt
> programs and libraries with CMake. That means you should use BRL-CAD
> CMake to build your module. However, this will be the third step, not
> the first one.
>
> > And last but not least, shall I delete previos versions of DM, before I
> > upload a new version to patch tracker?
>
> This isn't necessary. Just add the file to the existing tracker entry.
>
> > Btw. Thank you I will take it as a compliment, the most of the code isn't
> > generated. I have writen it :)...
>
> OK :)
>
> > Regards
> >
> > Mesut
>
> Daniel
>
> > 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
> >
> >
> >
> > 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
> >
>
> ------------------------------------------------------------------------------
> 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
>
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