Building SLK Source code.

Topics: Developer Forum
May 5, 2009 at 9:43 PM
Hi All, I downloaded the source code for SLK build 47079.  Can someone point me in the right direction for projects that are needed and the solution that would help be get a successful build.  There seems to be some files that are missing that is preventing me to build the solution (especially the SlkDll project Error 1 Resource file "FramesetResources.resx" cannot be found. SlkDll).  Am I missing something.

Thank you,
Shaji.
Coordinator
May 5, 2009 at 9:57 PM
Open a Visual Studio command prompt in the root of the source directory and run nmake.

Richard
SLK Co-ordinator
http://blog.salamandersoft.co.uk
Jun 17, 2009 at 12:46 AM
Edited Jun 17, 2009 at 12:54 AM

Hi,

I've downloaded the SLK source code of the change set number 53453 and I followed the steps described in the ReadMe.txt: I've put the code in the C:\dev\SLK folder and launched the nmake command inside the Visual Studio 2008 Command Prompt.
In my development environment I have:

- Visual Studio 2008
- .Net framework version 3.5 with SP1
- Sharepoint Services 3.0
- SQL Server 2008 instead of 2005

But, when I launch the nmake command (C:\dev\SLK>nmake) the following messages are shown:

Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation.  All rights reserved.


-----------------------------------------------------------------
Building Debug configuration of Src\Compression
-----------------------------------------------------------------
        cd Src\Compression
        "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /nologo
deb TARGET_ARCH=
        devenv Compression.sln /build Debug /Project Microsoft.LearningComponent
s.MRCI /ProjectConfig "Debug|Win32"

Microsoft (R) Visual Studio Version 9.0.30729.1.
Copyright (C) Microsoft Corp. All rights reserved.

'C:\dev\SLK\Src\Compression\MRCI\MRCI.vcproj' cannot be opened because its proje
ct type (.vcproj) is not supported by this version of the application.

To open it, please use a version that supports this type of project.
Invalid project

Use:
devenv  [solutionfile | projectfile | anyfile.ext]  [switches]

The first argument for devenv is usually a solution file or project file.
You can also use any other file as the first argument if you want to have the
file open automatically in an editor. When you enter a project file, the IDE
looks for an .sln file with the same base name as the project file in the
parent directory for the project file. If no such .sln file exists, then the
IDE looks for a single .sln file that references the project. If no such single
.sln file exists, then the IDE creates an unsaved solution with a default .sln
file name that has the same base name as the project file.

Command line builds:
devenv solutionfile.sln /build [ solutionconfig ] [ /project projectnameorfile [
 /projectconfig name ] ]
Available command line switches:

/Build          Builds the solution or project with the specified solution
                configuration. For example "Debug". If multiple platforms
                are possible, the configuration name must be enclosed in quotes
                and contain platform name. For example: "Debug|Win32".
/Clean          Deletes build outputs.
/Command        Starts the IDE and executes the command.
/Deploy         Builds and then deploys the specified build configuration.
/Edit           Opens the specified files in a running instance of this
                application. If there are no running instances, it will
                start a new instance with a simplified window layout.
/LCID           Sets the default language in the IDE for the UI.
/Log            Logs IDE activity to the specified file for troubleshooting.
/NoVSIP         Disables the VSIP developer's license key for VSIP testing.
/Out            Appends the build log to a specified file.
/Project        Specifies the project to build, clean, or deploy.
                Must be used with /Build, /Rebuild, /Clean, or /Deploy.
/ProjectConfig  Overrides the project configuration specified in the solution
                configuration. For example "Debug". If multiple platforms are
                possible, the configuration name must be enclosed in quotes
                and contain platform name. For example: "Debug|Win32".
                Must be used with /Project.
/Rebuild        Cleans and then builds the solution or project with the
                specified configuration.
/ResetAddin     Removes commands and command UI associated with the specified Ad
d-in.
/ResetSettings  Restores the IDE's default settings, optionally resets to
                the specified VSSettings file.
/ResetSkipPkgs  Clears all SkipLoading tags added to VSPackages.
/Run            Compiles and runs the specified solution.
/RunExit        Compiles and runs the specified solution then closes the IDE.
/SafeMode       Launches the IDE in safe mode loading minimal windows.
/Upgrade        Upgrades the project or the solution and all projects in it.
                A backup of these files will be created as appropriate.  Please
                see Help on 'Visual Studio Conversion Wizard' for more
                information on the backup process.

Product-specific switches:


To attach the debugger from the command line, use:
        VsJITDebugger.exe -p 
NMAKE : fatal error U1077: 'devenv' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\nmake.exe"' : return code '0x2'
Stop.

Could you give me a clue about what is wrong?

Thanks for any suggestion.

 

Coordinator
Jun 17, 2009 at 2:37 AM

You need Visual C++ installed. I don't think that it is installed by default when installing Visual Studio.

 

Richard

Dec 29, 2010 at 3:33 PM

Same issue with Visual C++ installed on my end... and I'm gonna keep posting until I get an answer that works...

Dec 30, 2010 at 1:07 AM
OnshoreDeveloper wrote:

