[Therion] Loch and VTK 9.0.1 (on Macos)

2020-09-11 Thread Xavier Robert
Dear all,

I was trying to upgrade my Therion version, and this morning, the VTK package 
upgraded from version 8.2.0_11 to 9.0.1 (I ‘am still on macosX 10.14, and I am 
upgrading my binaries with Homebrew). I do not know if this is relevant, but it 
also upgraded pcl (1.11.1—>1.11.1_1) and qt (5.15.0—>5.15.1) 

In consequence, Loch building crashes with this output (that was fine with vtk 
8.2) :

./utest
===
All tests passed (47 assertions in 19 test cases)

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ./xtherion
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ./loch
c++ -c -Wall -D_GNU_SOURCE -DLOCH -W -Wall -std=c++11 -DLXMACOSX 
-I/usr/local/lib/wx/include/osx_cocoa-unicode-3.0 -I/usr/local/include/wx-3.0 
-D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__  
-I/usr/local/opt/freetype/include/freetype2 -I/usr/local/include/vtk-9.0 
-Wno-deprecated -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -O2 -o 
lxData.o lxData.cxx
lxData.cxx:541:28: error: no member named 'SetInput' in 'vtkPolyDataNormals'; 
did you mean 'SetOutput'?
  this->scrapWallsNormals->SetInput(this->scrapWalls);
   ^~~~
   SetOutput
/usr/local/include/vtk-9.0/vtkPolyDataAlgorithm.h:54:16: note: 'SetOutput' 
declared here
  virtual void SetOutput(vtkDataObject* d);
   ^
lxData.cxx:554:19: error: no member named 'AddInput' in 'vtkAppendPolyData'
  this->allWalls->AddInput(this->scrapWallsNormals->GetOutput());
  ~~  ^
lxData.cxx:555:19: error: no member named 'AddInput' in 'vtkAppendPolyData'
  this->allWalls->AddInput(this->lrudWalls);
  ~~  ^
lxData.cxx:562:27: error: no member named 'SetInput' in 'vtkTriangleFilter'; 
did you mean 'SetOutput'?
  this->allWallsTriangle->SetInput(this->allWalls->GetOutput());
  ^~~~
  SetOutput
/usr/local/include/vtk-9.0/vtkPolyDataAlgorithm.h:54:16: note: 'SetOutput' 
declared here
  virtual void SetOutput(vtkDataObject* d);
   ^
lxData.cxx:563:25: error: no member named 'SetInput' in 'vtkDepthSortPolyData'; 
did you mean 'SetOutput'?
  this->allWallsSorted->SetInput(this->allWallsTriangle->GetOutput());
^~~~
SetOutput
/usr/local/include/vtk-9.0/vtkPolyDataAlgorithm.h:54:16: note: 'SetOutput' 
declared here
  virtual void SetOutput(vtkDataObject* d);
   ^
lxData.cxx:569:27: error: no member named 'SetInput' in 'vtkStripper'; did you 
mean 'SetOutput'?
  this->allWallsStripped->SetInput(this->allWallsTriangle->GetOutput());
  ^~~~
  SetOutput
/usr/local/include/vtk-9.0/vtkPolyDataAlgorithm.h:54:16: note: 'SetOutput' 
declared here
  virtual void SetOutput(vtkDataObject* d);
   ^
lxData.cxx:576:25: error: no member named 'SetInput' in 'vtkPolyDataNormals'; 
did you mean 'SetOutput'?
  this->surfaceNormals->SetInput(this->surface);
^~~~
SetOutput
/usr/local/include/vtk-9.0/vtkPolyDataAlgorithm.h:54:16: note: 'SetOutput' 
declared here
  virtual void SetOutput(vtkDataObject* d);
   ^
lxData.cxx:584:26: error: no member named 'SetInput' in 'vtkTriangleFilter'; 
did you mean 'SetOutput'?
  this->surfaceTriangle->SetInput(this->surfaceNormals->GetOutput());
 ^~~~
 SetOutput
/usr/local/include/vtk-9.0/vtkPolyDataAlgorithm.h:54:16: note: 'SetOutput' 
declared here
  virtual void SetOutput(vtkDataObject* d);
   ^
lxData.cxx:585:24: error: no member named 'SetInput' in 'vtkDepthSortPolyData'; 
did you mean 'SetOutput'?
  this->surfaceSorted->SetInput(this->surfaceTriangle->GetOutput());
   ^~~~
   SetOutput
/usr/local/include/vtk-9.0/vtkPolyDataAlgorithm.h:54:16: note: 'SetOutput' 
declared here
  virtual void SetOutput(vtkDataObject* d);
   ^
lxData.cxx:611:6: error: no member named 'SetInput' in 'vtkPolyDataWriter'
  w->SetInput(this->allWallsStripped->GetOutput());
  ~  ^
10 errors generated.
make[1]: *** [lxData.o] Error 1
make: *** [loch/loch] Error 2

I imaging that this is due to a new definition of the function 
SetInput/AddInput in the new package VTK?

Xavier___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Error while compiling Therion 5.5.x (proj issue?) on MacosX

2020-09-11 Thread Xavier Robert
Hi,

Thanks a lot for your answers! They help me a lot to find the problem.

You were right, I had a Proj version mismatch because Anaconda3 changed my 
PATH… After removing the link to Anaconda in my PATH, I could compile Therion 
and execute the tests.

Meanwhile, I upgraded all my homebrew binaries among which VTK that is changing 
from version 8.2 to 9.0 (released today…)… and it causes a crash while 
compiling Loch. I will open a new discussion for that.

Xav


> Le 11 sept. 2020 à 11:24, Martin Sluka via Therion  a 
> écrit :
> 
> 10. 9. 2020 v 20:07, Martin Budaj  >:
>> 
>> Hi, this looks like a Proj version mismatch (Proj compiled into Therion 
>> trying to open a database belonging to another version of Proj installed in 
>> the system). Check if Proj command line utilities work (run e.g. "projinfo 
>> EPSG:32634"), check the version and check if the version matches the version 
>> of Proj used in Therion.
>>  
> 
> Today’s successful compilation of last snapshot on MacOSX 10.13.6. 
> 
> Martin S.
> 
> This is part of compilation where is version of proj used. Project is listed 
> in lines 91-218 of compilation log.

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Error while compiling Therion 5.5.x (proj issue?) on MacosX

2020-09-11 Thread Martin Sluka via Therion
10. 9. 2020 v 20:07, Martin Budaj :
> 
> Hi, this looks like a Proj version mismatch (Proj compiled into Therion 
> trying to open a database belonging to another version of Proj installed in 
> the system). Check if Proj command line utilities work (run e.g. "projinfo 
> EPSG:32634"), check the version and check if the version matches the version 
> of Proj used in Therion.
>  

Today’s successful compilation of last snapshot on MacOSX 10.13.6. 

Martin S.

This is part of compilation where is version of proj used. Project is listed in 
lines 91-218 of compilation log.

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion