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

checking the system setup and Qt version

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 31, 2010, 05:06
Default checking the system setup and Qt version
  #1
Member
 
Vivek Gupta
Join Date: May 2010
Posts: 36
Rep Power: 7
vivek070176 is on a distinguished road
1. To check your system setup, execute the foamSystemCheck script in the bin/ directory of the OpenFOAM installation.......

I have a doubt that since i want to check my system setup before unpacking the files, then where is this bin/directory in the OpenFOAM installation??.....and how should i execute it??...


2. To check the version of Qt before unpacking the files, when i type qmake --version in the terminal ,then it shows :-
bash: qmake: command not found

How can it be resolved?


I know these question are very naivee but please anybody help me since this is my first simulation software i am working on.
vivek070176 is offline   Reply With Quote

Old   May 31, 2010, 08:24
Default
  #2
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
hi
its seems you are newbie in openFoam but dont be scared just unpack zip file , then you will see in openfoam folder , bin directory then you will find foamSystemCheck in it!
then in terminal first go to that directory then type like this
./foamSystemCheck
now its executed.
there is a cookbook for openFoam install here
http://hvirvel.dk/OF/
nimasam is offline   Reply With Quote

Old   May 31, 2010, 10:30
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Vivek,
Quote:
Originally Posted by vivek070176 View Post
1. To check your system setup, execute the foamSystemCheck script in the bin/ directory of the OpenFOAM installation.......

I have a doubt that since i want to check my system setup before unpacking the files, then where is this bin/directory in the OpenFOAM installation??.....and how should i execute it??...
OK, assuming your home folder is named vivek and you install OpenFOAM in the usual folder, foamSystemCheck should be in this folder (assuming OpenFOAM 1.5 like in your other thread):
Code:
/home/vivek/OpenFOAM/OpenFOAM-1.5/bin/
Quote:
Originally Posted by vivek070176 View Post
2. To check the version of Qt before unpacking the files, when i type qmake --version in the terminal ,then it shows :-
bash: qmake: command not found

How can it be resolved?
Install Qt using the software manager in your Linux box. Without you telling us which Linux distribution and version you are using, it becomes a bit more difficult to orient you through the installation stages. Also, any particular reason for using OpenFOAM 1.5 or can it be OpenFOAM 1.6 or 1.6.x?

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 1, 2010, 04:10
Default
  #4
Member
 
Vivek Gupta
Join Date: May 2010
Posts: 36
Rep Power: 7
vivek070176 is on a distinguished road
Respected bruno

I am using open foam 1.6 on opensuse 10.3. Can you please help in installing and compiling the Qt for paraview??


Vivek
vivek070176 is offline   Reply With Quote

Old   June 1, 2010, 06:47
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Vivek,

In the link of my signature you can access to a blog post I made that has a list of threads that help with various installation issues. One of them is this:
Quote:
On how to build Paraview and Qt 4.3.5, including on how to use the cmake that comes with the package ThirdParty-1.6.linuxGcc.gtgz: New user needs help
Read the thread, the steps are described there in detail.

Good luck,
Bruno
wyldckat is offline   Reply With Quote

Old   June 1, 2010, 08:53
Default
  #6
Member
 
Vivek Gupta
Join Date: May 2010
Posts: 36
Rep Power: 7
vivek070176 is on a distinguished road
sir

1. When i type qmake --version in the terminal,it says
bash:qmake:command not found

how can i check my version??


2. after this, i downloaded qt-x11-opensource-src-4.3.5 in the third party since i am installing openfoam 1.6 on open suse 10.3 and then

./makeQt

then it asks me type yes to accept this licence offer and when i type yes

it shows an error:


Creating qmake. Please wait...
g++ -c -o project.o -m64 -pipe -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igen

