Home › Forum › SOFA › Building SOFA › [SOLVED] Build SOFA with MSVC 11.0 and Qt 4.8.5 (64-bit)
Tagged: Windows
- This topic has 15 replies, 3 voices, and was last updated 9 years, 3 months ago by Marc.
-
AuthorPosts
-
10 August 2015 at 05:06 #3461JoBlocked
Hi!
I have some problems to build SOFA and I’m not familiar with software.
So, would anyone explain what I should do with these problems?
I followed your web site’s instructions to install SOFA and I generated sofa.sln successfully. After then I opened it using visual studio 2012 and attempted to build it, but failed with errors.
Here is error messages.
================================================================
Error 1 error MSB6006: “cmd.exe” exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets 172 5 Qwt
Error 1030 error MSB6006: “cmd.exe” exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets 172 5 SofaGuiQt
Error 1033 error C1083: Cannot open include file: ‘ui_GUI.h’: No such file or directory c:\users\kyungmin jo\desktop\sofa 설치파일\sofa\applications\sofa\gui\qt\RealGUI.h 28 1 SofaGuiMain
Error 1034 error MSB6006: “cmd.exe” exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets 172 5 SofaModeler
Error 1042 error C2059: syntax error : ‘?’ C:\Users\kyungmin Jo\Desktop\SOFA 설치파일\sofa\applications\projects\runSofa\Main.cpp 228 1 runSofa
Error 1043 error C1083: Cannot open include file: ‘ui_PluginManager.h’: No such file or directory (C:\Users\kyungmin Jo\Desktop\SOFA 설치파일\sofa\applications\projects\Modeler\exec\Main.cpp) C:\Users\kyungmin Jo\Desktop\SOFA 설치파일\sofa\applications\sofa\gui\qt\SofaPluginManager.h 28 1 Modeler
Error 1052 error LNK1104: cannot open file ‘..\..\..\lib\SofaGuiMain_1_0d.lib’ C:\Users\kyungmin Jo\Documents\GitHub\sofa\applications\tutorials\mixedPendulum\LINK MixedPendulum
Error 1053 error LNK1104: cannot open file ‘..\..\..\lib\SofaGuiMain_1_0d.lib’ C:\Users\kyungmin Jo\Documents\GitHub\sofa\applications\tutorials\oneTetrahedron\LINK OneTetrahedron
Error 1054 error LNK1104: cannot open file ‘..\..\..\lib\SofaGuiMain_1_0d.lib’ C:\Users\kyungmin Jo\Documents\GitHub\sofa\applications\tutorials\oneParticle\LINK OneParticle
Error 1055 error LNK1104: cannot open file ‘..\..\..\lib\SofaGuiMain_1_0d.lib’ C:\Users\kyungmin Jo\Documents\GitHub\sofa\applications\tutorials\compositeObject\LINK CompositeObject
1056 IntelliSense: command-line error: invalid macro definition: -DQT_DLL c:\Users\kyungmin Jo\Desktop\SOFA 설치파일\sofa\applications\projects\runSofa\Main.cpp 1 1 runSofa
=========================================================================================So, if anyone can guide me in detail that will be very much appreciated.
Thank you in advance.
10 August 2015 at 06:29 #3462Alex BilgerBlockedHi,
I’m not under windows, so I will not be able to help you.
However, it seems there is a problem with your Qt installation.
What version do you use?
Can you check that the file ‘ui_GUI.h’ is somewhere in the build directory?
How did you install Qt?10 August 2015 at 12:08 #3463MarcBlockedBesides, I would advise using ASCII-only files paths, I’m not quite sure everything in Sofa can handle other characters.
(Sorry, this has nothing to do with your issue; this is just a remark.)
11 August 2015 at 04:20 #3464JoBlockedThank you for answering.
I downloaded qt4.8.6 from QT website(http://qt-project.org/downloads) and Qt4.8.5(64-bit) for Microsoft Visual Studio 2012 from SOFA website. (I have windows7 64bit and visual studio 2012.) After installing QT4.8.6, qt4.8.5 unziped files were combined with QT installation folder.
That’s all I did with QT.
Is there anything wrong or missing?
If so, please give me some advice.11 August 2015 at 09:27 #3465MarcBlockedThe errors say that the file
ui_GUI.h
is not found. This file should be generated during the build; can you tell us if you can find it it the build directory? (On my system, it’s in<build_dir>/applications/sofa/gui/qt/ui_GUI.h
)Besides:
- You don’t need to both install Qt and download the Qt archive from the website.
- The Qt archive we provide should be extracted in the Sofa source tree, not in the Qt installation directory
I don’t know if this is related to your issue, but I can’t exclude it. Personally, I would uninstall Qt if I don’t need it, and manually remove the installation directory to get rid of the files from the archive.
12 August 2015 at 04:24 #3466JoBlocked‘ui_GUI.h’ file does not exit in my system, however, error messages were changed after I followed your advice about QT.
Here are new error messages.
===========================================================================
Error 2 error C2146: syntax error : missing ‘)’ before identifier ‘and’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\framework\sofa\helper\init.cpp 85 1 SofaHelper
Error 3 error C2065: ‘and’ : undeclared identifier C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\framework\sofa\helper\init.cpp 85 1 SofaHelper
Error 4 error C2143: syntax error : missing ‘;’ before ‘!’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\framework\sofa\helper\init.cpp 85 1 SofaHelper
Error 5 error C2059: syntax error : ‘)’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\framework\sofa\helper\init.cpp 85 1 SofaHelper
Error 6 error C2143: syntax error : missing ‘;’ before ‘sofa::helper::printLibraryNotCleanedUpWarning’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\framework\sofa\helper\init.cpp 86 1 SofaHelper
Error 126 error C2146: syntax error : missing ‘)’ before identifier ‘and’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\framework\sofa\defaulttype\init.cpp 71 1 SofaDefaultType
Error 127 error C2065: ‘and’ : undeclared identifier C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\framework\sofa\defaulttype\init.cpp 71 1 SofaDefaultType
Error 128 error C2143: syntax error : missing ‘;’ before ‘!’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\framework\sofa\defaulttype\init.cpp 71 1 SofaDefaultType
Error 129 error C2059: syntax error : ‘)’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\framework\sofa\defaulttype\init.cpp 71 1 SofaDefaultType
Error 130 error C2143: syntax error : missing ‘;’ before ‘sofa::helper::printLibraryNotCleanedUpWarning’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\framework\sofa\defaulttype\init.cpp 72 1 SofaDefaultType
Error 133 error C2146: syntax error : missing ‘)’ before identifier ‘and’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\framework\sofa\core\init.cpp 72 1 SofaCore
Error 134 error C2065: ‘and’ : undeclared identifier C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\framework\sofa\core\init.cpp 72 1 SofaCore
Error 135 error C2143: syntax error : missing ‘;’ before ‘!’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\framework\sofa\core\init.cpp 72 1 SofaCore
Error 136 error C2059: syntax error : ‘)’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\framework\sofa\core\init.cpp 72 1 SofaCore
Error 137 error C2143: syntax error : missing ‘;’ before ‘sofa::helper::printLibraryNotCleanedUpWarning’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\framework\sofa\core\init.cpp 73 1 SofaCore
Error 159 error C2146: syntax error : missing ‘)’ before identifier ‘and’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\modules\sofa\simulation\common\init.cpp 75 1 SofaSimulationCommon
Error 160 error C2065: ‘and’ : undeclared identifier C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\modules\sofa\simulation\common\init.cpp 75 1 SofaSimulationCommon
Error 161 error C2143: syntax error : missing ‘;’ before ‘!’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\modules\sofa\simulation\common\init.cpp 75 1 SofaSimulationCommon
Error 162 error C2059: syntax error : ‘)’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\modules\sofa\simulation\common\init.cpp 75 1 SofaSimulationCommon
Error 163 error C2143: syntax error : missing ‘;’ before ‘sofa::helper::printLibraryNotCleanedUpWarning’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\modules\sofa\simulation\common\init.cpp 76 1 SofaSimulationCommon
Error 216 error C2146: syntax error : missing ‘)’ before identifier ‘and’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\modules\sofa\simulation\graph\init.cpp 75 1 SofaSimulationGraph
Error 217 error C2065: ‘and’ : undeclared identifier C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\modules\sofa\simulation\graph\init.cpp 75 1 SofaSimulationGraph
Error 218 error C2143: syntax error : missing ‘;’ before ‘!’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\modules\sofa\simulation\graph\init.cpp 75 1 SofaSimulationGraph
Error 219 error C2059: syntax error : ‘)’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\modules\sofa\simulation\graph\init.cpp 75 1 SofaSimulationGraph
Error 220 error C2143: syntax error : missing ‘;’ before ‘sofa::helper::printLibraryNotCleanedUpWarning’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\modules\sofa\simulation\graph\init.cpp 76 1 SofaSimulationGraph
Error 222 error C2146: syntax error : missing ‘)’ before identifier ‘and’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\modules\sofa\simulation\tree\init.cpp 75 1 SofaSimulationTree
Error 223 error C2065: ‘and’ : undeclared identifier C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\modules\sofa\simulation\tree\init.cpp 75 1 SofaSimulationTree
Error 224 error C2143: syntax error : missing ‘;’ before ‘!’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\modules\sofa\simulation\tree\init.cpp 75 1 SofaSimulationTree
Error 225 error C2059: syntax error : ‘)’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\modules\sofa\simulation\tree\init.cpp 75 1 SofaSimulationTree
Error 226 error C2143: syntax error : missing ‘;’ before ‘sofa::helper::printLibraryNotCleanedUpWarning’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\modules\sofa\simulation\tree\init.cpp 76 1 SofaSimulationTree
Error 338 error LNK1104: cannot open file ‘..\..\lib\SofaSimulationTree_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaBaseAnimationLoop\LINK SofaBaseAnimationLoop
Error 339 error LNK1104: cannot open file ‘..\..\lib\SofaSimulationTree_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaExplicitOdeSolver\LINK SofaExplicitOdeSolver
Error 362 error LNK1104: cannot open file ‘..\..\lib\SofaSimulationTree_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaImplicitOdeSolver\LINK SofaImplicitOdeSolver
Error 363 error LNK1104: cannot open file ‘..\..\lib\SofaSimulationTree_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaExporter\LINK SofaExporter
Error 378 error LNK1104: cannot open file ‘..\..\lib\SofaSimulationTree_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaEulerianFluid\LINK SofaEulerianFluid
Error 390 error LNK1104: cannot open file ‘..\..\lib\SofaSimulationTree_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaGraphComponent\LINK SofaGraphComponent
Error 413 error LNK1104: cannot open file ‘..\..\lib\SofaSimulationTree_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaLoader\LINK SofaLoader
Error 415 error LNK1104: cannot open file ‘..\..\lib\SofaSimulationTree_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaBaseLinearSolver\LINK SofaBaseLinearSolver
Error 416 error LNK1104: cannot open file ‘..\..\lib\SofaSimulationTree_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaMiscSolver\LINK SofaMiscSolver
Error 421 error LNK1104: cannot open file ‘..\..\lib\SofaSimulationTree_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaBaseTopology\LINK SofaBaseTopology
Error 463 error LNK1104: cannot open file ‘..\..\lib\SofaBaseTopology_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaBaseVisual\LINK SofaBaseVisual
Error 468 error LNK1104: cannot open file ‘..\..\lib\SofaBaseTopology_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaMiscTopology\LINK SofaMiscTopology
Error 472 error LNK1104: cannot open file ‘..\..\lib\SofaBaseTopology_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaTopologyMapping\LINK SofaTopologyMapping
Error 473 error LNK1104: cannot open file ‘..\..\lib\SofaBaseLinearSolver_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaDenseSolver\LINK SofaDenseSolver
Error 479 error LNK1104: cannot open file ‘..\..\lib\SofaBaseTopology_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaDeformable\LINK SofaDeformable
Error 482 error LNK1104: cannot open file ‘..\..\lib\SofaBaseTopology_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaBaseMechanics\LINK SofaBaseMechanics
Error 483 error LNK1104: cannot open file ‘..\..\lib\SofaDenseSolver_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaEigen2Solver\LINK SofaEigen2Solver
Error 484 error LNK1104: cannot open file ‘..\..\lib\SofaBaseVisual_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaOpenglVisual\LINK SofaOpenglVisual
Error 537 error LNK1104: cannot open file ‘..\..\lib\SofaBaseMechanics_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaSphFluid\LINK SofaSphFluid
Error 542 error LNK1104: cannot open file ‘..\..\lib\SofaOpenglVisual_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaSimpleFem\LINK SofaSimpleFem
Error 558 error LNK1104: cannot open file ‘..\..\lib\SofaBaseMechanics_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaRigid\LINK SofaRigid
Error 619 error LNK1104: cannot open file ‘..\..\lib\SofaSimpleFem_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaMiscFem\LINK SofaMiscFem
Error 621 error LNK1104: cannot open file ‘..\..\lib\SofaDenseSolver_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaPreconditioner\LINK SofaPreconditioner
Error 650 error LNK1104: cannot open file ‘..\..\lib\SofaBaseTopology_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaBoundaryCondition\LINK SofaBoundaryCondition
Error 657 error LNK1104: cannot open file ‘..\..\lib\SofaRigid_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaBaseCollision\LINK SofaBaseCollision
Error 658 error LNK1104: cannot open file ‘..\..\lib\SofaBaseCollision_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaComponentBase\LINK SofaComponentBase
Error 666 error LNK1104: cannot open file ‘..\..\lib\SofaSimpleFem_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaMiscMapping\LINK SofaMiscMapping
Error 685 error LNK1104: cannot open file ‘..\..\lib\SofaDeformable_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaMiscForceField\LINK SofaMiscForceField
Error 686 error LNK1104: cannot open file ‘..\..\lib\SofaDeformable_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaObjectInteraction\LINK SofaObjectInteraction
Error 753 error LNK1104: cannot open file ‘..\..\lib\SofaObjectInteraction_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaMeshCollision\LINK SofaMeshCollision
Error 754 error LNK1104: cannot open file ‘..\..\lib\SofaLoader_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaComponentCommon\LINK SofaComponentCommon
Error 772 error LNK1104: cannot open file ‘..\..\lib\SofaLoader_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaValidation\LINK SofaValidation
Error 773 error LNK1104: cannot open file ‘..\..\lib\SofaMeshCollision_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaMisc\LINK SofaMisc
Error 785 error LNK1104: cannot open file ‘..\..\lib\SofaMeshCollision_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaEngine\LINK SofaEngine
Error 787 error LNK1104: cannot open file ‘..\..\lib\SofaMeshCollision_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaUserInteraction\LINK SofaUserInteraction
Error 913 error LNK1104: cannot open file ‘..\..\lib\SofaUserInteraction_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaVolumetricData\LINK SofaVolumetricData
Error 939 error LNK1104: cannot open file ‘..\..\lib\SofaImplicitOdeSolver_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaConstraint\LINK SofaConstraint
Error 941 error LNK1104: cannot open file ‘..\..\lib\SofaVolumetricData_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaNonUniformFem\LINK SofaNonUniformFem
Error 943 error LNK1104: cannot open file ‘..\..\lib\SofaEulerianFluid_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaComponentAdvanced\LINK SofaComponentAdvanced
Error 954 error LNK1104: cannot open file ‘..\..\lib\SofaNonUniformFem_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaMiscEngine\LINK SofaMiscEngine
Error 955 error LNK1104: cannot open file ‘..\..\lib\SofaConstraint_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaHaptics\LINK SofaHaptics
Error 958 error LNK1104: cannot open file ‘..\..\lib\SofaValidation_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaComponentGeneral\LINK SofaComponentGeneral
Error 986 error LNK1104: cannot open file ‘..\..\lib\SofaConstraint_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaMiscCollision\LINK SofaMiscCollision
Error 987 error LNK1104: cannot open file ‘..\..\lib\SofaMiscForceField_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaComponentMisc\LINK SofaComponentMisc
Error 988 error LNK1104: cannot open file ‘..\..\lib\SofaComponentBase_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaComponentMain\LINK SofaComponentMain
Error 997 error LNK1104: cannot open file ‘..\..\lib\SofaComponentMain_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaGuiCommon\LINK SofaGuiCommon
Error 1013 error LNK1104: cannot open file ‘..\..\lib\SofaGuiCommon_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaGuiGlut\LINK SofaGuiGlut
Error 1050 error LNK1104: cannot open file ‘..\..\lib\SofaGuiCommon_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaGuiQt\LINK SofaGuiQt
Error 1052 error LNK1104: cannot open file ‘..\..\lib\SofaGuiQt_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\SofaGuiMain\LINK SofaGuiMain
Error 1064 error C2059: syntax error : ‘?’ C:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\applications\projects\runSofa\Main.cpp 228 1 runSofa
Error 1088 error LNK1104: cannot open file ‘..\..\..\lib\SofaGuiMain_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\Modeler\exec\LINK Modeler
Error 1089 error LNK1104: cannot open file ‘..\..\lib\SofaGuiMain_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\CompositeObject\LINK CompositeObject
Error 1090 error LNK1104: cannot open file ‘..\..\lib\SofaGuiMain_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\OneTetrahedron\LINK OneTetrahedron
Error 1091 error LNK1104: cannot open file ‘..\..\lib\SofaGuiMain_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\MixedPendulum\LINK MixedPendulum
Error 1092 error LNK1104: cannot open file ‘..\..\lib\SofaGuiMain_1_0d.lib’ C:\Users\kyungmin Jo\Documents\SOFA\build-external\OneParticle\LINK OneParticle
1093 IntelliSense: expected a ‘)’ c:\Users\kyungmin Jo\Desktop\SOFA install\sofa+dependencies+qt\modules\sofa\simulation\common\init.cpp 75 49 SofaSimulationCommon
==========================================================================================As you said, I moved the QT archive from QT installation directory to SOFA source directory, which was downloaded from github, and reinstalled QT after removing it.
You said that I don’t need to both QT installation and QT archive, but, when I run Cmake after removing QT, error was occured. So, I had to reinstall QT.12 August 2015 at 05:51 #3467MarcBlockedWait, what? What did you download from GitHub?
Anyway, I suspect you checked out a commit that simply doesn’t build on Windows.
Can you try to update to a more recent commit? (git pull
)12 August 2015 at 06:06 #3468JoBlockedI mean I got SOFA by cloning Git repository, as your website suggested.
========================================================================
You can get SOFA by cloning the Git repository hosted on InriaForge:
git clone git://scm.gforge.inria.fr/sofa/sofa.git
========================================================================
And then I run cmake. Did I do something wrong?12 August 2015 at 06:35 #3469MarcBlockedNo, that’s perfect. It just happens that when you cloned the repository, the last commit did not build on Windows, I think.
This error has been fixed by now, and you can try to update your Sofa repository with
git pull
, and try to compile again.13 August 2015 at 01:26 #3471JoBlockedI updated SOFA repository with ‘git fetch’ and ‘git merge’ instead of ‘git pull’ because ‘git pull’ didn’t operate properly.
Anyway, most of errors were disappeared, however, I still have two errors as follows.
===========================================================================================
Error 853 error C2059: syntax error : ‘?’ C:\Users\kyungmin Jo\Documents\GitHub\sofa\applications\projects\runSofa\Main.cpp 228 1 runSofa
876 IntelliSense: command-line error: invalid macro definition: -DQT_DLL c:\Users\kyungmin Jo\Documents\GitHub\sofa\applications\projects\runSofa\Main.cpp 1 1 runSofa
===========================================================================================13 August 2015 at 12:50 #3472MarcBlockedMmmh… I don’t know… To me, this is line 228:
sofa::helper::Logger::getMainLogger().log( sofa::helper::Logger::Warning, std::string( "Invalid argument ‘") + colorsStatus + std::string("‘ for ‘--colors‘" ) );
Do we agree? I don’t see where the error could come from. Can you try commenting the line out?
17 August 2015 at 06:07 #3475JoBlockedIt’s same as mine.
I built SOFA after switching line228 with yours, just in case, however, same errors were still occured.
Here are the lines near line228 in my system. Are there any difference with yours?
========================================================================================
else
{
Console::setColorsStatus(Console::ColorsAuto);
sofa::helper::Logger::getMainLogger().log( sofa::helper::Logger::Warning, std::string( “Invalid argument ‘”) + colorsStatus + std::string(“‘ for ‘–colors‘” ) );
}
========================================================================================19 August 2015 at 06:23 #3477JoBlockedI havn’t still solved those two errors.
Here are installation steps that I did with SOFA.
Would you look into them whether there are anyting wrong?
=============================================================
1. git clone git://scm.gforge.inria.fr/sofa/sofa.git –> in github/sofa directory
2. git pull (git fetch + git merge) –> in github/sofa directory
3. download sofa-win-dependencies-21-11-2013.zip –> unzip it in github/sofa directory
4. download qt4.8.5_msvc2012_x86.zip –> unzip it in github/sofa directory
5. download qt-opensource-windows-x86-vs2010-4.8.6.exe –> excute it to install qt
6. download cmake-3.3.0-win32-x86.exe -> install cmake3.3.0
7. excute cmake_gui -> source code directory is github/sofa, binaries directory is github/sofa
8. In cmake_gui, click configure twice (visual studio 11 2012) –> click generate
9. In visual studio 2012, open sofa.sln –> build solution
===================================================================================I really don’t know what the problem is…
21 August 2015 at 15:14 #3487MarcBlockedWhat you describe looks fine to me (I’m not a Windows guy, though).
I don’t understand what the problem is either… What if the you comment out the line on which the compiler says there is a error?
Also, just a couple of things I’d like to say:
- I’m pretty sure you don’t need to install Qt4 in addition to the precompiled binaries distributed for SOFA;
- It’s a good idea to choose a build directory different from the source directory;
- Just for info, GitHub is the name of a hosting serving based on Git; SOFA has little to do with GitHub, it simply uses Git as is SCM.
26 August 2015 at 23:50 #3495JoBlockedThanks for info.
It still had an error although I removed QT4 and seperated build directory from source directory.
However, after I commented out the line which occured the error, it seems to be work.. but pretty slow..and have some warnings when I run ‘runSofa’.
Anyway, for now, it works.
Thank you for help.31 August 2015 at 09:03 #3497MarcBlockedI suspect that you built in debug mode, since this makes code slower and create additionnal warnings. (Also, I believe this is the default for Visual Studio.)
In the Visual Studio GUI, you have a drop-down list with the type of build: you can try a “Release” build instead of a “Debug” build.
-
AuthorPosts
- You must be logged in to reply to this topic.