VS 2010 & Ryzom

Added by pavelb over 6 years ago

I need help with installation on the environment where installed VS 2010. I have followed all the instructions, at least I think that I followed. I even installed C++ 2008 Express. However, when I try to create project using CMake I get the error.
I never have worked before using anything except VS itself. So, if anyone can help me with the installation the environment, I'd very appreciate it.

@Check for working CXX compiler using: Visual Studio 9 2008
Check for working CXX compiler using: Visual Studio 9 2008 -- broken
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:45 (MESSAGE):
The C++ compiler "cl" is not able to compile a simple test program.

It fails with the following output:
Change Dir: C:/Projects/MyProjects/Ryzom/Ryzom/code/code/build/CMakeFiles/CMakeTmp
Run Build Command:C:\PROGRA~2\MICROS~1.0\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec
Microsoft (R) Visual Studio Version 9.0.30729.1.
Copyright (C) Microsoft Corp.  All rights reserved.
'C:\Projects\MyProjects\Ryzom\Ryzom\code\code\build\CMakeFiles\CMakeTmp\ALL_BUILD.vcproj'
cannot be opened because its project type (.vcproj) is not supported by
this version of the application.
To open it, please use a version that supports this type of project.
'C:\Projects\MyProjects\Ryzom\Ryzom\code\code\build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcproj'
cannot be opened because its project 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
Add-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 <pid>
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:45 (PROJECT)

Configuring incomplete, errors occurred!@


Replies (32)

RE: VS 2010 & Ryzom - Added by kervala over 6 years ago

Did you try to generate a VC++ 2010 solution ?

That's working on my PC with both VC++ 2005, 2008 and 2010 installed (express versions of course :p).

RE: VS 2010 & Ryzom - Added by pavelb over 6 years ago

Can we contact by email? Mine is .

RE: VS 2010 & Ryzom - Added by pavelb over 6 years ago

What do you mean by generate VC++ solution? I assumed it is what should be done by CMake and it didn't work.

RE: VS 2010 & Ryzom - Added by Botanic over 6 years ago

Looks like you are generating the wrong version with CMAKE

Can you screenshot your cmake settings?

Also see http://dev.ryzom.com/projects/ryzom/wiki/BuildForWindowsCmake

RE: VS 2010 & Ryzom - Added by pavelb over 6 years ago

I have attached screenshot. This is the main panel, if it is what you meant. Those are the instructions from your URL that I have tried to follow. Also, I have attached the folder structure image + VS 2010, that I tried to create by myself. However, as I found out there are different project and I have to know, at least how many to organize the VS solution properly. I hoped that CMake will help me with it.

CMakeMainPanel.png - CMake Main Panel Screenshot (81.8 kB)

FolderStructure.png - Folder Structure (80.6 kB)

VS2010.png - VS Forlder Structure (35.7 kB)

RE: VS 2010 & Ryzom - Added by molator over 6 years ago

Select VS 2010 instead.

RE: VS 2010 & Ryzom - Added by Botanic over 6 years ago

I see your problem your paths are all wrong, cmake generates the projects and everything in a specific structure so i wouldn't recommend putting it in the projects directory initially.

If you follow the paths in that link above exactly it will generate the projects for you and "just work".

Once you have it working then you can change the directory structure around as you will see how it all lays itself out.

For example ALL_BUILD is generated by CMAKE and put into /code/build/ALL_BUILD.vcproj

RE: VS 2010 & Ryzom - Added by pavelb over 6 years ago

It didn't help, when I copied the files from previous directory to default one. I am going to try later on to follow the instructions from the beginning using the default directories suggested in instructions and see if it helps.

RE: VS 2010 & Ryzom - Added by Botanic over 6 years ago

Just do it clean from the start and make sure you select the correct msvc version and it should be easy to setup.

RE: VS 2010 & Ryzom - Added by kervala over 6 years ago

pavelb wrote:

It didn't help, when I copied the files from previous directory to default one. I am going to try later on to follow the instructions from the beginning using the default directories suggested in instructions and see if it helps.

Sorry, but you're not following the tutorial.

Why have you two "Ryzom" and "code" folders ?

When pressing "Configure", you should have something like that (even if you have any compiler error).

RE: VS 2010 & Ryzom - Added by pavelb over 6 years ago

This one is simple. When I start any project (I am speaking about my day-by-day developement), from the beginning I am starting to organize for proper Source Control folder structure. I have tried to do so with this project, too, but apparently something wrong I have done, because I did work with VC++ long time ago and it is not the same as C#, for instance.

Regarding the version, my main version is VS2010 and CMake probably start to use VS++ 2010 compiler for installation. So, I am going to delete everything from C:\ryzom and try it from the beginning.

RE: VS 2010 & Ryzom - Added by pavelb over 6 years ago