3.5/include/QtCore/../../src/corelib/tools/qstringlist.h:48,
from /home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.
3.5/include/QtCore/qstringlist.h:1,
from project.h:47,
from project.cpp:44:
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h: In function ‘uint qstrlen(const char*)’:
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h:68: error: ‘strlen’ was not declared in this s
cope
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h: In function ‘int qstrncmp(const char*, const
char*, uint)’:
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h:87: error: ‘strncmp’ was not declared in this
scope
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h: In function ‘bool operator==(const QByteArray
&, const QByteArray&)’:
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h:459: error: ‘memcmp’ was not declared in this
scope
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h: In function ‘bool operator==(const QByteArray
&, const char*)’:
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h:461: error: ‘strcmp’ was not declared in this
scope
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h: In function ‘bool operator==(const char*, con
st QByteArray&)’:
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h:463: error: ‘strcmp’ was not declared in this
scope
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h: In function ‘bool operator!=(const QByteArray
&, const char*)’:
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h:467: error: ‘strcmp’ was not declared in this
scope
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h: In function ‘bool operator!=(const char*, con
st QByteArray&)’:
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h:469: error: ‘strcmp’ was not declared in this
scope
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h: In function ‘bool operator<(const QByteArray&
, const QByteArray&)’:
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h:471: error: ‘strcmp’ was not declared in this
scope
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h: In function ‘bool operator<=(const QByteArray
&, const QByteArray&)’:
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h:477: error: ‘strcmp’ was not declared in this
scope
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h: In function ‘bool operator>(const QByteArray&
, const QByteArray&)’:
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h:483: error: ‘strcmp’ was not declared in this
scope
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h: In function ‘bool operator>=(const QByteArray
&, const QByteArray&)’:
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h:489: error: ‘strcmp’ was not declared in this
scope
In file included from /home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.
3.5/include/QtCore/qtextstream.h:1,
from project.h:48,
from project.cpp:44:
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/io/qtextstream.h: At global scope:
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/io/qtextstream.h:103: error: expected `)' before ‘*’ token
In file included from /home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.
3.5/include/QtCore/qfile.h:1,
from option.h:50,
from project.cpp:46:
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/io/qfile.h:146: error: ‘FILE’ has not been declared
In file included from project.cpp:47:
cachekeys.h: In function ‘void qmakeFreeCacheClear(void*)’:
cachekeys.h:175: error: ‘free’ was not declared in this scope
project.cpp: In function ‘void qmake_error_msg(const QString&)’:
project.cpp:584: error: ‘stderr’ was not declared in this scope
project.cpp:585: error: ‘fprintf’ was not declared in this scope
project.cpp: In member function ‘void QMakeProjectEnv::execute(const QMap<QStrin
g, QStringList>&)’:
project.cpp:712: error: ‘strdup’ was not declared in this scope
project.cpp:712: error: ‘putenv’ was not declared in this scope
project.cpp: In destructor ‘QMakeProjectEnv::~QMakeProjectEnv()’:
project.cpp:723: error: ‘strdup’ was not declared in this scope
project.cpp:723: error: ‘putenv’ was not declared in this scope
project.cpp: In member function ‘bool QMakeProject:arse(const QString&, QMap<Q
String, QStringList>&, int)’:
project.cpp:802: error: ‘stderr’ was not declared in this scope
project.cpp:802: error: ‘fprintf’ was not declared in this scope
project.cpp:965: error: ‘stderr’ was not declared in this scope
project.cpp:966: error: ‘fprintf’ was not declared in this scope
project.cpp:970: error: ‘stderr’ was not declared in this scope
project.cpp:971: error: ‘fprintf’ was not declared in this scope
project.cpp:974: error: ‘stderr’ was not declared in this scope
project.cpp:975: error: ‘fprintf’ was not declared in this scope
project.cpp:987: error: ‘stderr’ was not declared in this scope
project.cpp:988: error: ‘fprintf’ was not declared in this scope
project.cpp:1028: error: ‘stderr’ was not declared in this scope
project.cpp:1030: error: ‘fprintf’ was not declared in this scope
project.cpp:1034: error: ‘stderr’ was not declared in this scope
project.cpp:1035: error: ‘fprintf’ was not declared in this scope
project.cpp:1104: error: ‘stderr’ was not declared in this scope
project.cpp:1104: error: ‘fprintf’ was not declared in this scope
project.cpp:1177: error: ‘stdout’ was not declared in this scope
project.cpp:1177: error: ‘fprintf’ was not declared in this scope
project.cpp:1180: error: ‘stdout’ was not declared in this scope
project.cpp:1180: error: ‘fprintf’ was not declared in this scope
project.cpp: In member function ‘bool QMakeProject::read(const QString&, QMap<QS
tring, QStringList>&)’:
project.cpp:1331: error: ‘strcmp’ was not declared in this scope
project.cpp:1333: error: ‘stdin’ was not declared in this scope
project.cpp: In member function ‘bool QMakeProject::read(uchar)’:
project.cpp:1434: error: ‘stderr’ was not declared in this scope
project.cpp:1434: error: ‘fprintf’ was not declared in this scope
project.cpp:1456: error: ‘stderr’ was not declared in this scope
project.cpp:1457: error: ‘fprintf’ was not declared in this scope
project.cpp:1472: error: ‘stderr’ was not declared in this scope
project.cpp:1472: error: ‘fprintf’ was not declared in this scope
project.cpp:1504: error: ‘stderr’ was not declared in this scope
project.cpp:1504: error: ‘fprintf’ was not declared in this scope
project.cpp:1545: error: ‘stderr’ was not declared in this scope
project.cpp:1545: error: ‘fprintf’ was not declared in this scope
project.cpp: In member function ‘bool QMakeProject::isActiveConfig(const QString
&, bool, QMap<QString, QStringList>*)’:
project.cpp:1634: error: ‘malloc’ was not declared in this scope
project.cpp:1637: error: ‘readlink’ was not declared in this scope
project.cpp: In member function ‘QMakeProject::IncludeStatus QMakeProject::doPro
jectInclude(QString, uchar, QMap<QString, QStringList>&)’:
project.cpp:1784: error: ‘stderr’ was not declared in this scope
project.cpp:1786: error: ‘fprintf’ was not declared in this scope
project.cpp:1795: error: ‘stderr’ was not declared in this scope
project.cpp:1795: error: ‘fprintf’ was not declared in this scope
project.cpp:1811: error: ‘stderr’ was not declared in this scope
project.cpp:1812: error: ‘fprintf’ was not declared in this scope
project.cpp: In member function ‘QStringList QMakeProject::doProjectExpand(QStri
ng, QList<QStringList>, QMap<QString, QStringList>&)’:
project.cpp:1910: error: ‘stderr’ was not declared in this scope
project.cpp:1911: error: ‘fprintf’ was not declared in this scope
project.cpp:1929: error: ‘stderr’ was not declared in this scope
project.cpp:1931: error: ‘fprintf’ was not declared in this scope
project.cpp:1937: error: ‘stderr’ was not declared in this scope
project.cpp:1939: error: ‘fprintf’ was not declared in this scope
project.cpp:1962: error: ‘stderr’ was not declared in this scope
project.cpp:1963: error: ‘fprintf’ was not declared in this scope
project.cpp:1976: error: ‘stderr’ was not declared in this scope
project.cpp:1977: error: ‘fprintf’ was not declared in this scope
project.cpp:2000: error: ‘stderr’ was not declared in this scope
project.cpp:2001: error: ‘fprintf’ was not declared in this scope
project.cpp:2022: error: ‘stderr’ was not declared in this scope
project.cpp:2023: error: ‘fprintf’ was not declared in this scope
project.cpp:2033: error: ‘stderr’ was not declared in this scope
project.cpp:2034: error: ‘fprintf’ was not declared in this scope
project.cpp:2053: error: ‘stderr’ was not declared in this scope
project.cpp:2054: error: ‘fprintf’ was not declared in this scope
project.cpp:2064: error: ‘stderr’ was not declared in this scope
project.cpp:2065: error: ‘fprintf’ was not declared in this scope
project.cpp:2081: error: ‘stderr’ was not declared in this scope
project.cpp:2082: error: ‘fprintf’ was not declared in this scope
project.cpp:2103: error: ‘stderr’ was not declared in this scope
project.cpp:2104: error: ‘fprintf’ was not declared in this scope
project.cpp:2114: error: ‘stderr’ was not declared in this scope
project.cpp:2115: error: ‘fprintf’ was not declared in this scope
project.cpp:2139: error: ‘stderr’ was not declared in this scope
project.cpp:2140: error: ‘fprintf’ was not declared in this scope
project.cpp:2153: error: ‘stderr’ was not declared in this scope
project.cpp:2154: error: ‘fprintf’ was not declared in this scope
project.cpp:2158: error: ‘FILE’ was not declared in this scope
project.cpp:2158: error: ‘proc’ was not declared in this scope
project.cpp:2158: error: ‘popen’ was not declared in this scope
project.cpp:2163: error: ‘feof’ was not declared in this scope
project.cpp:2164: error: ‘fread’ was not declared in this scope
project.cpp:2179: error: ‘stderr’ was not declared in this scope
project.cpp:2180: error: ‘fprintf’ was not declared in this scope
project.cpp:2213: error: ‘memmove’ was not declared in this scope
project.cpp:2239: error: ‘stderr’ was not declared in this scope
project.cpp:2240: error: ‘fprintf’ was not declared in this scope
project.cpp:2278: error: ‘stderr’ was not declared in this scope
project.cpp:2279: error: ‘fprintf’ was not declared in this scope
project.cpp:2281: error: ‘stderr’ was not declared in this scope
project.cpp:2282: error: ‘fprintf’ was not declared in this scope
project.cpp:2287: error: ‘stderr’ was not declared in this scope
project.cpp:2288: error: ‘fprintf’ was not declared in this scope
project.cpp:2291: error: ‘stdin’ was not declared in this scope
project.cpp:2299: error: ‘stderr’ was not declared in this scope
project.cpp:2300: error: ‘fprintf’ was not declared in this scope
project.cpp:2323: error: ‘stderr’ was not declared in this scope
project.cpp:2325: error: ‘fprintf’ was not declared in this scope
project.cpp: In member function ‘bool QMakeProject::doProjectTest(QString, QList
<QStringList>, QMap<QString, QStringList>&)’:
project.cpp:2368: error: ‘stderr’ was not declared in this scope
project.cpp:2371: error: ‘fprintf’ was not declared in this scope
project.cpp:2392: error: ‘stderr’ was not declared in this scope
project.cpp:2393: error: ‘fprintf’ was not declared in this scope
project.cpp:2412: error: ‘stderr’ was not declared in this scope
project.cpp:2413: error: ‘fprintf’ was not declared in this scope
project.cpp:2455: error: ‘stderr’ was not declared in this scope
project.cpp:2456: error: ‘fprintf’ was not declared in this scope
project.cpp:2462: error: ‘stderr’ was not declared in this scope
project.cpp:2463: error: ‘fprintf’ was not declared in this scope
project.cpp:2481: error: ‘stderr’ was not declared in this scope
project.cpp:2482: error: ‘fprintf’ was not declared in this scope
project.cpp:2494: error: ‘stderr’ was not declared in this scope
project.cpp:2495: error: ‘fprintf’ was not declared in this scope
project.cpp:2504: error: ‘stderr’ was not declared in this scope
project.cpp:2505: error: ‘fprintf’ was not declared in this scope
project.cpp:2514: error: ‘stderr’ was not declared in this scope
project.cpp:2515: error: ‘fprintf’ was not declared in this scope
project.cpp:2529: error: ‘stderr’ was not declared in this scope
project.cpp:2530: error: ‘fprintf’ was not declared in this scope
project.cpp:2547: error: ‘stderr’ was not declared in this scope
project.cpp:2548: error: ‘fprintf’ was not declared in this scope
project.cpp:2558: error: ‘system’ was not declared in this scope
project.cpp:2562: error: ‘stderr’ was not declared in this scope
project.cpp:2563: error: ‘fprintf’ was not declared in this scope
project.cpp:2577: error: ‘stderr’ was not declared in this scope
project.cpp:2578: error: ‘fprintf’ was not declared in this scope
project.cpp:2584: error: ‘stderr’ was not declared in this scope
project.cpp:2585: error: ‘fprintf’ was not declared in this scope
project.cpp:2589: error: ‘stderr’ was not declared in this scope
project.cpp:2590: error: ‘fprintf’ was not declared in this scope
project.cpp:2597: error: ‘stderr’ was not declared in this scope
project.cpp:2599: error: ‘fprintf’ was not declared in this scope
project.cpp:2608: error: ‘stderr’ was not declared in this scope
project.cpp:2609: error: ‘fprintf’ was not declared in this scope
project.cpp:2633: error: ‘stderr’ was not declared in this scope
project.cpp:2634: error: ‘fprintf’ was not declared in this scope
project.cpp:2665: error: ‘stderr’ was not declared in this scope
project.cpp:2666: error: ‘fprintf’ was not declared in this scope
project.cpp:2681: error: ‘stderr’ was not declared in this scope
project.cpp:2682: error: ‘fprintf’ was not declared in this scope
project.cpp:2688: error: ‘stderr’ was not declared in this scope
project.cpp:2689: error: ‘fprintf’ was not declared in this scope
project.cpp:2709: error: ‘stderr’ was not declared in this scope
project.cpp:2710: error: ‘fprintf’ was not declared in this scope
project.cpp:2748: error: ‘printf’ was not declared in this scope
project.cpp:2753: error: ‘exit’ was not declared in this scope
project.cpp:2761: error: ‘stderr’ was not declared in this scope
project.cpp:2762: error: ‘fprintf’ was not declared in this scope
project.cpp:2772: error: ‘stderr’ was not declared in this scope
project.cpp:2773: error: ‘fprintf’ was not declared in this scope
project.cpp:2777: error: ‘stderr’ was not declared in this scope
project.cpp:2777: error: ‘fprintf’ was not declared in this scope
project.cpp:2782: error: ‘exit’ was not declared in this scope
project.cpp:2800: error: ‘stderr’ was not declared in this scope
project.cpp:2801: error: ‘fprintf’ was not declared in this scope
project.cpp: In member function ‘QStringList& QMakeProject::values(const QString &, QMap<QString, QStringList>&)’:
project.cpp:3164: error: aggregate ‘utsname name’ has incomplete type and cannot be defined
project.cpp:3165: error: ‘uname’ was not declared in this scope
gmake: *** [project.o] Error 1
Building on 4 cores
make: *** No targets specified and no makefile found. Stop.

real 0m0.002s
user 0m0.004s
sys 0m0.000s
make: *** No rule to make target `install'. Stop.
Finished building Qt-4.3.5





