Strange T3D 3.10 Problem.

There are no stupid questions, just stupid answers.
  • 1
  • 4
  • 5
  • 6
  • 7
  • 8
74 posts Page 6 of 8
BOS
Posts: 46
Joined: Wed Jul 26, 2017 11:56 am
by BOS » Wed Aug 02, 2017 2:34 am
Timmy wrote:Ok happy days than. Yeah bullet physics is very easy to compile in, just go back and give that a tick in cmake and rebuild ya project


Brilliant, you have been so helpful.

Thank you so much.
BOS
Posts: 46
Joined: Wed Jul 26, 2017 11:56 am
by BOS » Wed Aug 02, 2017 1:09 pm
Right.

I tried creating a new project via CMake from the 3.10 source and now all of a sudden I am getting errors saying "the project files might be invalid".

Before that, another project I tried to INSTALL via VS 2017 failed to build.

I didn't change anything from the source, and the procedures I followed are the same as I did yday.

I've decided to drop back down to 3.6.1 as I am having far too many problems with 3.10 and the CMake build.

Anyway, It didn't generate an errors log file for some reason.
JeffR
Steering Committee
Steering Committee
Posts: 763
Joined: Tue Feb 03, 2015 9:49 pm
 
by JeffR » Wed Aug 02, 2017 3:36 pm
BOS: Can you clarify a little on the 'the project files might be invalid' bit? What's throwing that message? VS? CMake?
BOS
Posts: 46
Joined: Wed Jul 26, 2017 11:56 am
by BOS » Wed Aug 02, 2017 3:40 pm
JeffR wrote:BOS: Can you clarify a little on the 'the project files might be invalid' bit? What's throwing that message? VS? CMake?



Hello,

It says " Error in configuration process, Project Files might be invalid "

This is the message that CMake generates.

IT also says in the output:

" Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
0.4.0 :: 4 :: 0 :: 4 :: 2.0
Performing Test HAVE_WIN32_CC "
BOS
Posts: 46
Joined: Wed Jul 26, 2017 11:56 am
by BOS » Wed Aug 02, 2017 3:45 pm
Trying a new project now and I will tell you what it says.
BOS
Posts: 46
Joined: Wed Jul 26, 2017 11:56 am
by BOS » Wed Aug 02, 2017 4:06 pm
Hello,

VS 2017 generates the following message:

1>Done building project "NID310.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


I can assure you I did not rush and I was able to follow all the procedures step by step.

This is the output from CMake:

