CMake

786 views
Skip to first unread message

l.h...@seznam.cz

unread,
Jun 23, 2018, 10:17:53 AM6/23/18
to ProjectChrono
Hello, I have problem with CMake, when I build CMake show me this: Debug;Release;MinSizeRel;RelWithDebInfo
My system version: Windows - 10.0.16299 - AMD64

I I was looking for google but nothing helped.

Thanks

Radu Serban

unread,
Jun 23, 2018, 10:51:54 AM6/23/18
to projec...@googlegroups.com

I assume you selected the Visual Studio generator at the very beginning of the CMake configuration?

When using the CMake Visual Studio generators, you do not select anything at configuration time.  Instead, CMake will generate the four standard configurations (Debug, MinSizeRelease, Release, and RelWithDebInfo) and you select one of those when you build the solution within Visual Studio.

--Radu
--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectchron...@googlegroups.com.
To post to this group, send email to projec...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

l.h...@seznam.cz

unread,
Jun 23, 2018, 11:14:37 AM6/23/18
to ProjectChrono
When I press Configure, automatically is choose some Visual Studio....

Radu Serban

unread,
Jun 23, 2018, 12:04:14 PM6/23/18
to projec...@googlegroups.com

Haja (?),

First, don't choose "some" Visual Studio.  Instead pick 'Win 64'; Chrono must be built in 64-bit.

Second, leave the CMake variable 'CMAKE_CONFIGURATION_TYPES' unchanged.  CMake provides a multi-configuration generator for Visual Studio and the build type is set at build time (unlike on Linux for example, where the build type is set at configuration time).

I'm not quite sure what the problem is exactly.  If the above do not address it, please provide more details.

--Radu


On 6/23/2018 5:14 PM, l.h...@seznam.cz wrote:
When I press Configure, automatically is choose some Visual Studio....

l.h...@seznam.cz

unread,
Jun 23, 2018, 2:01:14 PM6/23/18
to ProjectChrono
I try VS 10-15 Win64, there is always a mistake.
1.png
2.png

Radu Serban

unread,
Jun 23, 2018, 3:34:31 PM6/23/18
to projec...@googlegroups.com

Check your Visual Studio installation.  If that one is fine, maybe reinstall CMake (did you by any chance get VS 2015 after you installed CMake?)

As shown in the screenshot you provided, CMake didn't find any generator.  The message next to the 'Configure', 'Generate', 'Open Project' buttons should read something like: "Current generator: Visual Studio 15 2017 Win64".  

Look also in the CMakeOutput.log file.  What does that say?

--Radu


On 6/23/2018 8:01 PM, l.h...@seznam.cz wrote:
I try VS 10-15 Win64, there is always a mistake.

Radu Serban

unread,
Jun 23, 2018, 3:38:29 PM6/23/18
to projec...@googlegroups.com

Hmm, now I saw your second image which shows that CMake is trying to use VS 2017 Win64 as the generator.   There may still be a problem with CMake not finding your Visual Studio 2017 installation, so it may be worth trying to reinstall CMake.

But first, try also to delete everything in your build tree (D:/CHRONO/chrono_built).

If you cannot figure this out from the log file, please post it here.

--Radu

l.h...@seznam.cz

unread,
Jun 23, 2018, 6:30:55 PM6/23/18
to ProjectChrono
Probably the problem in Cmake, I think.....

CMakeOutput says this
The system is: Windows - 10.0.17134 - AMD64
Reply all
Reply to author
Forward
0 new messages