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

64-bit machine, 32-bit build environment

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 10, 2018, 11:39
Default 64-bit machine, 32-bit build environment
  #1
New Member
 
Join Date: Jan 2018
Posts: 12
Rep Power: 8
daniel_pramudita is on a distinguished road
Dear all,

I am trying to compile a UDF file (in C) provided in a Fluent tutorial package, but using TUI (not the GUI), as explained in the help documentation.
The reason I chose this way is because the compiling process (building the libudf folder and files) always failed.

I set up the folder structure, then copied and modified the user_nt.udf and Makefile files. I tried to run the nmake procedure (by executing work_dir\libudf\win64\2ddp>nmake in the developer command prompt for VS), but then the following error message was shown:

makefile(50): Error(E33): You need to define the environmental variable FLUENT_INC.
You seem to be working on 64-bit machine, but in a 32-bit build environment.
If you really want to build the UDF for the "ntx86" FLUENT_ARCH, then please set the "FLUENT_ARCH" environment variable to "ntx86" before calling this.
makefile(71): Error(E33): Aborting.
Error(E02): Make execution terminated.


I think it is related to platform compatibility. I am using Fluent 17.2 in Windows 10.
(I installed the Visual Studio 2017, but the nmake was executed by Open Watcom C/C++ NMAKE Clone, probably due to the fact that I had it installed before I installed the VS 2017.)

I don't understand how I can set that FLUENT_ARCH environment variable. I open the Environment Variables from Advanced System Settings, but I cannot find the FLUENT_ARCH entry and have no idea where to find the "ntx86".

Really appreciate if ones can help.

Daniel
daniel_pramudita is offline   Reply With Quote

Old   January 12, 2018, 16:50
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Quote:
Originally Posted by daniel_pramudita View Post
I don't understand how I can set that FLUENT_ARCH environment variable. I open the Environment Variables from Advanced System Settings, but I cannot find the FLUENT_ARCH entry and have no idea where to find the "ntx86".
Probably you cannot find it because it was never created during installation and hence your error. You need to create a env var called FLUENT_ARCH in the Variable name box.

Then in Variable value put ntx86

You can do this as a user var or a system var.

You might need to log out and log in again before the changes have any effect.
LuckyTran is offline   Reply With Quote

Old   January 18, 2018, 13:06
Default
  #3
New Member
 
Join Date: Jan 2018
Posts: 12
Rep Power: 8
daniel_pramudita is on a distinguished road
Hi Tran,

Thank you. I did a fresh start of Windows to get rid of all MS C++ and Visual Studio (so many of them already) and reinstalled the program as you suggested. It worked well.

Daniel
daniel_pramudita 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
Building from Source on Windows using Cygwin64 ericthefatguy SU2 2 May 12, 2015 18:23
CFdesign software for 64 bit machine M_Marivani Autodesk Simulation CFD 0 April 20, 2006 09:50
Fortran programming and 64 bit machine Q Main CFD Forum 4 November 7, 2005 05:18
64 Bit machine P FLUENT 7 June 24, 2005 13:17
PC vs. Workstation Tim Franke Main CFD Forum 5 September 29, 1999 15:01


All times are GMT -4. The time now is 06:01.