The C compiler identification is MSVC 19.10.25019.0
The CXX compiler identification is MSVC 19.10.25019.0
Check for working C compiler: ~VS 2017 Community/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe
Check for working C compiler: ~VS 2017 Community/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler: ~VS 2017 Community/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe
Check for working CXX compiler: ~VS 2017 Community/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for stddef.h
Looking for stddef.h - found
Check size of long
Check size of long - done
Check size of long long
Check size of long long - done
Performing Test HAVE_STD_C11
Performing Test HAVE_STD_C11 - Failed
Performing Test HAVE_STD_C99
Performing Test HAVE_STD_C99 - Failed
Checking _FILE_OFFSET_BITS for large files
Checking _FILE_OFFSET_BITS for large files - not needed
Performing Test HAVE_RESTRICT
Performing Test HAVE_RESTRICT - Failed
Performing Test HAVE_INLINE
Performing Test HAVE_INLINE - Success
Performing Test HAVE_STRUCT_TIMESPEC
Performing Test HAVE_STRUCT_TIMESPEC - Success
Performing Test HAVE_LIBATOMIC
Performing Test HAVE_LIBATOMIC - Failed
Performing Test HAVE_C99_VLA
Performing Test HAVE_C99_VLA - Failed
Performing Test HAVE_C99_BOOL
Performing Test HAVE_C99_BOOL - Success
Performing Test HAVE_C11_STATIC_ASSERT
Performing Test HAVE_C11_STATIC_ASSERT - Failed
Performing Test HAVE_C11_ALIGNAS
Performing Test HAVE_C11_ALIGNAS - Failed
Performing Test HAVE_C11_ATOMIC
Performing Test HAVE_C11_ATOMIC - Failed
Performing Test HAVE_GCC_FORMAT
Performing Test HAVE_GCC_FORMAT - Failed
Looking for stdbool.h
Looking for stdbool.h - found
Looking for stdalign.h
Looking for stdalign.h - not found
Looking for malloc.h
Looking for malloc.h - found
Looking for dirent.h
Looking for dirent.h - not found
Looking for strings.h
Looking for strings.h - not found
Looking for cpuid.h
Looking for cpuid.h - not found
Looking for intrin.h
Looking for intrin.h - found
Looking for sys/sysconf.h
Looking for sys/sysconf.h - not found
Looking for fenv.h
Looking for fenv.h - found
Looking for float.h
Looking for float.h - found
Looking for ieeefp.h
Looking for ieeefp.h - not found
Looking for guiddef.h
Looking for guiddef.h - found
Looking for pow in m
Looking for pow in m - not found
Looking for dlopen in dl
Looking for dlopen in dl - not found
Looking for dlfcn.h
Looking for dlfcn.h - not found
Performing Test HAVE_CPUID_INTRINSIC
Performing Test HAVE_CPUID_INTRINSIC - Success
Looking for aligned_alloc
Looking for aligned_alloc - not found
Looking for posix_memalign
Looking for posix_memalign - not found
Looking for _aligned_malloc
Looking for _aligned_malloc - found
Looking for lrintf
Looking for lrintf - found
Looking for modff
Looking for modff - found
Looking for alloca
Looking for alloca - found
Looking for _controlfp
Looking for _controlfp - found
Looking for __control87_2
Looking for __control87_2 - found
Looking for stat
Looking for stat - found
Looking for strtof
Looking for strtof - found
Looking for strcasecmp
Looking for strcasecmp - not found
Looking for _stricmp
Looking for _stricmp - found
Looking for strncasecmp
Looking for strncasecmp - not found
Looking for _strnicmp
Looking for _strnicmp - found
Looking for strnlen
Looking for strnlen - found
Looking for snprintf
Looking for snprintf - found
Looking for isfinite
Looking for isfinite - found
Looking for isnan
Looking for isnan - found
Looking for windows.h
Looking for windows.h - found
Looking for xmmintrin.h
Looking for xmmintrin.h - found
Looking for emmintrin.h
Looking for emmintrin.h - found
Looking for pmmintrin.h
Looking for pmmintrin.h - found
Looking for smmintrin.h
Looking for smmintrin.h - found
Looking for arm_neon.h
Looking for arm_neon.h - not found
Could NOT find ALSA (missing: ALSA_LIBRARY ALSA_INCLUDE_DIR)
Could NOT find OSS (missing: OSS_INCLUDE_DIR)
Could NOT find AudioIO (missing: AUDIOIO_INCLUDE_DIR)
Could NOT find SoundIO (missing: SOUNDIO_LIBRARY SOUNDIO_INCLUDE_DIR)
Could NOT find QSA (missing: QSA_LIBRARY QSA_INCLUDE_DIR)
Looking for include files windows.h, mmsystem.h
Looking for include files windows.h, mmsystem.h - found
Looking for waveOutOpen in winmm
Looking for waveOutOpen in winmm - found
Could NOT find DSound (missing: DSOUND_LIBRARY DSOUND_INCLUDE_DIR)
Looking for mmdeviceapi.h
Looking for mmdeviceapi.h - found
Could NOT find PortAudio (missing: PORTAUDIO_LIBRARY PORTAUDIO_INCLUDE_DIR)
Could NOT find PulseAudio (missing: PULSEAUDIO_LIBRARY PULSEAUDIO_INCLUDE_DIR)
Could NOT find JACK (missing: JACK_LIBRARY JACK_INCLUDE_DIR)
Looking for include files SLES/OpenSLES.h, SLES/OpenSLES_Android.h
Looking for include files SLES/OpenSLES.h, SLES/OpenSLES_Android.h - not found

Building OpenAL with support for the following backends:
WinMM, MMDevApi, WaveFile, Null

Building with support for CPU extensions:
Default, SSE, SSE2, SSE3, SSE4.1

WARNING: Building the Windows version without DirectSound output
This is probably NOT what you want!

Looking for include file inttypes.h
Looking for include file inttypes.h - found
Looking for include file stdint.h
Looking for include file stdint.h - found
Looking for include file sys/types.h
Looking for include file sys/types.h - found
writing ~T3D 310 2017/My Projects/NID310/source/torqueConfig.h
Prepare Template(Full) install...
Configuring done
Generating done


Thanks
Timmy
Posts: 308
Joined: Thu Feb 05, 2015 3:20 am
by Timmy » Thu Aug 03, 2017 12:33 am
Ok that PkgConfig error can be safely ignored, it is actually from libSDL cmake setup. It's a harmless error.

