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

OpenFOAM 2.2.2 on a server (no X)

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2013, 09:39
Default OpenFOAM 2.2.2 on a server (no X)
  #1
Aco
New Member
 
Aleksandar Popadić
Join Date: Oct 2013
Posts: 4
Rep Power: 13
Aco is on a distinguished road
Hi,
I'm having trouble compiling OpenFOAM and ParaView on a mchine with no Qt and X. I want to set OpenFOAM and ParaView on the server and access the results via ParaView remotely.
I'm following the instructions here: http://www.openfoam.org/download/source.php
OpenFOAM builds OK. The problem arises when trying to compile ParaView. In $WM_THIRD_PARTY_DIR/makeParaView I set withQT=false. It then doesn't build the gui support. The problem arises when it starts to build TestingDemo. Here's the output:
Code:
Scanning dependencies of target TestingDemo
[ 86%] Building CXX object Qt/Testing/Examples/CMakeFiles/TestingDemo.dir/TestingDemo.cxx.o
[ 86%] Building CXX object Qt/Testing/Examples/CMakeFiles/TestingDemo.dir/moc_TestingDemo.cxx.o
Linking CXX executable ../../../bin/TestingDemo
[ 86%] Built target TestingDemo
[ 86%] Building CXX object Qt/Widgets/CMakeFiles/pqWidgets.dir/pqHelpWindow.cxx.o
/temp/saso/OpenFOAM/ThirdParty-2.2.2/ParaView-3.12.0/Qt/Widgets/pqHelpWindow.cxx:36:23: fatal error: QHelpEngine: No such file or directory
compilation terminated.
make[2]: *** [Qt/Widgets/CMakeFiles/pqWidgets.dir/pqHelpWindow.cxx.o] Error 1
make[1]: *** [Qt/Widgets/CMakeFiles/pqWidgets.dir/all] Error 2
make: *** [all] Error 2
    ---
    Installation complete for paraview-3.12.0
    Set environment variables:

        export ParaView_DIR=/temp/saso//OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc/paraview-3.12.0
        export PATH=$ParaView_DIR/bin:$PATH
        export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-3.12
    ---

Done
It's trying to access things which aren't being compiled.
What am I to do?

Thanks,
Sasha
Aco is offline   Reply With Quote

Old   October 23, 2013, 11:17
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi Sasha,

for the GUI I think PV needs the QT libraries.
You can compile it by yourself and set the path to it.

I would use the source code of the official homepage or the binaries.

Regards
Tobi

Last edited by Tobi; October 24, 2013 at 13:34.
Tobi is offline   Reply With Quote

Old   October 23, 2013, 12:28
Default
  #3
Aco
New Member
 
Aleksandar Popadić
Join Date: Oct 2013
Posts: 4
Rep Power: 13
Aco is on a distinguished road
Quote:
Originally Posted by Tobi View Post
for the GUI I think PV needs the QT libraries.
You can compile it by yourself and set the path to it.
That's the thing. I don't want to compile the GUI on the server. I'll use the GUI on the local machine.

Regards,
Sasha
Aco is offline   Reply With Quote

Old   October 23, 2013, 13:15
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,

so you would compile PV on the server use the GUI on your local machine?

Why dont you compile PV with QT on your local machine ? (thats the way I do)
Tobi is offline   Reply With Quote

Old   October 23, 2013, 13:31
Default
  #5
Aco
New Member
 
Aleksandar Popadić
Join Date: Oct 2013
Posts: 4
Rep Power: 13
Aco is on a distinguished road
I'd compile PV on both (remote and local) and run it as server/client. If I'd compile only on local then I'd have to copy OpenFOAM files back and forth all the time to view the results.

Regards,
Sasha
Aco is offline   Reply With Quote

Old   October 24, 2013, 13:34
Default
  #6
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi Sasha,

if you solve this problem please let me know how to do it.
Tobi is offline   Reply With Quote

Old   October 26, 2013, 15:56
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

I haven't done this in a long time (since 1.6.x). And I know I saw a report on the bug tracker about this... ah, here we go: http://www.openfoam.org/mantisbt/view.php?id=793 (edit: changes necessary are shown in the "Steps To Reproduce" section)

I'm going to try and have a go at this today or tomorrow and I'll report back.

Best regards,
Bruno
__________________

Last edited by wyldckat; October 26, 2013 at 15:57. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   October 27, 2013, 05:11
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Report part 1:
  • I've tested on a virtual machine with Ubuntu 12.04 i686 and used the following settings at the end of the file "etc/tools/ParaViewFunctions":
    Code:
            addCMakeVariable  "VTK_OPENGL_HAS_OSMESA=ON"
            //addCMakeVariable  "OSMESA_INCLUDE_DIR=$MESA_INCLUDE"
            //addCMakeVariable  "OSMESA_LIBRARY=$MESA_LIBRARY"
    
            addCMakeVariable  "PARAVIEW_BUILD_QT_GUI=OFF"
            //addCMakeVariable  "OPENGL_INCLUDE_DIR=/usr/include/GL"
            addCMakeVariable  "OPENGL_gl_LIBRARY="
            //addCMakeVariable  "OPENGL_glu_LIBRARY=/usr/lib64/lib/libGLU.so"
            addCMakeVariable  "VTK_USE_X=OFF"
    This way CMake did the effort of finding the necessary libraries, although the entry "OPENGL_gl_LIBRARY" must be defined as empty, as per indication here: http://vtk.org/Bug/view.php?id=12620
  • I used the following command:
    Code:
    ./makeParaView -mesa-lib /usr/lib/i386-linux-gnu/libOSMesa.so -mesa-include /usr/include/GL -no-qt > make.log 2>&1
    This way I kept a record of the build process inside the file "make.log".
I'll edit this post once I have finished building OpenFOAM 2.2.2 and tested the reported bug at http://www.openfoam.org/mantisbt/view.php?id=793

------------------------------------

Report part 2:
Follow the instructions on my comment on the bug report - http://www.openfoam.org/mantisbt/view.php?id=793 - and you're good to go!
Tobi and Aco like this.
__________________

Last edited by wyldckat; October 27, 2013 at 06:54. Reason: see "Report part 2:"
wyldckat is offline   Reply With Quote

Old   October 28, 2013, 10:09
Default
  #9
Aco
New Member
 
Aleksandar Popadić
Join Date: Oct 2013
Posts: 4
Rep Power: 13
Aco is on a distinguished road
Thank you for this Bruno.

Regards,
Sasha
Aco is offline   Reply With Quote

Reply

Tags
no qt, paraview, server


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory protection in OpenFOAM / combinig with FORTRAN botp OpenFOAM Programming & Development 2 February 15, 2016 13:25
OpenFOAM Foundation Releases OpenFOAM® Version 2.1.1 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 May 31, 2012 10:07
Critical errors during OpenFoam installation in OpenSuse 11.0 amscosta OpenFOAM 5 May 1, 2009 15:06
Summer School on Numerical Modelling and OpenFOAM hjasak OpenFOAM 5 October 12, 2008 14:14
CFD Online Server Load Jonas Larsson Main CFD Forum 0 March 13, 2001 15:29


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