|
From: Matthias G. <mat...@gm...> - 2011-10-05 13:56:58
|
Dear Frank, Dear list. Thanks Frank for your answer and for fixing the errors and thanks also to Jonas for his off-list answer. And thanks to all OpenDAFF developers, you're doing a great job! On Sun, Oct 2, 2011 at 20:02, Frank Wefers <Fra...@ak...> wrote: [...] >> - Missing CPU detection >> >> Makefile.Linux, line 41: >> CXX_FLAGS := -Wall -march=i686 >> > This was something written quick and fast, without thinking about other > platforms. We changed it so -mtune=generic which determines the best > platform optimizations automatically. I don't know much about this, but will it really be the "best optimizations"? Wouldn't "-mtune=native" (or the same thing with -march) give better optimizations? Anyway, for now I'm not really interested in the best possible optimization, I just want to get it to work. [...] I tried it again after the most recent changes in the dev branch (r134): Compilation of the library works now without problems. Compilation of the DAFFTool also works smoothly. And now it doesn't crash when I run "dafftool info ...", that's great! Old DAFF files produce an error (as expected): Error: File format version unsupported It would be nice, however, to see which version the file actually has, is this possible? The compilation of the DAFFViewer is still not working. At least I managed to install libvtk version 5.4.2, so the requirements should be fulfilled. BTW, the Debian package is called libvtk5-dev, not libvtk-dev. In utils/DAFFViewer/Makefile, I had to add /usr/include/vtk-5.4 to the INCLUDE_DIR. Then there is an error: [...]/3rdparty/FXVTK2/src/FXVTK2Directivity.cpp|105| error: no matching function for call to ‘vtkCellArray::InsertNextCell(int, int [3])’ /usr/include/vtk-5.4/vtkCellArray.h|292| note: candidates are: vtkIdType vtkCellArray::InsertNextCell(vtkCell*) /usr/include/vtk-5.4/vtkCellArray.h|235| note: vtkIdType vtkCellArray::InsertNextCell(vtkIdType, const vtkIdType*) /usr/include/vtk-5.4/vtkCellArray.h|253| note: vtkIdType vtkCellArray::InsertNextCell(vtkIdList*) /usr/include/vtk-5.4/vtkCellArray.h|271| note: vtkIdType vtkCellArray::InsertNextCell(int) So I tried it with libvtk-5.6 which is available in Debian testing (wheezy), but this produces the same error. Sadly, libvtk-5.2 is not available in Debian. I could install version 5.2 from source, but maybe there is an easier solution? I also tried the "solution" of removing the offending lines. Afterwards, I was able to compile and run the program, I could also open DAFF files, but there was no display (except the axes) in the 3D view. But still, everything else seemed to work. cheers, Matthias |