*.sln open error in Visual Studio/C++ 2008

Asked by mspark32

>I'm novice on OAH and have one question.
>
>I downloaded glib using bzr like this:
> C:\Temp\OAH\Stage2>bzr branch lp:oah/liboil
> You have not informed bzr of your Launchpad ID, and you must do this to
> write to Launchpad or access private data. See "bzr help launchpad-login".
> Branched 16 revision(s).

>I opend "liboil.sln" in Visual Studio 2008 ( C:\Temp\OAH\Stage2\modules\liboil\trunk\win32\oah\ilboil.sln ), then I can see following error msg.
> File: C:\Temp\OAH\Stage2\modules\zlib\trunk\win32\oah\libz.vcproj
> Error Message:
> Property sheet file '$(OAH_INSTALLED_PATH)\vsprops\oah-$(PlatformName)-$(ConfigurationName).vsprops' was not found
> or failed to load.
> The file 'C:\Temp\OAH\Stage2\modules\zlib\trunk\win32\oah\libz.vcproj' has failed to load.
>
>I'm sure that "OAH_INSTALLED_PATH" is right, but $(PlatformName) or $(ConfigurationName) is >not found anywhere.
>I guess that it will be PATH problem..
>
>Please give me any comment for this problem..

Hi
I do have the same Problem as described above, and followed the solving Proccess but NO EFFECT.
means. same error after loading rtag 0.3
EVERY Module and EVERY library build in Modules ar quit with
<---- SNIP ---->
libgstavi:
  Folgender XML-Parserfehler ist aufgetreten:

  Datei: C:\OAH0.3\modules\gstreamer\gst-plugins-good\trunk\win32\oah\gst\libgs
  tavi.vcproj
  Zeile: 30
  Spalte: 4
  Fehlermeldung:
  Die Eigenschaftenblattdatei "$(OAH_INSTALLED_PATH)vsprops\oah-$(PlatformName)
  -$(ConfigurationName).vsprops" wurde nicht gefunden oder konnte nicht geladen
   werden.
  Die Datei "C:\OAH0.3\modules\gstreamer\gst-plugins-good\trunk\win32\oah\gst\l
  ibgstavi.vcproj" konnte nicht geladen werden.
C:\OAH0.3\modules\gstreamer\gst-plugins-good\trunk\win32\oah\gst-plugins-good-g
st.sln : error MSB6006: "VCBuild.exe" wurde mit Code -1 beendet.
libgstcutter:
  Folgender XML-Parserfehler ist aufgetreten:

  Datei: C:\OAH0.3\modules\gstreamer\gst-plugins-good\trunk\win32\oah\gst\libgs
  tcutter.vcproj
  Zeile: 30
  Spalte: 4
  Fehlermeldung:
  Die Eigenschaftenblattdatei "$(OAH_INSTALLED_PATH)vsprops\oah-$(PlatformName)
  -$(ConfigurationName).vsprops" wurde nicht gefunden oder konnte nicht geladen
   werden.
  Die Datei "C:\OAH0.3\modules\gstreamer\gst-plugins-good\trunk\win32\oah\gst\l
  ibgstcutter.vcproj" konnte nicht geladen werden.
C:\OAH0.3\modules\gstreamer\gst-plugins-good\trunk\win32\oah\gst-plugins-good-g
st.sln : error MSB6006: "VCBuild.exe" wurde mit Code -1 beendet.
<------ SNIP -------->
And so on

i don't know where to search my fault.

startin build with the build.bat quit's

<------SNIP----->

C:\OAH0.3\modules>build.bat
Starting OAH build:
  Target: Build
  Branch: trunk
  Configuration: Release

  Output:
  Pkg-Config:

Drücken Sie eine beliebige Taste . . .
Microsoft (R)-Buildmodul, Version 3.5.21022.8
[Microsoft .NET Framework, Version 2.0.50727.1433]
Copyright (C) Microsoft Corporation 2007. Alle Rechte vorbehalten.

Das Erstellen wurde am 26.08.2009 10:41:37 gestartet.
Projekt "C:\OAH0.3\modules\glib\trunk\win32\oah\glib.sln" auf Knoten 0 (Build Z
iel(e)).
  Die Projektmappenkonfiguration "Release|Win32" wird erstellt.
generated:
  Folgender XML-Parserfehler ist aufgetreten:

  Datei: C:\OAH0.3\modules\glib\trunk\win32\oah\generated.vcproj
  Zeile: 30
  Spalte: 4
  Fehlermeldung:
  Die Eigenschaftenblattdatei "$(OAH_INSTALLED_PATH)\vsprops\oah-$(PlatformName
  )-$(ConfigurationName).vsprops" wurde nicht gefunden oder konnte nicht gelade
  n werden.
  Die Datei "C:\OAH0.3\modules\glib\trunk\win32\oah\generated.vcproj" konnte ni
  cht geladen werden.
C:\OAH0.3\modules\glib\trunk\win32\oah\glib.sln : error MSB6006: "VCBuild.exe"
wurde mit Code -1 beendet.
Die Erstellung von Projekt "C:\OAH0.3\modules\glib\trunk\win32\oah\glib.sln" is
t abgeschlossen (Build Ziel(e)) -- FEHLER.

Fehler beim Erstellen.

"C:\OAH0.3\modules\glib\trunk\win32\oah\glib.sln" (Build Ziel) (1) ->
(generated Ziel) ->
  C:\OAH0.3\modules\glib\trunk\win32\oah\glib.sln : error MSB6006: "VCBuild.exe
" wurde mit Code -1 beendet.

    0 Warnung(en)
    1 Fehler

Vergangene Zeit 00:00:00.29

C:\OAH0.3\modules>
<-----SNIP----->

Question information

Language:
English Edit question
Status:
Answered
For:
OAH Build Edit question
Assignee:
Haakon Sporsheim Edit question
Last query:
Last reply:
Revision history for this message
fluzz (fluzz) said :
#1

You have to install OAHBuild.msi, AFAIK

Revision history for this message
mspark32 (mspark) said :
#2

I'v already installed OAHBuild.msi as follows,

1. Python, ActivePerl & Bazzer were installed.
2. OAHBuild.msi(ver0.3) was installed.
3. Modules were downloaded using oah-lp-init-repo.bat
4. I Opened liboil.sln(which is downloaded from step3) in VisualStudio2008 --->error

My final goal is to build glib & gstreamer myself.

Anybody advise me.

Revision history for this message
Haakon Sporsheim (ieei) said :
#3

Since you have OAHBuild v0.3 installed you will need to revert to the 0.3 tag of liboil (and/or all other branches). use bzr qlog or bzr tags.

liboil> bzr tags
OAH_0.3 7

If you branch as you have done; you pulled down latest changes which requires OAHBuild v0.4 which haven't been shipped yet.
So, as I've tried to explain in other questions here on LP, if you really want to build the latest:
branch OAHBuild and set up all the needed things manually (not easy to explain how to do this, it really requires that you understand the whole concept behind OAHBuild), then branch as you have done or pull... then build.

Revision history for this message
mspark32 (mspark) said :
#4

Thanks!
I'll try the way you suggest.(I don't have to build the latest version. even v0.3 it's OK.)

Revision history for this message
Haakon Sporsheim (ieei) said :
#5

oki :)

You could run the http://launchpad.net/oah/trunk/0.3/+download/oah-lp-init-repo.bat which will branch all OAH branches for v0.3.

Revision history for this message
mspark32 (mspark) said :
#6

I'v already downloaded all modules with oah-lp-init-repo.bat which you suggested.

But when I'm using oah-lp-init-repo.bat, The following message is printed.
  Creating OAHBuild repository in C:\Temp\OAH\oahbuild
  - checking out trunk from lp:oah
  You have not informed bzr of your Launchpad ID, and you must do this to
  write to Launchpad or access private data. See "bzr help launchpad-login".
  Branched 64 revision(s).
Is the sentence "You have not informed bzr of your Launchpad ID" related with the problem?

My test procedure is like below;
1. Python, ActivePerl & Bazzer were installed.
2. OAHBuild.msi(ver0.3) was installed.
3. Modules were downloaded using oah-lp-init-repo.bat
    - http://launchpad.net/oah/trunk/0.3/+download/oah-lp-init-repo.bat
    - "C:\oah-lp-init-repo.bat" on command line
4. I Opened liboil.sln(which is downloaded from step3) in VisualStudio2008 --->error

Revision history for this message
mspark32 (mspark) said :
#7

Additionaly, when I run build.bat, below message is shown.
It will be related with the problem?

C:\Temp\OAH\Stage2>build.bat
Starting OAH build:
  Target: Build
  Branch: trunk
  Configuration: Release

  Output: Local
  Pkg-Config:

  Press any key if you want to continue..
 'msbuild' is not found.

Revision history for this message
mspark32 (mspark) said :
#8

Good News!
When I open 'modules\liboil\trunk\win32\oah\liboil.sln',
error message indicate that Configuration name is "Debug|x64" in the liboil.vcproj file(line 112).
My gool is to build the project under Win32. So I tried to find why the configuration option is x64.

Line 11 in the liboil.vcproj, there is a sentence like below;
 <Platforms>
  <Platform
   Name="Win32"
  />
  <Platform
   Name="x64"
  />
 </Platforms>

So, I deleted x64 like this for test.
 <Platforms>
  <Platform
   Name="Win32"
  />
 </Platforms>

Then I opened "liboil.sln" in Visual Studio and built the solution successfully!!!
Similar to that, I changed all the .vcproj files in the 'glib\trunk\win32\oah\*.vcproj' and built

Is My approach right?

Revision history for this message
Haakon Sporsheim (ieei) said :
#9

> 'msbuild' is not found.

You will of course need to either use the visual studio 2008 command prompt... or set up your own environment.

> Then I opened "liboil.sln" in Visual Studio and built the solution successfully!!!
> Similar to that, I changed all the .vcproj files in the 'glib\trunk\win32\oah\*.vcproj' and built

> Is My approach right?

No! The only thing you had to do was select the correct configuration and platform inside visual studio! You just removed x64 support (even though it seems to be broken already). Might be that your Visual Studio defaulted to Debug|x64.

Revision history for this message
Haakon Sporsheim (ieei) said :
#10

> Property sheet file '$(OAH_INSTALLED_PATH)\vsprops\oah-$(PlatformName)-$(ConfigurationName).vsprops' was not found
> or failed to load.

First thing you should do is check your system whether or not this file actually exists. $(OAH_INSTALLED_PATH) is an environment variable. The installer will add this variable to the system environment (IIRC, if not it is the current user environment). You can open a command prompt (or just run cmd.exe) and type set OAH. This will list all OAH environment variables. The defaults are:
OAH_BUILD_OUTPUT=Local
OAH_INSTALLED_PATH=%ProgramFiles%\OAHBuild\
OAH_INSTALLED_PREFIX_PATH=%ProgramFiles%\FOSS\
OAH_LOCAL_PREFIX_PATH=%USERPROFILE%\FOSS\

Since you are building Release|Win32 your full path will be C:\Program Files\OAHBuild\vsprops\oah-Win32-Release.vsprops.

Can you help with this problem?

Provide an answer of your own, or ask mspark32 for more information if necessary.

To post a message you must log in.