Page 1 of 2

msvc workspace problems

Posted: Mon Jun 09, 2003 3:17 pm
by hannibar
I have troubles loadin the blendersource with MSVC++.
When I try to open blender.dsw (from blender/projectfiles/blender/), nothing happens. Everything remains just the same, and nothing is loaded. There is even no message shown.
I'm using Microsof Visual C++ 6.0 Enterprise Edition on WinXP. Does anyone know what I'm doing wrong or what the problem is?

Posted: Mon Jun 09, 2003 6:37 pm
by BugsB
from which date is your blender.dsw? dit it work before? did you install the visual c++ service pack? need more input :wink:

Posted: Mon Jun 09, 2003 7:19 pm
by hannibar
1) the blender.dsw comes from the 24/05/03 cvs checkout

2) I don't remember it well, but I believe that it worked once a long time ago (right after the sources went public)

3) I didn't install the service pack

Posted: Tue Jun 10, 2003 5:48 am
by BugsB
i think you should start by installing the service pack. if that doesn't change anything you should start from scratch in a new directory with a cvs checkout.

Re: msvc workspace problems

Posted: Tue Jun 10, 2003 8:13 am
by _florian_
MSVC does not like LF in *.dsw and *.dsp. you should convert them to CR-LF. then everything should work.
i'm not sure.... but i think current cvs versions still have the LF/CRLF problem...

paposo's answer works for me

Posted: Tue Jun 10, 2003 11:19 am
by walkerz
http://www.blender.org/modules.php?op=m ... pic&t=1123

paposo's answer works for me, you can try it.

Posted: Tue Jun 10, 2003 12:12 pm
by BugsB
the current cvs versions (including the nightly builds) don't have that problem anymore.

Posted: Tue Jun 10, 2003 6:05 pm
by hannibar
First of all thanks for the help.

Ok, I installed the service pack. It didn't help.

Then I downloaded the latest checkout, and unzipped it. (the checkout from 10/06/03). This didn't help either.

Then I opened the blender.dsw and blender.dsp in notepad, and saved them using 'save as', gave them the same name as original, and overwrote them.
Once again it didn't help.

Does anyone have another idea?

Posted: Tue Jun 10, 2003 6:26 pm
by matt_e
I think (guess) it may be to do with the way the nightly CVS archives are made. I've uploaded the blender.dsp/dsw files that I just downloaded through CVS then. They open and compile fine for me. You may like to give it a try here: http://mke3.net:9000/blender/misc/blend ... 030611.zip

Cheers

Posted: Tue Jun 10, 2003 6:52 pm
by phase
hannibar wrote:First of all thanks for the help.

Ok, I installed the service pack. It didn't help.
Believe me, without it you couldn't compile Blender at all
so there's no time wasted on this one !

I hope you manage to sort out your projectfiles issue...

Rob

Posted: Tue Jun 10, 2003 8:01 pm
by hannibar
I think (guess) it may be to do with the way the nightly CVS archives are made. I've uploaded the blender.dsp/dsw files that I just downloaded through CVS then. They open and compile fine for me. You may like to give it a try here: http://mke3.net:9000/blender/misc/blend ... 030611.zip
Thanks for those files!
The blender.dsp and .dsw now work! This solved my problem.
Unfortunately all te other .dsp files don't work either.
So I guess I'll have to download them manually :D

Posted: Tue Jun 10, 2003 8:38 pm
by hannibar
Ok, Now I've ran into another problem. I downloaded a few .dsp files from CVS (just by going to the left of this page, clicking CVS, browsing throught the CVS, and downloading them)

When I doubleclick blender.dsw, MSVC gives an error message for each .dsp that should be loaded, saying that the files aren't made in MSVC etc... etc... the same error as before.

Did I download the right files?
If I did, what can I do about it?

[edit] I tried downloading blender.dsp and blender.dsw from cvs myself, and found out that these are a bit smaller than the files broken gave me, and they don't work !!!!! Weird [/edit]

Posted: Wed Jun 11, 2003 5:15 am
by matt_e
Aha, yes. There seems to be a problem with unix-style text files and windows-style text files in the CVS. This really needs to be fixed somehow. Downloading through CVSweb seems to give unix-style files, as do the ones in the nightly packages. However if you download through CVS, by using a program like winCVS, the files are ok. I presume this is why none of the most involved developers have noticed or worried about it. Of course this isn't very useful to new developers like yourself though. Can a developer with more knowledge of what goes on in that conversion process suggest a solution to this problem?

As for some temporary solutions, you could a) get a copy of winCVS or another CVS client, and download through that, or b) see if you can convert the project files that you downloaded through cvsweb to dos/windows style text files. You my be able to do this by opening it up in wordpad then saving it again over the top as a text file.

cheers

Posted: Wed Jun 11, 2003 10:56 am
by _florian_
winzip has an option called "smart CRLF/LF" conversion of tar files.
then the unix (lf) files are stored as windows files (cr/lf).
this could solve the problem.
but be careful! if you use cygwin and have installed cygwin with the unix-file-type option. you get problems with autotools
when you try to process windows-files.

florian

Posted: Wed Jun 11, 2003 3:43 pm
by hannibar
winzip has an option called "smart CRLF/LF" conversion of tar files.
then the unix (lf) files are stored as windows files (cr/lf).
this could solve the problem.
Yup, that did it. Thanks for the help.