HOW CAN IT BE RESOLVED??
vivek070176 is offline   Reply With Quote

Old   June 1, 2010, 09:06
Default
  #7
Member
 
Vivek Gupta
Join Date: May 2010
Posts: 36
Rep Power: 7
vivek070176 is on a distinguished road
Respected Bruno

1. while compiling paraview 3.6.1 using

cd $WM_THIRD_PARTY_DIR
rm -rf paraview-3.6.1/platforms
makeParaView


error comes after i type makeParaView

bash:makeParaView:command not found

so, then i typed ./makeParaView, then it shows an error

cfd@linux-bw7o:~/OpenFOAM/ThirdParty-1.6> ./makeParaView
which: no qmake in (/home/cfd/OpenFOAM/ThirdParty-1.6/openmpi-1.3.3/platforms/linux64GccDPOpt/bin:/home/cfd/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin:/home/cfd/OpenFOAM/cfd-1.6/applications/bin/linux64GccDPOpt:/home/cfd/OpenFOAM/site/1.6/bin/linux64GccDPOpt:/home/cfd/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt:/home/cfd/OpenFOAM/OpenFOAM-1.6/wmake:/home/cfd/OpenFOAM/OpenFOAM-1.6/bin:/opt/kde3/bin:/home/cfd/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin)
*** Error: cannot find qmake either at $QMAKE_PATH or in current $PATH



