how to build a win32 smokeview.exe from the source code

147 views
Skip to first unread message

idlesheep

unread,
May 10, 2011, 11:28:38 AM5/10/11
to FDS and Smokeview Discussions
Hello all!
Can anybody help me?
I want to build a win32 smokeview.exe file on windows system,the
source folder has many subfolders such as background, smokediff,
somkeview, smokezip and etc. So I have a question that which folder
should I compile to get the Smokeview.exe, or them all? I tried to
compile it with intel(R) c++ and fortran compile.

I followed the steps as Smokeview_Build_Notes(http://code.google.com/p/
fds-smv/wiki/Smokeview_Build_Notes) listed.When I cd into the
intel_win_32 directory and run the .\make_smv.bat in command
line,results are as follows:
//////////////////
Intel(R) Visual Fortran Compiler Professional for applications running
on IA-32,Version 11.0.061
copyright (C) 1985-2008 Intel Corporation.All rights reserved.

Setting environment for using Microsoft Visual Studio 2008 x86 tools.

Intel(R) Parallel Studio XE 2011 Update 1
Copyright (C) 1985-2011 Intel Corportation.All rights reserved.
Intel(R) Composer XE 2011 Updata 3 (package 175)
Setting environment for using Microsoft Visual Studio 2008 x86 tools.

Press any key to continue....

////////////////////
How to do next?And can build a win32 smokeview.exe ?

My computer have intel(R) fortran compile 11.0.061,Microsoft Visual
Studio 2008,Intel Parallel Studio XE 2011.
.
Thanks!

Glenn Forney

unread,
May 10, 2011, 12:26:06 PM5/10/11
to FDS and Smokeview Discussions
1. update your repository.
2. cd to SMV\Build\INTEL_WIN_32
3. you will see a file named test.bat
4. run this file. It tests whether you have C, Fortran and the make
utility
5. report back what it outputs

idlesheep

unread,
May 10, 2011, 11:16:54 PM5/10/11
to FDS and Smokeview Discussions
I followed the steps,and results as follows:
***************** setting up fortran environment ********************

Intel(R) Visual Fortran Compiler Professional for applications running
on IA-32,Version 11.0.0.061
Copyright (C) 1985-2008 Intel Corporation.All rights reserved.

Setting environment for using Microsoft Visual Studio 2008 x86 tools.

Press any key to continue....
***************** setting up C environment ***************************
Intel(R) Parallel Studio XE 2011 Update 1
Copyright (C) 1985-2011 Intel Corportation.All rights reserved.
Intel(R) Composer XE 2011 Updata 3 (package 175)
Setting environment for using Microsoft Visual Studio 2008 x86 tools.

Press any key to continue....
***************** testing fortran ***************************
Intel(R) Visual Fortran Compiler Professional for applications running
on IA-32,Version 11.0
Build 20080930 Package ID:w_cprof_p_11.0.061
Copyright (C) 1985-2008 Intel Corporation.All rights reserved.

ifort:command line error:no files specified;for help type "ifort /
help"
Press any key to continue....
***************** testing C **************************
intel(R) C++ Compiler XE for applications running on IA-32,Version
12.0.3.175 Build 20110309
Copyright (C) 1985-2011 Intel Corportation.All rights reserved.
30 DAY EVALUATION LICENSE

icl: NOTE:The evaluation period for this product end on 9-jun-2011
UTC.
icl:command line error:no files specified;for help type "icl /help"
Press any key to continue....
***************** testing make ***********************
Press any key to continue....

//////////////////////////////
As shown above is the outputs. I changed the iclvars.bat' path because
it's not same with the ifortvars.bat;

and for the make:when i changed the command from make to nmake,the
results are as follows:
Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

NMAKE:fatal error U1064:MAKEFILE not found and no target specified
Stop.
Press any key to continue....


Thanks for your attention!

Glenn Forney

unread,
May 11, 2011, 8:02:57 AM5/11/11
to FDS and Smokeview Discussions
nmake does not work. go back to the smokeview build wiki. I left out
instructions on installing the gnu make utility. Install it and try
again. Can you build FDS from the command line?

idlesheep

