Yep, I agree, (./) should be the default install lib for win32.

/Anders

On 4/24/07, Wojciech Lewandowski <[EMAIL PROTECTED]> wrote:
Setting CMAKE_INSTALL_PREFIX to current directory (.) does not limit  use of
environment libraries it only changes default Install location to
distribution bin and lib subdirectory.

One may still set and use LIB, INCLUDE, PATH variables as needed.

But I agree that Cmake could adopt better OpenSceneGraph and OpenThread
installation directory defaults than drive:\Program Files\ .

Wojtek

t

----- Original Message -----
From: "Anders Backman" <[EMAIL PROTECTED]>
To: "osg users" <osg-users@openscenegraph.net>
Sent: Tuesday, April 24, 2007 12:28 PM
Subject: Re: [osg-users] OpenThread library name


> What if you want to replace OpenThreads temporarily for a "patched" one?
> What if you decide that you want to build with or without debug
> symbols in the release library? Copying libs in windows is not a good
> way to handle these things. Together with .lib/.dll there are pdb etc
> for debugging, copying them back and forth is not very effective.
> I rather prefer the unix style suggested by Thibault, we are using
> something similar, where we make use of the LIB and INCLUDE
> environment variable that exists for visualstudio.
>
> By running a bat-file we set the LIB, INCLUDE and PATH variables to
> whatever release/library/combination we want, then we start
> visualstudio with devenv /useenv.
> My rule is, NEVER store explicit paths in the .vcproj file, it always
> fails when using multiple versions of libraries.
> I realize this is not the way Cmake wants it, it rather want to get
> all the paths, create hard-coded project files with all paths in it,
> and then keep it like that.
> Although there is nothing that prevents the user from starting
> visualstudio with devenv /useenv anyway to make use of LIB/INCLUDE
> env. variables, so I dont see any problems in that.
>
> The only problem right now is that you have to INSTALL before using
> OT, OSG and osgProducer.
> What would happen if you specify OpenSceneGraph as install path for
> binaries/libs? Would it also try to copy header files?
> Copying header files is even more stupid, as the dates are changed and
> sometimes you get a major recompile due to that.
>
> But if the default installation lib (at least for windows) would be
> the source directory then I think it would work just fine (as before),
> and if someone (hope not) want to install code into Program Files or
> Windows directory then its up to them.
>
> /anders
>
> On 4/24/07, Wojciech Lewandowski <[EMAIL PROTECTED]> wrote:
>> I had similar problem but noticed that one may set the same path as
>> Source
>> code, Binary  root and Install path. In this case install just moves
>> release
>> and debug libs to lib subdirectory of the project and dlls and
>> executables
>> into bin subdirectory of the project. It does not copy Include dirs
>> because
>> they would land in the same dir.
>>
>> For example:
>>
>> I keep my all my OSG related projects in C:\dev\OSG_SVN directory.
>> So I use
>>
>> C:\dev\OSG_SVN\OpenSceneGraph
>> directory for all three directory locations
>>
>> for
>>  source code directory ( "Where is the source code" in Windows Cmake )
>> for
>> binary directory ("Where to build the binaries" in Windows Cmake)
>> and for
>> install directory( CMAKE_INSTALL_PREFIX variable in Windows Cmake)
>>
>>
>> this produces similar results as defaul locations in older OSG
>> distributions
>>
>> with this exception of Win32 subdir removed from lib and bin.
>>
>>
>> Cheers,
>> Wojtek Lewandowski
>>
>>
>> ----- Original Message -----
>> From: "Anders Backman" <[EMAIL PROTECTED]>
>> To: "osg users" <osg-users@openscenegraph.net>
>> Sent: Tuesday, April 24, 2007 10:53 AM
>> Subject: [osg-users] OpenThread library name
>>
>>
>> > Windows XP,
>> > VisualStudio 8.
>> >
>> > I just checked out svn osg and OT and got some problems during build.
>> >
>> > I'm using a separate checked out version of OT, so I'm using the
>> > OPENTHREADS_DIR env variable to specify the path to OT.
>> >
>> > 1. It seems that OT generates OpenThreads(d).lib (and not
>> > OpenThreadswin32(d).lib as before)
>> >
>> > 2. OpenSceneGraph still refers to the name OpenThreadswin32.lib
>> >
>> > 3. In windows there is no really good path where to install headers and
>> > libs.
>> > Is the new convention to install it to c:\program files\OpenTHreads
>> > something that the community has decided or is it a proposal to a new
>> > standard;-) ?
>> >
>> > It now also seems that one HAS to install OpenThreads to get the
>> > correct include/lib path for cmake. Otherwise the library resides
>> > under debug or minsizrel or release.
>> > This makes it slightly harder to use multiple versions of the library,
>> > as one has to install all of them to some common path.
>> >
>> > So what is the opinion of other windows users about path names?
>> >
>> > /Anders
>> >
>> > --
>> >
>> >
>> > ________________________________________________________________
>> > Anders Backman               Email:    [EMAIL PROTECTED]
>> > HPC2N/VRlab                  Phone:    +46 (0)90-786 9936
>> > Umea university              Cellular: +46 (0)70-392 64 67
>> > S-901 87 UMEA SWEDEN         Fax:      +46 90-786 6126
>> >                               http://www.cs.umu.se/~andersb
>> > _______________________________________________
>> > osg-users mailing list
>> > osg-users@openscenegraph.net
>> > http://openscenegraph.net/mailman/listinfo/osg-users
>> > http://www.openscenegraph.org/
>> >
>> > -------------------------------------------------------------
>> > This mail was scanned by BitDefender
>> > For more informations please visit http://www.bitdefender.com
>> >
>> >
>> > -------------------------------------------------------------
>> >
>> >
>>
>>
>> -------------------------------------------------------------
>> This mail was scanned by BitDefender
>> For more informations please visit http://www.bitdefender.com
>>
>>
>> -------------------------------------------------------------
>>
>>
>> _______________________________________________
>> osg-users mailing list
>> osg-users@openscenegraph.net
>> http://openscenegraph.net/mailman/listinfo/osg-users
>> http://www.openscenegraph.org/
>>
>
>
> --
>
>
> ________________________________________________________________
> Anders Backman               Email:    [EMAIL PROTECTED]
> HPC2N/VRlab                  Phone:    +46 (0)90-786 9936
> Umea university              Cellular: +46 (0)70-392 64 67
> S-901 87 UMEA SWEDEN         Fax:      +46 90-786 6126
>                               http://www.cs.umu.se/~andersb
> _______________________________________________
> osg-users mailing list
> osg-users@openscenegraph.net
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
> -------------------------------------------------------------
> This mail was scanned by BitDefender
> For more informations please visit http://www.bitdefender.com
>
>
> -------------------------------------------------------------
>
>


-------------------------------------------------------------
This mail was scanned by BitDefender
For more informations please visit http://www.bitdefender.com


-------------------------------------------------------------


_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/



--


________________________________________________________________
Anders Backman               Email:    [EMAIL PROTECTED]
HPC2N/VRlab                  Phone:    +46 (0)90-786 9936
Umea university              Cellular: +46 (0)70-392 64 67
S-901 87 UMEA SWEDEN         Fax:      +46 90-786 6126
                              http://www.cs.umu.se/~andersb
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to