Editing User:Mesut/Reports

From BRL-CAD

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
= Report Week 6 =
+
= Report I =
The cmake errors has solved by adding UNKNOWN and IMPORTED files in cmake files.<br>
 
I have added dm-qt.c in libdm and mged, dm-qt.h in include. dm-qt.c in libdm contains the empty functions for the display manager. The dm-qt.c file in mged connects the display manager with mged. In CMakeLists.txt (root/libdm/mged) I have added a option for qt and included the added files for compiling. In dm.h, dm-generic.c and attach.c i have added macros for dm-qt. BRL-CAD will compile with Strict=off.
 
<br><br>
 
Now it is possible to attach a new dm with the command:
 
<source lang="dos">attach qt</source>
 
After attaching a qt window I have gotten a memory leak. Through implementing the Qm_dm_init() function the problem get solved and attaching will cause no error and nothing happens.<br><br><br>
 
 
 
= Report Week 5 =
 
I have used the functions in dm_X.c and deleted all function bodies and renamed them to qt_function. In dm-generic.c I have changed X_open to qt_open for testing. I have to implement a cmake macro for qt, add it to dm-generic.c and remove X_ changes.
 
 
After that I have tried to built BRLCAD. Through Warnings I couldn't compile it. So I have changed to Un-Strict Mode in cmake and successfully compiled libdm.
 
 
 
In the next step I have tried to link Qt with BRLCAD. After I added only find_package in CMakeLists.txt I have gotten following error:
 
<source lang="dos">
 
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)
 
</source>
 
<br><br>
 
 
 
The CMake file with definition:
 
<source lang="dos">
 
# Qt library
 
FIND_PACKAGE(Qt4)
 
if(QT4_INSTALLED)
 
  option(BRLCAD_ENABLE_QT "Use QT." OFF)
 
endif
 
 
 
if(BRLCAD_ENABLE_QT)
 
  CONFIG_H_APPEND(BRLCAD "#define HAVE_QT 1\n") 
 
  # Qt library include
 
  include(${QT_INCLUDES})
 
  include(${QT_USE_FILE})
 
  add_definitions(${QT_DEFINITIONS})
 
 
 
  # Qt link used libraries, core and gui is linked by default
 
  #target_link_libraries(core ${QT_LIBRARIES})
 
  #target_link_libraries(gui ${QT_LIBRARIES})
 
endif</source><br><br>
 
= Report Week 4 =
 
I have tested many approaches for the Display Manager and tried to change the default Qt Application structure to encapsulate it in the qt_open() function. So every Qt display manager will work as a own application.
 
 
 
The main goal is to get a working structure of the C++ Display Manager Class  with the dm Structure in "dm.h".
 
 
 
 
<br><br><br>
 
= Report Week 3 =
 
I started with the structure of the Qt Display Manager. I have realized, that it is not possible to use the OO approach directly. The function pointers in the structure "dm" can't be used for pointing on member functions (methods). <br>
 
So I decided to encapsulate a drawing class and instantiate it as a global variable in the qt_dm.cpp. The functions are used as interfaces to this class. <br><br><br>
 
 
 
= Report Week 2 =
 
I have built BRL-CAD successfully on Linux and Windows.<br>
 
 
 
I have released two Patches in this week:<br><br>
 
- Refactor and manage libbn tolerance uses by providing an interface default (e.g., an init macro) and making everyone use that where it is hardcoded to 0.0005 presently.<br><br>
 
 
 
-I have added a relative float check (following to: http://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/) and fixed some FIXME section with it. I am not certain about it. If the algorithm is suitable for brlcad, i could change the rest of vmath.h.<br><br>
 
 
 
On both I am waiting for Feedback.
 
 
 
= Report Week 1 =
 
 
I have built BRL-CAD from svn on ubuntu (12.04). <br>
 
I have built BRL-CAD from svn on ubuntu (12.04). <br>
 
I have installed and built all depencies on Windows, but I get following build errors (only a few of them, the errors repeating):<br>
 
I have installed and built all depencies on Windows, but I get following build errors (only a few of them, the errors repeating):<br>

Please note that all contributions to BRL-CAD may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BRL-CAD:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)