unread,
May 11, 2011, 11:37:36 AM5/11/11
to FDS and Smokeview Discussions
I can't build FDS from the command line!
I followed the FDS build steps,when I run the make_fds.bat,without any
change...Just display the followed message:

F:\fds\FDS\trunk\FDS_Compilation\intel_win_32>set intelbin="C:\Program
Files\Intel\Compiler\11.0\061\fortran\bin"
F:\fds\FDS\trunk\FDS_Compilation\intel_win_32>call "C:\Program Files
\Intel\Compiler\11.0\061\fortran\bin"\ifortvars ia32

Intel(R) Visual Fortran Compiler Professional for applications
running
on IA-32,Version 11.0.061
copyright (C) 1985-2008 Intel Corporation.All rights reserved.
Setting environment for using Microsoft Visual Studio 2008 x86 tools.
Press any key to continue....



Thanks for your attention!


Glenn Forney

unread,
May 11, 2011, 12:12:27 PM5/11/11
to FDS and Smokeview Discussions
did you install make? open up a command shell and type make

idlesheep

unread,
May 11, 2011, 12:38:55 PM5/11/11
to FDS and Smokeview Discussions
yes,i have installed it.i tried to type make in command line.There's
nothing happened.

Glenn Forney

unread,
May 11, 2011, 12:58:40 PM5/11/11
to FDS and Smokeview Discussions
What did the "computer say" when you typed make? If it said command
not found then you need to figure out where the installer installed
make and add that directory to your path

idlesheep

unread,
May 11, 2011, 1:04:11 PM5/11/11
to FDS and Smokeview Discussions
It said nothing... when i typed make,its said nothing and then give
another command line.
as followed:

C:Documents and Settings\Administrator>make

C:Documents and Settings\Administrator>

Glenn Forney

unread,
May 11, 2011, 1:09:37 PM5/11/11
to FDS and Smokeview Discussions
sounds like gnu make is not installed properly. If you type "make -
help" you should get the following
Find out where make is installed and make sure it is in your path.
You may need to reboot. You may also want to have someone close by
look at this. It is hard to debug these kind of problems long
distance

Usage: make [options] [target] ...
Options:
-b, -m Ignored for compatibility.
-B, --always-make Unconditionally make all targets.
-C DIRECTORY, --directory=DIRECTORY
Change to DIRECTORY before doing
anything.
-d Print lots of debugging information.
--debug[=FLAGS] Print various types of debugging
information.
-e, --environment-overrides
Environment variables override
makefiles.
-f FILE, --file=FILE, --makefile=FILE
Read FILE as a makefile.
-h, --help Print this message and exit.
-i, --ignore-errors Ignore errors from commands.
-I DIRECTORY, --include-dir=DIRECTORY
Search DIRECTORY for included makefiles.
-j [N], --jobs[=N] Allow N jobs at once; infinite jobs with
no arg.
-k, --keep-going Keep going when some targets can't be
made.
-l [N], --load-average[=N], --max-load[=N]
Don't start multiple jobs unless load is
below N.
-L, --check-symlink-times Use the latest mtime between symlinks
and target.
-n, --just-print, --dry-run, --recon
Don't actually run any commands; just
print them.
-o FILE, --old-file=FILE, --assume-old=FILE
Consider FILE to be very old and don't
remake it.
-p, --print-data-base Print make's internal database.
-q, --question Run no commands; exit status says if up
to date.
-r, --no-builtin-rules Disable the built-in implicit rules.
-R, --no-builtin-variables Disable the built-in variable settings.
-s, --silent, --quiet Don't echo commands.
-S, --no-keep-going, --stop
Turns off -k.
-t, --touch Touch targets instead of remaking them.
-v, --version Print the version number of make and
exit.
-w, --print-directory Print the current directory.
--no-print-directory Turn off -w, even if it was turned on
implicitly.
-W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
Consider FILE to be infinitely new.
--warn-undefined-variables Warn when an undefined variable is
referenced.

This program built for i386-pc-mingw32
Report bugs to <bug-...@gnu.org>

idlesheep

unread,
May 12, 2011, 12:22:41 AM5/12/11
to FDS and Smokeview Discussions
I'm sorry,I made a simple mistake.When the gnumake installed i thought
that it would add to the system path automaticly,but it didn't!
When i added the gnumake to the system path,it worked!And I build FDS
successfully.

