Compiling issues the Kane Edition!

Added by Kane about 5 years ago

Well I'm having and going to have issues so I thought Id start posting some my errors and issues and hope to solve them and hope someday even 2 years down the road someone may search this on google or on the forums and find the answer!

What I got installed:
- VS9 Pro
- QT
- Microsoft DirectX SDK (February 2010)
- Microsoft SDKs v7.0

On Windows 7 64bit machine but compiling for 32.

Compiling issues with code\ryzom\client\client.sln

5>------ Build started: Project: driver_opengl, Configuration: Release Win32 ------
16>------ Build started: Project: driver_direct3d, Configuration: Release Win32 ------
17>------ Build started: Project: ryzom_configuration, Configuration: Release Win32 ------
15>Compiling...
16>Compiling...
17>Compiling...
15>stdopengl.cpp
16>stddirect3d.cpp
17>StdAfx.cpp
17>Compiling...
16>Compiling...
15>Compiling...
17>system_information_dlg.cpp
15>driver_opengl_vertex_program.cpp
16>driver_direct3d_vertex_program.cpp
17>sound_dlg.cpp
17>general_dlg.cpp
17>display_information_gl_dlg.cpp
17>display_information_d3d_dlg.cpp
17>display_dlg.cpp
17>.\display_dlg.cpp(222) : error C2065: 'LPDIRECTSOUND8' : undeclared identifier
17>.\display_dlg.cpp(222) : error C2146: syntax error : missing ';' before identifier '_DirectSound'
17>.\display_dlg.cpp(222) : error C2065: '_DirectSound' : undeclared identifier
17>.\display_dlg.cpp(224) : error C2065: '_DirectSound' : undeclared identifier
17>.\display_dlg.cpp(224) : error C3861: 'DirectSoundCreate8': identifier not found
17>.\display_dlg.cpp(230) : error C2065: '_DirectSound' : undeclared identifier
17>.\display_dlg.cpp(230) : error C2227: left of '->GetCaps' must point to class/struct/union/generic type
17> type is ''unknown-type''
17>.\display_dlg.cpp(236) : error C2065: '_DirectSound' : undeclared identifier
17>.\display_dlg.cpp(236) : error C2227: left of '->Release' must point to class/struct/union/generic type
17> type is ''unknown-type''
17>display_details_dlg.cpp
17>display_advanced_dlg.cpp
17>database.cpp
17>client_configDlg.cpp
17>client_config.cpp
16>driver_direct3d_vertex.cpp
17>cfg_file.cpp
15>driver_opengl_vertex_buffer_hard.cpp
17>base_dialog.cpp
17>bar.cpp
17>Generating Code...
16>driver_direct3d_texture.cpp
15>driver_opengl_vertex.cpp
16>driver_direct3d_shader.cpp
15>driver_opengl_texture.cpp
15>driver_opengl_states.cpp
16>driver_direct3d_render.cpp
15>driver_opengl_matrix.cpp
16>driver_direct3d_profile.cpp
15>driver_opengl_material.cpp
16>driver_direct3d_matrix.cpp
15>driver_opengl_light.cpp
16>driver_direct3d_material.cpp
15>driver_opengl_extension.cpp
16>driver_direct3d_light.cpp
15>driver_opengl.cpp
16>driver_direct3d_inputs.cpp
16>driver_direct3d_index.cpp
15>Generating Code...
16>driver_direct3d.cpp
16>Generating Code...
15>Linking...
16>Linking...
17>Build log was saved at "file://d:\SOURCECODE\ryzom\code\ryzom\tools\client\client_config\Release\BuildLog.htm"
17>ryzom_configuration - 9 error(s), 0 warning(s)


Replies (15)

RE: Compiling issues the Kane Edition! - Added by Tom316 about 5 years ago

That error looks like the DirectSound library / files are not directory linked in your Visual Studio setup.

RE: Compiling issues the Kane Edition! - Added by Kane about 5 years ago

Thanks Tom for the reply where are the DirectSound Libs usally located? I personally thought it was something to do with the DX ones but I double and tripped checked them and if they were not linked right id have a 100 more errors.

Thanks,
Kane

RE: Compiling issues the Kane Edition! - Added by Tom316 about 5 years ago

It should be found at C:\DirectX SDK\Lib\x86\DirectSound.lib (or where ever you have the DirectX SDK at)

Make sure you have that linked in your Libs.

RE: Compiling issues the Kane Edition! - Added by Kane about 5 years ago

Thanks again Tom looks like the newest does not offer that file.

D:\Program Files (x86)\Microsoft DirectX SDK (February 2010)\Lib\x86

Closest thing is dsound.lib

Thanks,
Kane

RE: Compiling issues the Kane Edition! - Added by Tom316 about 5 years ago

It should be dsound.lib No idea where I came up with DirectSound.lib..

If you have \Microsoft DirectX SDK (February 2010)\Lib\x86 in in the Lib includes it should work.

Hmm.

Can you post a pic of what or list what your VC -> Options -> Directory -> Library Files Listing looks like.

RE: Compiling issues the Kane Edition! - Added by Kane about 5 years ago

Not having the best of luck here is the setup of it just in case maybe I'm slight brain dead :)

123.png (55 kB)

1234.png (136.1 kB)

RE: Compiling issues the Kane Edition! - Added by Tom316 about 5 years ago

Well it looks good.. You might try moving the DirectX SDK line all the way to the top and see if that makes a difference or not.

RE: Compiling issues the Kane Edition! - Added by Kane about 5 years ago

however I manipulate it clean build up down removed or not removed I can't seam to get rid of that error. I know some of the DX must be working since it had 10 times more errors before. Not sure if you can share the one file maybe mines got some new stuff with it unless ur using the same version.

At this point I can't do much more then cry ;(

RE: Compiling issues the Kane Edition! - Added by Tom316 about 5 years ago

I am sure we are using the same versions of the file. Let me sleep on it and think about it and see if I cna come up with the answer.

Just to check id you goto the dsound.lib file and right click it and goto Details tab. Does the date created say 1/18/2010 ?

RE: Compiling issues the Kane Edition! - Added by Kane about 5 years ago

Using Microsoft DirectX SDK (March 2009) now vs the Microsoft DirectX SDK (February 2010)

here is the results on a clean fresh build: ========== Build: 17 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

That means perfect for that though I still get 1 error and I hate errors someone said ignore it but I rather solve it mind helping me :)

18> Creating library ..\..\bin\client_ryzom_r.lib and object ..\..\bin\client_ryzom_r.exp
18>Embedding manifest...
18>insert the hi res icon
18>The system cannot find the path specified.
18>Project : error PRJ0019: A tool returned an error code from "insert the hi res icon"
18>Build log was saved at "file://d:\SOURCECODE\ryzom\code\ryzom\obj\Release\client\BuildLog.htm"
18>client - 1 error(s), 1 warning(s)

RE: Compiling issues the Kane Edition! - Added by Sywindt about 5 years ago

Hi there,

I had the same problem; it has to do with _WIN32_WINNT not being defined, causing it to be set to 0x0400 which is too low for DX8. It only happens if you build client.sln first.

Compile the server sln first (it also includes the client); that will fix the issue.

RE: Compiling issues the Kane Edition! - Added by Kane about 5 years ago

Thanks I have not gotten the server compiled yet but I will give it a try the old DX did work though. The server is tomorrow's project :)

RE: Compiling issues the Kane Edition! - Added by kervala about 5 years ago

You can safely replace all DirectSoundCreate8, LPDIRECTSOUND8, etc... by DirectSoundCreate, LPDIRECTSOUND (just removing the 8 at the end).

The minimum supported Windows version is Windows 2000 so I suppose it should be safe to do that (and that works :p).

It seems like DirectSound hasn't been updated since so it's still the version 8 which is used in new SDKs.

RE: Compiling issues the Kane Edition! - Added by Kane about 5 years ago

Thanks for the advice and such guys been great hope someone takes this useful info and apply to the SVN.

The client does work 100% as far as I can tell now.

Tomorrow will be Delete the source folder and redo it again to see if I can first try. Then I'm going to try to compile the server next.

Thanks again everyone,
Kane

RE: Compiling issues the Kane Edition! - Added by vl about 5 years ago

18>insert the hi res icon
18>The system cannot find the path specified.
18>Project : error PRJ0019: A tool returned an error code from "insert the hi res icon"

This error was to a missing tool. I added the tool in the repository so if you update it, it should work without error now

(1-15/15)