Here the steps I did:
1. Created Folder c:\Ryzom
2. using TortoiseHg cloned http://ryzom.hg.sourceforge.net:8000/hgroot/ryzom/ryzom
3. Copied external folders in c:\Ryzom
4. Went to C:\Ryzom\code\ryzom\client\client.cfg to put FINAL_VERSION to Off and PatchWatched to 0. I didn't find anything there, except redirection to the client_default.cfg. I opened that file and didn't find FINAL_VERSION there and PatchWatched = 0. So, I didn't do any changes.
5. Opened CMake and typed in the c:\Ryzom\code and C:\Ryzom\code\build
6. Clicked "Configure" button
7. In prompted windows I said yes to create new folder "C:\Ryzom\code\build"
8. I chose the Option "Visual Studio 9 2008" and "Use default native compilers"
9. Clicked "Finish" and got the error that you saw before.

So, my question is what did I do wrong? Maybe I shouldn't use "Use default native compilers" because CMake doesn't work with VS2010.

RE: VS 2010 & Ryzom - Added by molator over 6 years ago

FINAL_VERSION is in CMake not in the client settings.

RE: VS 2010 & Ryzom - Added by pavelb over 6 years ago

pavelb wrote:

Here the steps I did:
1. Created Folder c:Ryzom
2. using TortoiseHg cloned http://ryzom.hg.sourceforge.net:8000/hgroot/ryzom/ryzom
3. Copied external folders in c:Ryzom
4. Went to C:Ryzomcode

yzomclientclient.cfg to put FINAL_VERSION to Off and PatchWatched to 0. I didn't find anything there, except redirection to the client_default.cfg. I opened that file and didn't find FINAL_VERSION there and PatchWatched = 0. So, I didn't do any changes.

5. Opened CMake and typed in the c:Ryzomcode and C:Ryzomcodeuild
6. Clicked "Configure" button
7. In prompted windows I said yes to create new folder "C:Ryzomcodeuild"
8. I chose the Option "Visual Studio 9 2008" and "Use default native compilers"
9. Clicked "Finish" and got the error that you saw before.

So, my question is what did I do wrong? Maybe I shouldn't use "Use default native compilers" because CMake doesn't work with VS2010.

RE: VS 2010 & Ryzom - Added by pavelb over 6 years ago

molator wrote:

FINAL_VERSION is in CMake not in the client settings.

What do you mean "in CMake"? Where? Do you mean to click "Add Entry"?

RE: VS 2010 & Ryzom - Added by molator over 6 years ago

You will see it as soon as you will be able to create the project with CMake.
Select VS 2010 or it won't search the proper one.
By the way, it's VS C++ not C#.

RE: VS 2010 & Ryzom - Added by kervala over 6 years ago

Did you install VC++ 2010 or VC# 2010 ?

Your C++ compiler is not correctly set apparently.

RE: VS 2010 & Ryzom - Added by pavelb over 6 years ago

kervala wrote:

Did you install VC++ 2010 or VC# 2010 ?

Your C++ compiler is not correctly set apparently.

I have Full VS2010 Professional that includes everything, C#, F#, C++, VB, Sharepoint and all other types of the projects.

RE: VS 2010 & Ryzom - Added by pavelb over 6 years ago

Sry, Premium

+ I have installed VC++ Express 2008. I thought it might help.

RE: VS 2010 & Ryzom - Added by kervala over 6 years ago

I don't understand why you get "Microsoft (R) Visual Studio Version 9.0.30729.1." ? Are you using VC++ 2010 or 2008 ?

If you want to generate a VC++ 2010 solution, you have to choose "Visual Studio 10" or "Visual Studio 10 Win64" in CMake.

RE: VS 2010 & Ryzom - Added by pavelb over 6 years ago

I don't have this options in CMake. I went to the link from the Wiki. In the version I have there is only up to 2008.

RE: VS 2010 & Ryzom - Added by sfb over 6 years ago

pavelb wrote:

I don't have this options in CMake. I went to the link from the Wiki. In the version I have there is only up to 2008.

What version of CMake are you using?

Thanks,
sfb
/s

RE: VS 2010 & Ryzom - Added by pavelb over 6 years ago

sfb wrote:

pavelb wrote:

I don't have this options in CMake. I went to the link from the Wiki. In the version I have there is only up to 2008.

What version of CMake are you using?

Thanks,
sfb
/s

I found newer version of CMake and it starts to do something.
Now I have this error:
CMake Error at C:/Tools/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
Could NOT find DirectXSDK (missing: DXSDK_DIR DXSDK_GUID_LIBRARY
DXSDK_DINPUT_LIBRARY)
Call Stack (most recent call first):
C:/Tools/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
CMakeModules/FindDirectXSDK.cmake:57 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
nel/CMakeLists.txt:10 (FIND_PACKAGE)

P.S. Ignore this message. Second part. Apparently DirectX SDK is not installed on this computer, only on VMs.

RE: VS 2010 & Ryzom - Added by molator over 6 years ago

Better.
Now follow the guide:
http://dev.ryzom.com/projects/ryzom/wiki/BuildForWindowsCmake
and install DirectX SDK

RE: VS 2010 & Ryzom - Added by pavelb over 6 years ago

OK, the error still there regarding DirectX. See Attachments:

DirectXInstalled.png (67 kB)

ErrorScreenshot.png - Error Screen (139.2 kB)

1 2 Next » (1-25/32)