Same issue with Visual C++ installed on my end... and I'm gonna keep posting until I get an answer that works...

 You probably don't mean it but that sounds a little aggressive.  By all means ask questions but remember that the people who are attempting to help are giving their time for no reward.  I, for one, would rather help someone who asks questions politley rather than someone who posts threats.

That said, it seems very odd that you have VC++ installed but you are getting an error message saying that the vcproj project type is not recognised.  Are you sure that you have the same error as the original poster?  Have you written a small VC++ program to make sure that VC++ was installed correctly? 

Coordinator
Jan 1, 2011 at 4:42 PM

As a first step on diagnosis try opening just mrci project on Visual Studio and see if it will build.

Jan 3, 2011 at 3:03 PM
PaulLinton wrote:
OnshoreDeveloper wrote:

Same issue with Visual C++ installed on my end... and I'm gonna keep posting until I get an answer that works...

 You probably don't mean it but that sounds a little aggressive.  By all means ask questions but remember that the people who are attempting to help are giving their time for no reward.  I, for one, would rather help someone who asks questions politley rather than someone who posts threats.

That said, it seems very odd that you have VC++ installed but you are getting an error message saying that the vcproj project type is not recognised.  Are you sure that you have the same error as the original poster?  Have you written a small VC++ program to make sure that VC++ was installed correctly? 

Paul,

Good point, you are absolutely right about my initial post, I did not mean to sound aggressive... maybe determined would be a better word, in any case... aggression was not my intention. I must admit I am COMPLETELY frustrated with this. To answer your question, I've not tried writing a C++ app, I'm mainly a C# person, or VB... but I'm not at all opposed to trying that, thanks for the suggestion!

Jan 3, 2011 at 3:04 PM
RichardWillis wrote:

As a first step on diagnosis try opening just mrci project on Visual Studio and see if it will build.

Richard,

Thank you for your response. I can't seem to find this 'mrci' project you mentioned in the source for the SLK... could you maybe point me in the right direction? Thanks for your time.

Jan 3, 2011 at 3:10 PM

Richard / Paul,

I am trying to work with the 1.0.799 version of the SLK... so to answer another question, I don't believe that I have the EXACT same issue as mentioned above as I believe we're talking about different versions here, but I DO get an NMAKE error, I've inluded that below:

Microsoft Learning Components Module has stopped working

A problem cause the program to stop working correctly. Windows will close the program and notify you if a solution is available.

 

Followed by actual build errors as follows:

Error 1 fatal error U1077: '..\SchemaCompiler\bin\debug\SchemaCompiler.exe' : return code '0xe0434f4d' NMAKE


Error 2 error PRJ0019: A tool returned an error code from "Performing Makefile project actions" Schema

Error 3 Source file 'C:\Projects\SharePoint SLK\Src\Schema\SchemaDataComponents.cs' could not be opened ('The system cannot find the file specified. ') LearningComponents

 

 

Again, thank you in advance as any help would certainly be appreciated!

Jan 3, 2011 at 7:58 PM

At the following link: http://www.go4answers.com/Example/kernelbasedll-version-116159.aspx Answer 1 would seem to imply that there is an issue with a strongly named dll in my application. Is it possible this is correct, and if so... where can I get a new one, and how can I implement it in place of what's currently in the solution?

Thanks.

Coordinator
Jan 5, 2011 at 2:50 PM
OnshoreDeveloper wrote:I am trying to work with the 1.0.799 version of the SLK... so to answer another question, I don't believe that I have the EXACT same issue as mentioned above as I believe we're talking about different versions here, but I DO get an NMAKE error, I've inluded that below:

Microsoft Learning Components Module has stopped working

A problem cause the program to stop working correctly. Windows will close the program and notify you if a solution is available.

 

Followed by actual build errors as follows:

Error 1 fatal error U1077: '..\SchemaCompiler\bin\debug\SchemaCompiler.exe' : return code '0xe0434f4d' NMAKE


Error 2 error PRJ0019: A tool returned an error code from "Performing Makefile project actions" Schema

Error 3 Source file 'C:\Projects\SharePoint SLK\Src\Schema\SchemaDataComponents.cs' could not be opened ('The system cannot find the file specified. ') LearningComponents

No, that's a completely different error.


I've just found this version in the source history and it's ancient. From before I was using SLK. In the early versions there was a schema compiler which took a description of the schema (in xml format I think) then created the database SQL and strongly named Schema objects from it. This was already deprecated over 3 years ago when I started building from source. From the error and looking at the makefiles it's attempting to run the SchemaCompiler using the SchemaDataComponents.cs file in the error message. However, the cs file does not exist in the source. It looks like that you've got 2 options:

  1. Find the cs file in an earlier build.
  2. Comment out the lines which run SchemaCompiler.

I would suggest option 2 at least initially. The makefile in src\schema\ would be a good first place to look.

Note: That this build would never have worked from source without some modifications before. So if your product is built off this, then however did it must have worked around this first.

Richard

SLK Coordinator

http://blog.salamandersoft.co.uk

Jan 5, 2011 at 3:11 PM

Richard,

Thanks so much for responding, I'll give those options a try and see what I can come up with. You are correct by the way, it was originally altered to get it all to work, however, the individual responsible for those modifications is no longer with us and seems to have not kept up to date contact information. Again, thank you much and hopefully that'll get me headed in the right direction!