Tetgen plugin compile for windows

Discussion about building and installing Elmer
Post Reply
Ed81
Posts: 1
Joined: 05 Oct 2015, 11:12
Antispam: Yes

Tetgen plugin compile for windows

Post by Ed81 »

Hello All,

I'm trying to compile the tetgen plugin but i'm running into problems.

I'm not a programmer so please be patient with me.

I have downloaded and installed Qt5 and visual studio express 2015.

Qmake seems to work but when I run nmake I get the following error.

Code: Select all

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

        cd plugin\ && ( if not exist Makefile C:\Qt\5.4\msvc2013_64\bin\qmake.ex
e C:\tetgen_plugin\plugin\plugin.pro -o Makefile ) && "C:\Program Files (x86)\Mi
crosoft Visual Studio 14.0\VC\BIN\nmake.exe" -f Makefile

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

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

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

        cd testapp\ && ( if not exist Makefile C:\Qt\5.4\msvc2013_64\bin\qmake.e
xe C:\tetgen_plugin\testapp\testapp.pro -o Makefile ) && "C:\Program Files (x86)
\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe" -f Makefile

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

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

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

        link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:CONSOLE "
/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' versio
n='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture
='*'" /MANIFEST:embed /OUT:release\testmain.exe @C:\Users\EDEF0D~1.SCU\AppData\L
ocal\Temp\nm3FC3.tmp
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) publ
ic: __thiscall QMessageLogger::QMessageLogger(char const *,int,char const *)" (_
_imp_??0QMessageLogger@@QAE@PBDH0@Z) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) publ
ic: void __cdecl QMessageLogger::fatal(char const *,...)const " (__imp_?fatal@QM
essageLogger@@QBAXPBDZZ) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) publ
ic: __thiscall QByteArray::~QByteArray(void)" (__imp_??1QByteArray@@QAE@XZ) refe
renced in function _main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) publ
ic: char const * __thiscall QByteArray::constData(void)const " (__imp_?constData
@QByteArray@@QBEPBDXZ) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) publ
ic: __thiscall QString::~QString(void)" (__imp_??1QString@@QAE@XZ) referenced in
 function _main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) publ
ic: class QByteArray __thiscall QString::toLocal8Bit(void)const " (__imp_?toLoca
l8Bit@QString@@QBE?AVQByteArray@@XZ) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) priv
ate: static struct QTypedArrayData<unsigned short> * __cdecl QString::fromAscii_
helper(char const *,int)" (__imp_?fromAscii_helper@QString@@CAPAU?$QTypedArrayDa
ta@G@@PBDH@Z) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) publ
ic: __thiscall QCoreApplication::QCoreApplication(int &,char * *,int)" (__imp_??
0QCoreApplication@@QAE@AAHPAPADH@Z) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) publ
ic: virtual __thiscall QCoreApplication::~QCoreApplication(void)" (__imp_??1QCor
eApplication@@UAE@XZ) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) publ
ic: __thiscall QLibrary::QLibrary(class QString const &,class QObject *)" (__imp
_??0QLibrary@@QAE@ABVQString@@PAVQObject@@@Z) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) publ
ic: virtual __thiscall QLibrary::~QLibrary(void)" (__imp_??1QLibrary@@UAE@XZ) re
ferenced in function _main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) publ
ic: void (__cdecl*__thiscall QLibrary::resolve(char const *))(void)" (__imp_?res
olve@QLibrary@@QAEP6AXXZPBD@Z) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) publ
ic: bool __thiscall QLibrary::load(void)" (__imp_?load@QLibrary@@QAE_NXZ) refere
nced in function _main
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) publ
ic: class QString __thiscall QLibrary::errorString(void)const " (__imp_?errorStr
ing@QLibrary@@QBE?AVQString@@XZ) referenced in function _main
main.obj : error LNK2019: unresolved external symbol "public: bool __thiscall te
tgenio::load_poly(char *)" (?load_poly@tetgenio@@QAE_NPAD@Z) referenced in funct
ion _main
C:\Qt\5.4\msvc2013_64\lib\Qt5Gui.lib : warning LNK4272: library machine type 'x6
4' conflicts with target machine type 'X86'
C:\Qt\5.4\msvc2013_64\lib\Qt5Core.lib : warning LNK4272: library machine type 'x
64' conflicts with target machine type 'X86'
release\testmain.exe : fatal error LNK1120: 15 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0
\VC\BIN\link.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

C:\tetgen_plugin>
Please push me in the correct direction.

Thanks Ed
Post Reply