HOW CAN IT BE RESOLVED??.....PLEASE HELP ME!!


2. TO COMPILE PARAVIEW WITH ALOCAL VERSION OF QT.

The user should then compile ParaView using the local version of Qt by executing makeParaView with the -qmake option, giving the full path of the newly built qmake as an argument:

makeParaView -qmake <path_to_qmake>


what is the path to newly bulit qmake??....where can it possibly be???..


SINCE I AM VERY NEW TO THIS SOFTWARE ,PLEASE HELP ME!!....


Regards
Vivek
vivek070176 is offline   Reply With Quote

Old   June 1, 2010, 09:06
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Vivek,
Quote:
Originally Posted by vivek070176 View Post
1. When i type qmake --version in the terminal,it says
bash:qmake:command not found

how can i check my version??
Since Qt isn't installed yet, you have no version of Qt installed!

Quote:
Originally Posted by vivek070176 View Post
2. after this, i downloaded qt-x11-opensource-src-4.3.5 in the third party since i am installing openfoam 1.6 on open suse 10.3 and then

./makeQt

then it asks me type yes to accept this licence offer and when i type yes

it shows an error:


Creating qmake. Please wait...
g++ -c -o project.o -m64 -pipe -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igen

3.5/include/QtCore/../../src/corelib/tools/qstringlist.h:48,
from /home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.
3.5/include/QtCore/qstringlist.h:1,
from project.h:47,
from project.cpp:44:
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h: In function ‘uint qstrlen(const char*)’:
/home/cfd/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/include/QtCore/../
../src/corelib/tools/qbytearray.h:68: error: ‘strlen’ was not declared in this scope

(...)

HOW CAN IT BE RESOLVED??
It seems that you didn't unpack all of the ThirdParty binary packages.
Lets check two things:
  1. Lets check whether the OpenFOAM environment is working:
    Code:
    echo $WM_THIRD_PARTY_DIR
  2. Lets check which version of gcc is running:
    Code:
    gcc -v
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 1, 2010, 09:08
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by vivek070176 View Post
1. while compiling paraview 3.6.1 using

cd $WM_THIRD_PARTY_DIR
rm -rf paraview-3.6.1/platforms
makeParaView


error comes after i type makeParaView
Don't try to build ParaView until Qt is properly built!
wyldckat is offline   Reply With Quote

Old   June 1, 2010, 09:11
Default
  #10
Member
 
Vivek Gupta
Join Date: May 2010
Posts: 36
Rep Power: 7
vivek070176 is on a distinguished road
Respected bruno

cfd@linux-bw7o:~/OpenFOAM> echo $WM_THIRD_PARTY_DIR
/home/cfd/OpenFOAM/ThirdParty-1.6
cfd@linux-bw7o:~/OpenFOAM> gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --enable-languages=c,c++ --with-pkgversion=OpenFOAM --enable-__cxa_atexit --enable-libstdcxx-allocator=new --with-system-zlib --prefix=/home/dm2/henry/OpenFOAM/ThirdParty/gcc-4.3.3/platforms/linux64 --with-mpfr=/home/dm2/henry/OpenFOAM/ThirdParty/mpfr-2.4.1/platforms/linux64 --with-gmp=/home/dm2/henry/OpenFOAM/ThirdParty/gmp-4.2.4/platforms/linux64
Thread model: posix
gcc version 4.3.3 (OpenFOAM)
cfd@linux-bw7o:~/OpenFOAM>
vivek070176 is offline   Reply With Quote