Anyway, your cmake setup appears to be ok, in VS when it fails to compile, can you compile it again and than paste the output here from the build window. So compile it once and let it fail, than compile it again by just hitting build->build solution and paste the results of that second one.
BOS
Posts: 46
Joined: Wed Jul 26, 2017 11:56 am
by BOS » Thu Aug 03, 2017 12:46 am
Timmy wrote:Ok that PkgConfig error can be safely ignored, it is actually from libSDL cmake setup. It's a harmless error.

Anyway, your cmake setup appears to be ok, in VS when it fails to compile, can you compile it again and than paste the output here from the build window. So compile it once and let it fail, than compile it again by just hitting build->build solution and paste the results of that second one.


Understood. I will do this tomorrow.
BOS
Posts: 46
Joined: Wed Jul 26, 2017 11:56 am
by BOS » Fri Aug 04, 2017 3:15 pm
Sorry for the delay.

Here is the Log from VS 2017 after a failed build:

1>------ Build starte~: Project: NID310, Configuration: Debug Win32 ------
1>sfxXAudioDevice.cpp
1>sfxXAudioProvider.cpp
1>gfxD3D9CardProfiler.cpp
1>gfxD3D9Cubemap.cpp
1>~:\T3D 310 2017\Engine\source\gfx/D3D9/gfxD3D9Device.h(31): fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory (compiling source file ~:\T3D 310 2017\Engine\source\gfx\D3D9\gfxD3D9Cubemap.cpp)
1>~:\T3D 310 2017\Engine\source\gfx/D3D9/gfxD3D9Device.h(31): fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory (compiling source file ~:\T3D 310 2017\Engine\source\gfx\D3D9\gfxD3D9CardProfiler.cpp)
1>gfxD3D9Device.cpp
1>gfxD3D9Device.regen-states.cpp
1>~:\T3D 310 2017\Engine\source\gfx/D3D9/gfxD3D9Device.h(31): fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory (compiling source file ~:\T3D 310 2017\Engine\source\gfx\D3D9\gfxD3D9Device.regen-states.cpp)
1>~:\T3D 310 2017\Engine\source\gfx/D3D9/gfxD3D9Device.h(31): fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory (compiling source file ~:\T3D 310 2017\Engine\source\gfx\D3D9\gfxD3D9Device.cpp)
1>gfxD3D9OcclusionQuery.cpp
1>gfxD3D9PrimitiveBuffer.cpp
1>~:\T3D 310 2017\Engine\source\gfx/D3D9/gfxD3D9Device.h(31): fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory (compiling source file ~:\T3D 310 2017\Engine\source\gfx\D3D9\gfxD3D9OcclusionQuery.cpp)
1>~:\T3D 310 2017\Engine\source\gfx/D3D9/gfxD3D9Device.h(31): fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory (compiling source file ~:\T3D 310 2017\Engine\source\gfx\D3D9\gfxD3D9PrimitiveBuffer.cpp)
1>gfxD3D9QueryFence.cpp
1>gfxD3D9Shader.cpp
1>~:\T3D 310 2017\Engine\source\gfx/D3D9/gfxD3D9Device.h(31): fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory (compiling source file ~:\T3D 310 2017\Engine\source\gfx\D3D9\gfxD3D9QueryFence.cpp)
1>gfxD3D9TextureManager.cpp
1>~:\T3D 310 2017\Engine\source\gfx/D3D9/gfxD3D9Device.h(31): fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory (compiling source file ~:\T3D 310 2017\Engine\source\gfx\D3D9\gfxD3D9TextureManager.cpp)
1>gfxD3D9TextureObject.cpp
1>~:\T3D 310 2017\Engine\source\gfx/D3D9/gfxD3D9Device.h(31): fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory (compiling source file ~:\T3D 310 2017\Engine\source\gfx\D3D9\gfxD3D9TextureObject.cpp)
1>gfxD3D9VertexBuffer.cpp
1>~:\T3D 310 2017\Engine\source\gfx/D3D9/gfxD3D9Device.h(31): fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory (compiling source file ~:\T3D 310 2017\Engine\source\gfx\D3D9\gfxD3D9VertexBuffer.cpp)
1>screenshotD3D9.cpp
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioDevice.cpp(57): error C2664: 'HRESULT IXAudio2::CreateMasteringVoice(IXAudio2MasteringVoice **,UINT32,UINT32,UINT32,LPCWSTR,const XAUDIO2_EFFECT_CHAIN *,AUDIO_STREAM_CATEGORY)': cannot convert argument 5 from 'U32' to 'LPCWSTR'
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioDevice.cpp(57): note: Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioProvider.cpp(53): error C3646: 'role': unknown override specifier
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioProvider.cpp(53): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioProvider.cpp(104): error C2039: 'GetDeviceCount': is not a member of 'IXAudio2'
1>~:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\um\xaudio2.h(400): note: see declaration of 'IXAudio2'
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioProvider.cpp(107): error C2065: 'XAUDIO2_DEVICE_DETAILS': undeclared identifier
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioProvider.cpp(107): error C2146: syntax error: missing ';' before identifier 'details'
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioProvider.cpp(107): error C2065: 'details': undeclared identifier
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioProvider.cpp(108): error C2039: 'GetDeviceDetails': is not a member of 'IXAudio2'
1>~:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\um\xaudio2.h(400): note: see declaration of 'IXAudio2'
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioProvider.cpp(108): error C2065: 'details': undeclared identifier
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioProvider.cpp(116): error C2065: 'details': undeclared identifier
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioProvider.cpp(116): error C2228: left of '.DisplayName' must have class/struct/union
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioProvider.cpp(116): note: type is 'unknown-type'
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioProvider.cpp(119): error C2039: 'role': is not a member of 'SFXXAudioProvider::XADeviceInfo'
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioProvider.cpp(49): note: see declaration of 'SFXXAudioProvider::XADeviceInfo'
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioProvider.cpp(119): error C2065: 'details': undeclared identifier
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioProvider.cpp(119): error C2228: left of '.Role' must have class/struct/union
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioProvider.cpp(119): note: type is 'unknown-type'
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioProvider.cpp(120): error C2065: 'details': undeclared identifier
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioProvider.cpp(120): error C2228: left of '.OutputFormat' must have class/struct/union
1>~:\T3D 310 2017\Engine\source\sfx\xaudio\sfxXAudioProvider.cpp(120): note: type is 'unknown-type'
1>videoCaptureD3D9.cpp
1>gfxD3D9Device.pc.cpp
1>~:\T3D 310 2017\Engine\source\gfx/D3D9/gfxD3D9Device.h(31): fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory (compiling source file ~:\T3D 310 2017\Engine\source\gfx\D3D9\pc\gfxD3D9Device.pc.cpp)
1>gfxD3D9PrimitiveBuffer.pc.cpp
1>~:\T3D 310 2017\Engine\source\gfx/D3D9/gfxD3D9Device.h(31): fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory (compiling source file ~:\T3D 310 2017\Engine\source\gfx\D3D9\pc\gfxD3D9PrimitiveBuffer.pc.cpp)
1>gfxPCD3D9Device.cpp
1>~:\T3D 310 2017\Engine\source\gfx/D3D9/gfxD3D9Device.h(31): fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory (compiling source file ~:\T3D 310 2017\Engine\source\gfx\D3D9\pc\gfxPCD3D9Device.cpp)
1>gfxPCD3D9Target.cpp
1>~:\T3D 310 2017\Engine\source\gfx/D3D9/gfxD3D9Device.h(31): fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory (compiling source file ~:\T3D 310 2017\Engine\source\gfx\D3D9\gfxD3D9Shader.cpp)
1>~:\T3D 310 2017\Engine\source\gfx/D3D9/gfxD3D9Device.h(31): fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory (compiling source file ~:\T3D 310 2017\Engine\source\gfx\D3D9\screenshotD3D9.cpp)
1>~:\T3D 310 2017\Engine\source\gfx/D3D9/gfxD3D9Device.h(31): fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory (compiling source file ~:\T3D 310 2017\Engine\source\gfx\D3D9\videoCaptureD3D9.cpp)
1>~:\T3D 310 2017\Engine\source\gfx/D3D9/gfxD3D9Device.h(31): fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory (compiling source file ~:\T3D 310 2017\Engine\source\gfx\D3D9\pc\gfxPCD3D9Target.cpp)
1>Done building project "NID310.vcxproj" -- FAILED.
========== Buil~: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Timmy
Posts: 308
Joined: Thu Feb 05, 2015 3:20 am
  by Timmy » Sat Aug 05, 2017 12:15 am
Luckily that is a very easy fix, you need to download and install the old June 2010 DirectXSDK. You can get it here https://www.microsoft.com/en-au/download/details.aspx?id=6812 . After you have installed, reboot your PC, run cmake again to make sure it picks up those new directx sdk paths and it will compile just fine :D

On a general note, future versions of T3D such as the development version do not require the old deprecated DirectXSDK unless you really want to run XAudio. T3D versions 3.10 and earlier do require the deprecated DirectXSDK though.
  • 1
  • 4
  • 5
  • 6
  • 7
  • 8
74 posts Page 6 of 8

Who is online

Users browsing this forum: No registered users and 2 guests