Message: Re: More Windows Woes Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Ok Re: More Windows Woes 

Forum: Installation and Configuration
Re: Question More Windows Woes (Tom Roberts)
Date: 29 May, 2015
From: Tom Roberts <Tom Roberts>

OK, I figured out what happened. It is intimately related to the fact that CMake 3.2.1 looks quite different from the CMake displayed in the installation guide for Windows.

As I am using Coin3D, I knew I had to add -DCOIN_NOT_DLL and -DSOWIN_NOT_DLL into CMAKE_CXX_FLAGS, so I used the AddEntry button to do that. Pushing Configure made that new entry disappear, but I forged ahead and got many thousands of errors from the compiler.

What I didn't know (then) is that there are a bunch of configuration options marked Advanced, and to see them you must click the Advanced checkbox in CMake. There is an entry for CMAKE_CXX_FLAGS that includes important stuff, including -DWIN32. What happened is that my definition overwrote the correct definition the first time I pushed Configure, and it stayed for subsequent pushes -- as a result none of the necessary flags got set, except for my two -- hence the disaster.

Starting over, I added those two flags to CMAKE_CXX_FLAGS in the advanced section. I had been puzzled about not being able to select static/shared libraries; they are also in the advanced section. Now there is just one error: the usual line 53 in that must be commented out for Coin3D; it's easily fixed.

I strongly suggest the Windows installation documentation be updated. Better, don't mark any options Advanced, but rather put them into an Advanced group.

 Add Message Add Message
to: "Re: More Windows Woes"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]