Old   June 1, 2010, 09:14
Default
  #11
Member
 
Vivek Gupta
Join Date: May 2010
Posts: 36
Rep Power: 7
vivek070176 is on a distinguished road
respected bruno

I havent installed the optional binary package for third party.....is it fine??
vivek070176 is offline   Reply With Quote

Old   June 1, 2010, 09:22
Default
  #12
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
OK, you will need to install the development tools of openSUSE:
Quote:
Originally Posted by http://albertopassalacqua.com/?p=532
Then try again to build Qt.
wyldckat is offline   Reply With Quote

Old   June 1, 2010, 09:54
Default
  #13
Member
 
Vivek Gupta
Join Date: May 2010
Posts: 36
Rep Power: 7
vivek070176 is on a distinguished road
respected sir
compiling paraview with a local version of Qt
The user should then compile ParaView using the local version of Qt by executing makeParaView with the -qmake option, giving the full path of the newly built qmake as an argument:

makeParaView -qmake <path_to_qmake>

WHAT IS THE PATH TO QMAKE??...WHERE IT CAN POSSIBLY BE??
vivek070176 is offline   Reply With Quote

Old   June 1, 2010, 10:02
Default
  #14
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by vivek070176 View Post
respected sir
compiling paraview with a local version of Qt
The user should then compile ParaView using the local version of Qt by executing makeParaView with the -qmake option, giving the full path of the newly built qmake as an argument:

makeParaView -qmake <path_to_qmake>

WHAT IS THE PATH TO QMAKE??...WHERE IT CAN POSSIBLY BE??
Vivek, qmake is part of Qt, so if Qt isn't firstly built properly, then you can't use it with ParaView!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 1, 2010, 10:06
Default
  #15
Member
 
Vivek Gupta
Join Date: May 2010
Posts: 36
Rep Power: 7
vivek070176 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Vivek, qmake is part of Qt, so if Qt isn't firstly built properly, then you can't use it with ParaView!

Best regards,
Bruno
sir now qt -4.3.5 is properly built in my system ,,,that is why i am asking how to compile paraview with a local version of Qt??
vivek070176 is offline   Reply With Quote

Old   June 1, 2010, 10:17
Default
  #16
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by vivek070176 View Post
sir now qt -4.3.5 is properly built in my system ,,,that is why i am asking how to compile paraview with a local version of Qt??
Ah, OK, I didn't understand that before. The binary qmake should be here:
Code:
$WM_THIRD_PARTY_DIR/qt-x11-opensource-src-4.3.5/platforms/$WM_OPTIONS/bin/
wyldckat is offline   Reply With Quote

Old   June 1, 2010, 10:41
Default
  #17
Member
 
Vivek Gupta
Join Date: May 2010
Posts: 36
Rep Power: 7
vivek070176 is on a distinguished road
i think i have done everything but still parafoam is not working ...it shows an error:


cfd@linux-bw7o:~/OpenFOAM/cfd-1.6/run/tutorials/incompressible/icoFoam/cavity> paraFoam
created temporary 'cavity.OpenFOAM'
/home/cfd/OpenFOAM/OpenFOAM-1.6/bin/paraFoam: line 129: paraview: command not found


WHY???.....PLEASE HELP!!!
vivek070176 is offline   Reply With Quote

Old   June 1, 2010, 10:46
Default
  #18
Member
 
Vivek Gupta
Join Date: May 2010
Posts: 36
Rep Power: 7
vivek070176 is on a distinguished road
Quote:
Originally Posted by vivek070176 View Post
i think i have done everything but still parafoam is not working ...it shows an error:


cfd@linux-bw7o:~/OpenFOAM/cfd-1.6/run/tutorials/incompressible/icoFoam/cavity> paraFoam
created temporary 'cavity.OpenFOAM'
/home/cfd/OpenFOAM/OpenFOAM-1.6/bin/paraFoam: line 129: paraview: command not found


WHY???.....PLEASE HELP!!!
BUT while doing
The PV3FoamReader module is an OpenFOAM utility that can be compiled in the usual manner as follows:

cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
./Allwclean
./Allwmake


i got some error:::

