CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

Compile Paraview and QT 4.6

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   October 17, 2012, 18:15
Default Compile Paraview and QT 4.6
  #1
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 863
Blog Entries: 2
Rep Power: 17
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi all,

trying to compile paraview by my self and get the following error after compiling and running paraview:
Code:
ERROR: In /home/shorty/Projects/ParaView-3.14.1-Source/VTK/GUISupport/Qt/vtkEventQtSlotConnect.cxx, line 68
vtkEventQtSlotConnect (0x8c3b980): Cannot connect NULL objects.


Speicherzugriffsfehler (Speicherabzug geschrieben)

I think its the reason of that warning while configure paraview
Code:
CMake Warning at CMakeLists.txt:110 (MESSAGE):
   Warning: You are using Qt 4.8.1.  Officially supported version is Qt 4.6
or?

Any help would be appreciated
Tobi
Tobi is offline   Reply With Quote

Old   October 18, 2012, 03:47
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,090
Blog Entries: 32
Rep Power: 70
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hi Tobi,

These are old instructions for ParaView 3.10.1, but the trick is the same for 3.14.1: http://www.cfd-online.com/Forums/blo...-qt-4-6-4.html

Best regards,
Bruno
Tobi likes this.
wyldckat is offline   Reply With Quote

Old   October 18, 2012, 06:46
Default
  #3
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 863
Blog Entries: 2
Rep Power: 17
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by wyldckat View Post
Hi Tobi,

These are old instructions for ParaView 3.10.1, but the trick is the same for 3.14.1: http://www.cfd-online.com/Forums/blo...-qt-4-6-4.html

Best regards,
Bruno
Thanks bruno,

I ll try it today evening .)

Tobi
Tobi is offline   Reply With Quote

Old   October 18, 2012, 11:58
Default
  #4
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 863
Blog Entries: 2
Rep Power: 17
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi Bruno,

one question still left.
If I compile paraview, will I destroy my paraview build in third partys?

Thx tobi
Tobi is offline   Reply With Quote

Old   October 18, 2012, 15:12
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,090
Blog Entries: 32
Rep Power: 70
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hi Tobi,

To preserve the old build, all you have to do is edit the file "$WM_PROJECT_DIR/etc/config/paraview.sh" and change the references from 3.12.0 to 3.14.1. Then start a new terminal window/tab (just in case) and you're ready to go!


About the question you sent me in private - you can add those kinds of variables like this:
Code:
./makeParaView -qmake $WM_THIRD_PARTY_DIR/platforms/linux64Gcc44/qt-4.6.4/bin/qmake vtkGL2PSExporter:BOOL=ON
Look at the last block on that very long line
This is in reference to your other thread, more specifically post #5: vector graphic
But from the quote you wrote, I'm guessing that's not what the original writer had in mind, but I could be wrong... from where did you copy that quote?

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   October 18, 2012, 16:49
Default
  #6
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 863
Blog Entries: 2
Rep Power: 17
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by wyldckat View Post
Hi Tobi,

To preserve the old build, all you have to do is edit the file "$WM_PROJECT_DIR/etc/config/paraview.sh" and change the references from 3.12.0 to 3.14.1. Then start a new terminal window/tab (just in case) and you're ready to go!


About the question you sent me in private - you can add those kinds of variables like this:
Code:
./makeParaView -qmake $WM_THIRD_PARTY_DIR/platforms/linux64Gcc44/qt-4.6.4/bin/qmake vtkGL2PSExporter:BOOL=ON
Look at the last block on that very long line
This is in reference to your other thread, more specifically post #5: vector graphic
But from the quote you wrote, I'm guessing that's not what the original writer had in mind, but I could be wrong... from where did you copy that quote?

Best regards,
Bruno

Well one question bruno,

normally you compile paraview with "./makeParaview"
that was all.

Is it possible to build the paraview in the third party with that additional variable? Its not working on my machine :/ can not make

./makeQt qt-4.6.4

Getting errors.
Tobi is offline   Reply With Quote

Old   October 18, 2012, 17:27
Default
  #7
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 863
Blog Entries: 2
Rep Power: 17
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by wyldckat View Post
Hi Tobi,


Code:
./makeParaView -qmake $WM_THIRD_PARTY_DIR/platforms/linux64Gcc44/qt-4.6.4/bin/qmake vtkGL2PSExporter:BOOL=ON

Now I can compile it like you said but if I use the
Code:
vtkGL2PSExporter:BOOL=ON
its not possible to compile it.
Code:
shorty@cfd:~/OpenFOAM/ThirdParty-2.1.x$ ./makeQt qt-4.6.4 > makeQt.log 2>&1 && time ./makeParaView -qmake  ${WM_THIRD_PARTY_DIR}/platforms/$WM_ARCH$WM_COMPILER/qt-4.6.4/bin/qmake vtkGL2PSExporter:BOOL=ON > makePV.log 2>&1

real    0m0.018s
user    0m0.004s
sys    0m0.000s
shorty@cfd:~/OpenFOAM/ThirdParty-2.1.x$
Any suggestions?
Tobi is offline   Reply With Quote

Old   October 18, 2012, 17:48
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,090
Blog Entries: 32
Rep Power: 70
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hi Tobi,

What does the file "makeQt.log" contain?

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   October 19, 2012, 03:02
Default
  #9
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 863
Blog Entries: 2
Rep Power: 17
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by wyldckat View Post
Hi Tobi,

What does the file "makeQt.log" contain?

Best regards,
Bruno
Hi Bruno,

I see you moved the thread.
Well I will have a look to the log file tomorrow evening.
I ll upload the file or maybe I can manage it myself.

Tobi

Last edited by Tobi; October 19, 2012 at 03:59. Reason: my english is too bad ;)
Tobi is offline   Reply With Quote

Old   October 20, 2012, 16:33
Default
  #10
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 863
Blog Entries: 2
Rep Power: 17
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by wyldckat View Post
Hi Tobi,

What does the file "makeQt.log" contain?

Best regards,
Bruno
Hi Bruno,

makeQt.log is okay!
No error.

The makePV.log gives an error of the attribute you told me:
Code:
unknown option/argument: 'vtkGL2PSExporter:BOOL=OFF'

usage: makeParaView [OPTION] [CMAKE-OPTION]
options:
  -rebuild          for repeated builds (-make -install) *use with caution*
  -mesa             with mesa (if not already enabled)
  -mpi              with mpi (if not already enabled)
  -python           with python (if not already enabled)
  -cmake PATH       with the cmake version corresponding to the cmake path given
  -qmake PATH       with the Qt version corresponding to the qmake path given
  -qt               with extra Qt gui support (if not already enabled)
  -qt-VER           with Qt version corresponding to
                        $WM_THIRD_PARTY_DIR/platforms/linux64Gcc/qt-VER/bin/qmake
  -gcc              force g++ instead of the value from $WM_CXX
  -verbose          verbose output in Makefiles
  -version VER      specify an alternative version (current value: 3.12.0)
  -major   VER      specify an alternative major version for special builds
  -mesa-include DIR
                    location of mesa headers (current value: /usr/include/GL)
  -mesa-lib PATH    path to mesa library     (current value: /usr/lib64/libOSMesa.so)
  -python-lib PATH  path to python library   (current value: none)
  -help

The -no-FEATURE option can be disable these features (if not already disabled):
  mesa mpi python qt

CMake options start with a capital letter and contain an '='.
For example,
    makeParaView BUILD_TESTING=ON PARAVIEW_GENERATE_PROXY_DOCUMENTATION=OFF
to add tests and avoid building documentation

For finer control, the build stages can be selected or deselected individually:
  -config    -no-config
  -make      -no-make
  -install   -no-install


* Make and install paraview-3.12.0 located under
      $WM_THIRD_PARTY_DIR/ParaView-3.12.0
  ->  $WM_THIRD_PARTY_DIR/platforms/linux64Gcc/paraview-3.12.0

Any suggestions are appreciate

Tobi
Tobi is offline   Reply With Quote