But when i build the FDS_smv,there are a error.

LINK:fatal error LINK1181:cannot open input file '../../source//../
build/libs/lib_win_intel_32\pthreadVC.lib'
make:***[intel_win_32] error 1181

thanks!
> Report bugs to <bug-m...@gnu.org>
> > > > > > > > > > Studio 2008,Intel Parallel Studio XE 2011....
>
> 阅读更多 »

idlesheep

unread,
May 12, 2011, 1:02:54 AM5/12/11
to FDS and Smokeview Discussions
Finally, I build fds-smv successfully!Thank you very much,Glenn!Thank
you for your carefully guidance!

On 5月12日, 上午1时09分, Glenn Forney <gfor...@gmail.com> wrote:
> Report bugs to <bug-m...@gnu.org>
> > > > > > > > > > Studio 2008,Intel Parallel Studio XE 2011....
>
> 阅读更多 »

Glenn Forney

unread,
May 12, 2011, 10:30:00 PM5/12/11
to FDS and Smokeview Discussions
could you take another look at the wiki on building smokeview and
report back if you see anything missing, ie anything you did to build
smokeview that is not detailed in the wiki. thanks.
> > > > > > > > > > > copyright (C)...
>
> read more »

idlesheep

unread,
May 13, 2011, 4:08:26 AM5/13/11
to FDS and Smokeview Discussions
OK!I think that listed what compilers needed maybe useful.
I have a new question.I want to change the menu and interface to
Chinese,I translate the words in the source code into Chinese,in some
place it shows successfully,but in other place it shows nothing.
How can I solve such problem?

Thanks !
> > > > > > > > > > > > should I compile to get the Smokeview.exe, or them all? I tried to...
>
> 阅读更多 »

Glenn Forney

unread,
May 13, 2011, 10:48:43 PM5/13/11
to FDS and Smokeview Discussions
Unfortunately the library which I use (Glut) to display menus is not
compatible with Unicode (wide) characters. Unicode characters are
required to display Chinese characters. I did a google search but did
not find a solution.

I would suggest as an alternative creating a short document with the
few English phrases that are used in Smokeview (there are not that
many) and providing the Chinese translation .
> > > > > > > > > > > > 4.  run this file.  It...
>
> read more »

idlesheep

unread,
May 16, 2011, 2:19:08 AM5/16/11
to FDS and Smokeview Discussions
Can you explain the steps and how to create it?
> > > > > > > > > > > > and for the make:when i changed...
>
> 阅读更多 »

Glenn Forney

unread,
May 16, 2011, 11:06:52 PM5/16/11
to fds...@googlegroups.com
create what?

2011/5/16 idlesheep <idlesh...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "FDS and Smokeview Discussions" group.
To post to this group, send email to fds...@googlegroups.com.
To unsubscribe from this group, send email to fds-smv+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fds-smv?hl=en.


Glenn Forney

unread,
May 19, 2011, 12:37:00 AM5/19/11
to FDS and Smokeview Discussions
if you are asking about building glut, it would be best to go to
www.opengl.org or use google . On some platforms I use pre-built glut
library provided by OS, on other platforms I use makefile and
instructions provided by glut distribution

On May 16, 11:06 pm, Glenn Forney <gfor...@gmail.com> wrote:
> create what?
>
> 2011/5/16 idlesheep <idlesheep1...@gmail.com>
> ...
>
> read more >>

Glenn Forney

unread,
May 28, 2011, 8:53:38 AM5/28/11
to FDS and Smokeview Discussions
fyi: I have added some capability in Smokeview for displaying
foreign languages. If pinyin is an acceptable way of displaying the
chinese language for you in Smokeview then this may solve your problem
(if I understood the original problem correctly). See the wiki
http://code.google.com/p/fds-smv/wiki/Smokeview_Other_Languages or
contact me for more details.

On May 19, 12:37 am, Glenn Forney <gfor...@gmail.com> wrote:
> if you are asking about building glut, it would be best to go towww.opengl.orgor use google . On some platforms I use pre-built glut
> > > > > > > > > > > > > > > Build 20080930 Package ID:w_cprof_p_11.0.061...
>
> read more >>
Reply all
Reply to author
Forward
0 new messages