- Check for working C compiler: /home/cfd/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/gcc
-- Check for working C compiler: /home/cfd/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /home/cfd/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/c++
-- Check for working CXX compiler: /home/cfd/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/bin/c++ -- works
-- Loading ParaView CMake commands
-- Loading ParaView CMake commands - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Found Qt-Version 4.3.1
-- Configuring done
-- Generating done
-- Build files have been written to: /home/cfd/OpenFOAM/OpenFOAM-1.6/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/Make/linux64GccDPOpt
+ make
[ 8%] Generating qrc_PV3FoamReader.cxx
[ 16%] Generating moc_PV3FoamReaderPluginImplementation.cxx
Scanning dependencies of target PV3FoamReader
[ 25%] Building CXX object CMakeFiles/PV3FoamReader.dir/moc_PV3FoamReaderPluginImplementation.o
[ 33%] Building CXX object CMakeFiles/PV3FoamReader.dir/PV3FoamReaderPluginImplementation.o
[ 41%] Building CXX object CMakeFiles/PV3FoamReader.dir/qrc_PV3FoamReader.o
Linking CXX shared library /home/cfd/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libPV3FoamReader.so
/usr/bin/ld: cannot find -lpqComponents
collect2: ld returned 1 exit status
make[2]: *** [/home/cfd/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libPV3FoamReader.so] Error 1
make[1]: *** [CMakeFiles/PV3FoamReader.dir/all] Error 2
make: *** [all] Error 2



THESE ARE SOME OF THE END LINES...
vivek070176 is offline   Reply With Quote

Old   June 1, 2010, 10:54
Default
  #19
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Have you checked if qmake is working? Try this:
Code:
$WM_THIRD_PARTY_DIR/qt-x11-opensource-src-4.3.5/platforms/$WM_OPTIONS/bin/qmake --version
How did you run the makeParaView command? I suspect you ran like this:
Code:
./makeParaView -qmake $WM_THIRD_PARTY_DIR/qt-x11-opensource-src-4.3.5/platforms/$WM_OPTIONS/bin/
But you must run like so:
Code:
./makeParaView -qmake $WM_THIRD_PARTY_DIR/qt-x11-opensource-src-4.3.5/platforms/$WM_OPTIONS/bin/qmake
Actually, so you can post the output from the makeParaView command, please run it like this:
Code:
./makeParaView -qmake $WM_THIRD_PARTY_DIR/qt-x11-opensource-src-4.3.5/platforms/$WM_OPTIONS/bin/qmake > buildPV.log 2>&1
It won't show anything, but the file buildPV.log will have what you use to see on screen. At the end of building ParaView, if it still doesn't work, please attach the buildPV.log file here.
wyldckat is offline   Reply With Quote

Old   June 1, 2010, 11:13
Default
  #20
Member
 
Vivek Gupta
Join Date: May 2010
Posts: 36
Rep Power: 7
vivek070176 is on a distinguished road
WHEN I USE
./makeParaView -qmake $WM_THIRD_PARTY_DIR/qt-x11-opensource-src-4.3.5/platforms/$WM_OPTIONS/bin/qmake > buildPV.log 2>&1

cfd@linux-bw7o:~/OpenFOAM/ThirdParty-1.6> ./makeParaView -qmake $WM_THIRD_PARTY_DIR/qt-x11-opensource-src-4.3.5/platforms/$WM_OPTIONS/bin/qmake > buildPV.log2>&1
Warning: VTK will require CMake 2.6.3 starting July 19th 2009. Please update your CMake and this message will go away.
WARNING: This project requires version 2.6 of CMake. You are running version 2.4.7.

CMake Error: Cannot find source file "/home/cfd/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linux64Gcc/Plugins/PointSprite/Rendering/vtk1DTransferFunction.cxx"

Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx
CMake Error: CMake failed to properly look up cmSourceFile: vtk1DTransferFunction.cxx
make: *** No targets specified and no makefile found. Stop.

real 0m0.002s
user 0m0.000s
sys 0m0.000s
make: *** No rule to make target `HTMLDocumentation'. Stop.



NOW HOW CAN I UPDATE MY CMake???
vivek070176 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 03:38.