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

[OpenFOAM.com] Error build a custom version of Qt 4.6.4 on ubuntu 12.04

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By makayasa

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2016, 06:47
Default Error build a custom version of Qt 4.6.4 on ubuntu 12.04
  #1
New Member
 
adhi makayasa
Join Date: Apr 2015
Posts: 20
Rep Power: 11
makayasa is on a distinguished road
Hi Foamers

after trying several times to compile qt 4.6.4 from https://openfoamwiki.net/index.php/I...M-1.7.1/Ubuntu
I still get an error message like on the attachment

Iam using QMake version 2.01a
Qt version 4.8.1 in /usr/lib/i386-linux-gnu

How do i fix it? Thanks for your help
Attached Files
File Type: gz mkqt.log.gz (16.3 KB, 2 views)
makayasa is offline   Reply With Quote

Old   March 20, 2016, 14:51
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
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
Quick answer: Can you please try installing the packages listed here: http://doc.qt.io/qt-4.8/requirements-x11.html
Namely by running this command:
Code:
sudo apt-get install libfontconfig1-dev libfreetype6-dev libx11-dev libxcursor-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxrandr-dev libxrender-dev
__________________
wyldckat is offline   Reply With Quote

Old   March 23, 2016, 11:18
Default
  #3
New Member
 
adhi makayasa
Join Date: Apr 2015
Posts: 20
Rep Power: 11
makayasa is on a distinguished road
Bruno thanks for your help. Now qt 4.6.4 already installed. But after continuing the next step to the last , I can not run OpenFOAM and also paraview.
Take a look at the attachment.
Attached Files
File Type: gz mkPV.log.gz (5.7 KB, 1 views)
File Type: gz log.simpleFoam.gz (117 Bytes, 1 views)
makayasa is offline   Reply With Quote

Old   March 26, 2016, 10:25
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
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 Makayasa,

Sorry, back when I wrote the instructions on the wiki, I failed to notice an important step. I've fixed the issue on the wiki page, but please do the following steps to solve the problem on your side:
  1. Make sure you have the shell environment for OpenFOAM 1.7.1 activate.
  2. Since you are using the 32-bit installation, please run the following commands:
    Code:
    cd $WM_PROJECT_DIR
    #update rules' files
    wget "https://raw.github.com/OpenFOAM/OpenFOAM-2.1.x/master/wmake/rules/linuxGcc45/c" -O wmake/rules/linuxGcc/c
    wget "https://raw.github.com/OpenFOAM/OpenFOAM-2.1.x/master/wmake/rules/linuxGcc45/c++" -O wmake/rules/linuxGcc/c++
     
    #fix the rules' files
    sed -i -e 's/gcc/\$(WM_CC)/' wmake/rules/linuxGcc/c
    sed -i -e 's/g++/\$(WM_CXX)/' wmake/rules/linuxGcc/c++
    Because this will fix the missing details needed for building OpenFOAM 1.7.1.
  3. Next, we need to clean up the build and then build things again:
    Code:
    #clean up the installation, to avoid contamination
    wcleanAll
    
    # This next command will take a while... somewhere between 30 minutes to 3-6 hours.
    ./Allwmake > make.log 2>&1
     
    #Run it a second time for getting a summary of the installation
    ./Allwmake > make.log 2>&1
As for ParaView, I'll edit this post once I've finished with the tests I'm doing right now in a virtual machine with Ubuntu 12.04 32-bit.


edit: Please try running the following command, for installing Mesa's libGLU development package, which should provide at least the basis for the OpenGL drivers:
Code:
sudo apt-get install libglu1-mesa-dev
Then try again building ParaView, by running:
Code:
cd $WM_THIRD_PARTY_DIR

./makeParaView -qmake ${WM_THIRD_PARTY_DIR}/platforms/$WM_ARCH$WM_COMPILER/qt-4.6.4/bin/qmake > mkPV.log 2>&1
Then please provide again the file "mkPV.log", so that I can double-check if things worked as intended.

Best regards,
Bruno
__________________

Last edited by wyldckat; March 26, 2016 at 12:11. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   March 29, 2016, 10:52
Default
  #5
New Member
 
adhi makayasa
Join Date: Apr 2015
Posts: 20
Rep Power: 11
makayasa is on a distinguished road
Bruno, thank you very much. Now I can run openFOAM and paraview . I am attaching a result of the installation process , please check if there is an error. Happy foaming
Attached Files
File Type: gz make.log.gz (6.4 KB, 1 views)
File Type: gz mkPV.log.gz (97.9 KB, 1 views)
wyldckat likes this.
makayasa is offline   Reply With Quote

Old   April 2, 2016, 18:22
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
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
Quote:
Originally Posted by makayasa View Post
I am attaching a result of the installation process , please check if there is an error.
Quick answer: I've found no errors!
wyldckat is offline   Reply With Quote

Reply


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
[foam-extend.org] error installing foam extend 1.6 in ubuntu 12.04 christos OpenFOAM Installation 1 May 9, 2016 17:20
paraview not working after installing OpenFOAM in Ubuntu 12.04 Jackie Chen OpenFOAM Installation 5 October 9, 2014 06:28
Problems installing OpenFOAM 1.6-ext on Ubuntu 12.04 arashfluid OpenFOAM Installation 3 July 21, 2013 06:36
OpenFOAM-1.6 install cookbook MadsR OpenFOAM Installation 372 November 20, 2010 11:57
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 21:41


All times are GMT -4. The time now is 20:09.