Old   October 20, 2012, 16:43
Default
  #11
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,090
Blog Entries: 32
Rep Power: 70
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hi Tobi,

Then we need to back-trace to where you go the information about this option! Like I wrote before, I think this option is used at code level, not at build level!

edit: I found this http://www.paraview.org/pipermail/pa...ne/017937.html - you can try and use the "proxy xml definition" for creating a wrapper for this class.

Best regards,
Bruno

Last edited by wyldckat; October 20, 2012 at 16:46. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   October 20, 2012, 16:56
Default
  #12
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 863
Blog Entries: 2
Rep Power: 17
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by wyldckat View Post
Hi Tobi,

Then we need to back-trace to where you go the information about this option! Like I wrote before, I think this option is used at code level, not at build level!

edit: I found this http://www.paraview.org/pipermail/pa...ne/017937.html - you can try and use the "proxy xml definition" for creating a wrapper for this class.

Best regards,
Bruno
Hi bruno,

you have to build your paraview by your self with ccmake and there you can set up the variable. But therefor I can not compile paraview

The info I got from here:

http://www.vtk.org/Bug/view.php?id=1630

as I get from the discription, you are able to save the plots as eps

Tobi
Tobi is offline   Reply With Quote

Old   October 21, 2012, 06:50
Default
  #13
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 863
Blog Entries: 2
Rep Power: 17
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
maybe this would be helpful too!

http://markmail.org/message/crk24ma2g7zeuhrl

Tobi
Tobi is offline   Reply With Quote

Old   October 22, 2012, 08:43
Default
  #14
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,090
Blog Entries: 32
Rep Power: 70
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hi Tobi,

I haven't had time to look into this and I won't have any during the week. Basically you need to either use instead of "vtkGL2PSExporter" for the build options in makeParaView, you'll need to either use "VTK_GL2PS_ON" or "VTK_GL2PS".

The other possibility is that you'll need to hack one or more files in ParaView's VTK folder for this to work.

Good luck!
Bruno
wyldckat is offline   Reply With Quote

Old   October 22, 2012, 15:58
Default
  #15
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,090
Blog Entries: 32
Rep Power: 70
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hi Tobi,

I made a quick search into the files and it seems that the keyword you're looking for is this: VTK_USE_GL2PS

Either one of the following commands should do the trick, although I haven't tested it yet:
  • Using the method I mentioned before:
    Code:
    ./makeParaView -qmake $WM_THIRD_PARTY_DIR/platforms/linux64Gcc44/qt-4.6.4/bin/qmake VTK_USE_GL2PS:BOOL=ON
  • Using the example shown in makeParaView's help:
    Code:
    ./makeParaView -qmake $WM_THIRD_PARTY_DIR/platforms/linux64Gcc44/qt-4.6.4/bin/qmake VTK_USE_GL2PS=ON
But still, this will only make sure it builds with it, but it doesn't mean that ParaView will make it directly available without some additional coding or custom filters!



Good luck!
Bruno
wyldckat is offline   Reply With Quote

Old   October 22, 2012, 18:31
Default
  #16
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 863
Blog Entries: 2
Rep Power: 17
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by wyldckat View Post
Hi Tobi,

I made a quick search into the files and it seems that the keyword you're looking for is this: VTK_USE_GL2PS

Either one of the following commands should do the trick, although I haven't tested it yet:
  • Using the method I mentioned before:
    Code:
    ./makeParaView -qmake $WM_THIRD_PARTY_DIR/platforms/linux64Gcc44/qt-4.6.4/bin/qmake VTK_USE_GL2PS:BOOL=ON
  • Using the example shown in makeParaView's help:
    Code:
    ./makeParaView -qmake $WM_THIRD_PARTY_DIR/platforms/linux64Gcc44/qt-4.6.4/bin/qmake VTK_USE_GL2PS=ON
But still, this will only make sure it builds with it, but it doesn't mean that ParaView will make it directly available without some additional coding or custom filters!



Good luck!
Bruno
Hi Bruno,

I ll have a look at this, this week and give a feedback.
Tobi
Tobi is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 23:16.