Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building on Windows #8

Open
mottosso opened this issue Sep 10, 2015 · 0 comments
Open

Building on Windows #8

mottosso opened this issue Sep 10, 2015 · 0 comments

Comments

@mottosso
Copy link
Contributor

Posting this here for future reference, as I was unsuccessful in building DICE for Windows at this time.

SYSTEM@ALIENFX>nmake

Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd main\ && ( if not exist Makefile c:\Qt\5.4\msvc2013_64_opengl\bin\qmake.exe C:\
Users\marcus\Dropbox\projects\dice\0.0.2\main\main.pro -spec win32-msvc2013 -o Makefile )
&& "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\nmake.exe" -f Makefile

Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
Copyright (C) Microsoft Corporation.  All rights reserved.

        "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\nmake.exe" -f Makefile.Release

Microsoft (R) Program Maintenance Utility Version 12.00.21005.1
Copyright (C) Microsoft Corporation.  All rights reserved.

        link /NOLOGO /DYNAMICBASE /NXCOMPAT -Wl,-rpath,'$ORIGIN' -Wl,-rpath,'$ORIGIN/third
party/Qt/lib' -Wl,-rpath,'$ORIGIN/thirdparty/Python/lib' -Wl,-rpath,'$ORIGIN/thirdparty/vt
k/lib' /INCREMENTAL:NO /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsof
t.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*
' processorArchitecture='*'" /MANIFEST:embed /OUT:.\DICE.exe @C:\Users\marcus\AppData\Loca
l\Temp\nm7912.tmp
LINK : warning LNK4044: unrecognized option '/Wl,-rpath,'$ORIGIN''; ignored
LINK : warning LNK4044: unrecognized option '/Wl,-rpath,'$ORIGIN/thirdparty/Qt/lib''; ignored
LINK : warning LNK4044: unrecognized option '/Wl,-rpath,'$ORIGIN/thirdparty/Python/lib'';ignored
LINK : warning LNK4044: unrecognized option '/Wl,-rpath,'$ORIGIN/thirdparty/vtk/lib''; ignored
LINK : fatal error LNK1181: cannot open input file 'python3.4m.lib'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\link.EXE"' : return code '0x49d'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

SYSTEM@ALIENFX>

A few modifications were done to get this far,

  1. qmake didn't correctly point to it's own bin directory, instead appended _opengl to the end of it. Assuming because it used to have this path in previous versions of Qt.
  2. Both PyFOAM and VTK were not built and available, so I removed it from the .pro file.

More trouble

  1. VTK depends on Open MPI 1.6, which is unsupported by MSVC2013, the latest supported version of Qt
  2. OpenFOAM isn't available for Windows
  3. OpenFOAM is a hard dependency, I got past it by mocking the whole package. Not sure of it's affect on the rest of the GUI.

Linux only

Running from Python directly uncovered a hard-coded dependency on OSX/Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant