building with the FBX library

Get help with installing and running the Cafu Engine here. This forum is also for general questions and discussion of all aspects regarding the Cafu Engine.
ufac4321
Posts: 10
Joined: 2017-02-09, 09:58

building with the FBX library

Postby ufac4321 » 2017-02-16, 22:51

So in short...I NEED to use git, just downloading zips of will cause me to be close to tears..seeing this exact same message, every four hours of trying to compile it.

This engine is brilliant and does everything I need, but trying to get the model import is killing me. It's taking days....

I know it's cheating, but can anyone just send me a link to a compiled version....

Bri





cl /FoLibs\build\win32\vc11\X86\release\Models\Loader_fbx.obj /c Libs\Models\Loader_fbx.cpp /TP /nologo /GR /EHsc /MD /O2 /Ob2 /J /W3 /WX /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG /DSCONS_BUILD_DIR=build/win32/vc11/X86/release /DHAVE_FBX_SDK /IExtLibs\freetype\include /IExtLibs\libpng /IExtLibs\zlib /ILibs /IExtLibs /IExtLibs\fbx\include
Loader_fbx.cpp
Libs\Models\Loader_fbx.cpp(341) : error C2039: 'GetEvaluator' : is not a member of 'fbxsdk::FbxScene'
ExtLibs\fbx\include\fbxsdk/scene/fbxscene.h(61) : see declaration of 'fbxsdk::FbxScene'
Libs\Models\Loader_fbx.cpp(341) : error C2227: left of '->GetNodeLocalTransform' must point to class/struct/union/generic type
Libs\Models\Loader_fbx.cpp(720) : error C2039: 'GetEvaluator' : is not a member of 'fbxsdk::FbxScene'
ExtLibs\fbx\include\fbxsdk/scene/fbxscene.h(61) : see declaration of 'fbxsdk::FbxScene'
Libs\Models\Loader_fbx.cpp(720) : error C2227: left of '->SetContext' must point to class/struct/union/generic type
Libs\Models\Loader_fbx.cpp(729) : error C2039: 'GetEvaluator' : is not a member of 'fbxsdk::FbxScene'
ExtLibs\fbx\include\fbxsdk/scene/fbxscene.h(61) : see declaration of 'fbxsdk::FbxScene'
Libs\Models\Loader_fbx.cpp(729) : error C2227: left of '->GetNodeLocalTransform' must point to class/struct/union/generic type
scons: *** [Libs\build\win32\vc11\X86\release\Models\Loader_fbx.obj] Error 2
scons: building terminated because of errors.
User avatar
Carsten
Site Admin
Posts: 2103
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: building with the FBX library

Postby Carsten » 2017-02-18, 10:26

Hi Brian,
welcome to the Cafu forums! :welcome:

Please note that I've split your post, creating a new, standalone topic from it. That keeps discussions with different topics easier to follow.

About your question, can you please tell more about the source code that you're using?
That is, how did you obtain it (from Git clone or some zip download?) and how did you obtain and install the FBX SDK? At versions, respectively?
Best regards,
Carsten
ufac4321
Posts: 10
Joined: 2017-02-09, 09:58

Re: building with the FBX library

Postby ufac4321 » 2017-02-18, 16:56

Thanks Carsten,
I got Autodesk FBX SDK 2017.1 from autodesk, following the http://www.cafu.de/wiki/cppdev:fbxsdk
topic, and only got the fbx sdk, not the extensions

The version of Cafu I got using GIT, and got the November 15 2016 version, I didn't use the latest beta version

As I said, compiled many times ok before I added the fbk, and it builds everything but CAWE

Scons runs, and doesn't create everything again, so quits now after about a minute

Thanks Carsten

Brian


C:\Cafu>scons
scons: Reading SConscript files ...

os.chdir('ExtLibs/wxWidgets/build/msw')
nmake /nologo /f makefile.vc BUILD=debug SHARED=0 COMPILER_PREFIX=vc11
os.chdir('C:\\Cafu')
os.chdir('ExtLibs/wxWidgets/build/msw')
nmake /nologo /f makefile.vc BUILD=release SHARED=0 COMPILER_PREFIX=vc11
os.chdir('C:\\Cafu')

scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build\win32\vc11\X86\debug build\win32\vc11\X86\release
cl /FoLibs\build\win32\vc11\X86\release\Models\Loader_fbx.obj /c Libs\Models\Loader_fbx.cpp /TP /nologo /GR /EHsc /MD /O2 /Ob2 /J /W3 /WX /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG /DSCONS_BUILD_DIR=build/win32/vc11/X86/release /DHAVE_FBX_SDK /IExtLibs\freetype\include /IExtLibs\libpng /IExtLibs\zlib /ILibs /IExtLibs /IExtLibs\fbx\include
Loader_fbx.cpp
Libs\Models\Loader_fbx.cpp(341) : error C2039: 'GetEvaluator' : is not a member of 'fbxsdk::FbxScene'
ExtLibs\fbx\include\fbxsdk/scene/fbxscene.h(61) : see declaration of 'fbxsdk::FbxScene'
Libs\Models\Loader_fbx.cpp(341) : error C2227: left of '->GetNodeLocalTransform' must point to class/struct/union/generic type
Libs\Models\Loader_fbx.cpp(720) : error C2039: 'GetEvaluator' : is not a member of 'fbxsdk::FbxScene'
ExtLibs\fbx\include\fbxsdk/scene/fbxscene.h(61) : see declaration of 'fbxsdk::FbxScene'
Libs\Models\Loader_fbx.cpp(720) : error C2227: left of '->SetContext' must point to class/struct/union/generic type
Libs\Models\Loader_fbx.cpp(729) : error C2039: 'GetEvaluator' : is not a member of 'fbxsdk::FbxScene'
ExtLibs\fbx\include\fbxsdk/scene/fbxscene.h(61) : see declaration of 'fbxsdk::FbxScene'
Libs\Models\Loader_fbx.cpp(729) : error C2227: left of '->GetNodeLocalTransform' must point to class/struct/union/generic type
scons: *** [Libs\build\win32\vc11\X86\release\Models\Loader_fbx.obj] Error 2
scons: building terminated because of errors.

C:\Cafu>
User avatar
Carsten
Site Admin
Posts: 2103
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: building with the FBX library

Postby Carsten » 2017-02-18, 23:44

Hi Brian,

thanks for the information and console output!
The problem was/is that Autodesk folks love making backwards-incompatible changes that, to the best of my knowledge, are scarcely documented. And I didn't update the Cafu code to match the latest FBX SDK either. :cheesy:

Well, please run git pull, updating your source code to the latest commit in branch master. I've just added a fix with which the compile should complete successfully.

Please let me know if this works! :up:
Best regards,
Carsten
ufac4321
Posts: 10
Joined: 2017-02-09, 09:58

Re: building with the FBX library

Postby ufac4321 » 2017-02-19, 02:44

Thanks Carsten..I'll let you know..thanks for the fast response.

Brian
ufac4321
Posts: 10
Joined: 2017-02-09, 09:58

Re: building with the FBX library

Postby ufac4321 » 2017-02-19, 22:29

Hi Carsten,
redid everything, sdk in place. I know I'm doing something wrong..but I need a step by step with GIT...please don't make me have to learn that as well....I just want to import model and get on with LUA.


C:\Cafu>git pull
Already up-to-date.

C:\Cafu>

On compile...same sort stuff, as if I haven't got your changes...
scons: Reading SConscript files ...


scons: warning: Ignoring missing SConscript 'ExtLibs\glfw\build\win32\vc11\amd64\debug\SConscript'
File "C:\Cafu\SConstruct", line 508, in <module>

scons: warning: Ignoring missing SConscript 'ExtLibs\glfw\build\win32\vc11\amd64\release\SConscript'
File "C:\Cafu\SConstruct", line 509, in <module>
os.chdir('ExtLibs/wxWidgets/build/msw')
nmake /nologo /f makefile.vc BUILD=debug SHARED=0 COMPILER_PREFIX=vc11 TARGET_CPU=AMD64
os.chdir('C:\\Cafu')
os.chdir('ExtLibs/wxWidgets/build/msw')
nmake /nologo /f makefile.vc BUILD=release SHARED=0 COMPILER_PREFIX=vc11 TARGET_CPU=AMD64
os.chdir('C:\\Cafu')

scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build\win32\vc11\amd64\debug build\win32\vc11\amd64\release
cl /Fobuild\win32\vc11\amd64\release\CaTools\CaSanity.obj /c CaTools\CaSanity.cpp /TP /nologo /GR /EHsc /MD /O2 /Ob2 /J /W3 /WX /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG /DSCONS_BUILD_DIR=build/win32/vc11/amd64/release /IExtLibs\freetype\include /IExtLibs\libpng /IExtLibs\zlib /ILibs /IExtLibs /Ibuild\win32\vc11\amd64\release\ExtLibs\glfw\include /IExtLibs\glfw\include /Ibuild\win32\vc11\amd64\release\ExtLibs\tclap\include /IExtLibs\tclap\include
CaSanity.cpp
CaTools\CaSanity.cpp(32) : fatal error C1083: Cannot open include file: 'GLFW/glfw3.h': No such file or directory
scons: *** [build\win32\vc11\amd64\release\CaTools\CaSanity.obj] Error 2
scons: building terminated because of errors.


I don't use GIT, so any chance you can just tell me idiot style, how I get updated master?

Thanks Carsten.

In tears...again.....

Bri
User avatar
Carsten
Site Admin
Posts: 2103
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: building with the FBX library

Postby Carsten » 2017-02-20, 12:43

ufac4321 wrote:redid everything, sdk in place. I know I'm doing something wrong..but I need a step by step with GIT...

Don't worry, you did everything right.

On compile...same sort stuff, as if I haven't got your changes...

No, there is progress! :up:

I don't use GIT, so any chance you can just tell me idiot style, how I get updated master?

I understand your frustration, but Git is really the simplest way – you're almost there.

As described in more detail at viewtopic.php?t=1833, please run

Code: Select all

git submodule init
git submodule update

This should add the GLFW library. Then start SCons again, and it should work (or at least make progress :cheesy:)
Best regards,
Carsten
ufac4321
Posts: 10
Joined: 2017-02-09, 09:58

Re: building with the FBX library

Postby ufac4321 » 2017-02-21, 18:25

Carsten, you are the man!
Everything compiled great..still won't import..but that's most likely my failures hanging around, hopefully just got to clean everything up and keep on it.

Again, thanks for brilliant work.

Bri
ufac4321
Posts: 10
Joined: 2017-02-09, 09:58

Re: building with the FBX library

Postby ufac4321 » 2017-02-21, 19:54

Getting there...

still getting problems, anything I try complains about glfw....I sound like a whinging child now.....

Without messing up anything you've thankfully fixed ...any help on what to do now?
Brian


C:\Cafu>git submodule sync
Synchronizing submodule url for 'ExtLibs/glfw'
fatal: Not a git repository: ../../.git/modules/ExtLibs/glfw
fatal: Not a git repository: ../../.git/modules/ExtLibs/glfw
fatal: Not a git repository: ../../.git/modules/ExtLibs/glfw
Synchronizing submodule url for 'Games/DeathMatch/Textures'
User avatar
Carsten
Site Admin
Posts: 2103
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: building with the FBX library

Postby Carsten » 2017-02-22, 10:43

Hi Brian,
ufac4321 wrote:still getting problems, anything I try complains about glfw....

What problems?

C:\Cafu>git submodule sync
Synchronizing submodule url for 'ExtLibs/glfw'
fatal: Not a git repository: ../../.git/modules/ExtLibs/glfw
fatal: Not a git repository: ../../.git/modules/ExtLibs/glfw
fatal: Not a git repository: ../../.git/modules/ExtLibs/glfw
Synchronizing submodule url for 'Games/DeathMatch/Textures'

Why do you run git submodule sync in the first place?
Did these not work?

Code: Select all

git submodule init
git submodule update

What is the output of these commands?

Code: Select all

C:\Cafu> type .gitmodules
C:\Cafu> type .git\config
Best regards,
Carsten
ufac4321
Posts: 10
Joined: 2017-02-09, 09:58

Re: building with the FBX library

Postby ufac4321 » 2017-02-23, 10:29

Thanks Carsten,
Moved all the old copies off the local drive and disconnected nas and usb drives...compile works great
No compile errors.

But I think you may have found my problem...!
on the git update...
fatal: Not a git repository: ../../.git/modules/ExtLibs/glfw

I haven't edited/customised anything except the scons template, which works fine.

Thanks again for your patience.

Bri









scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build\win32\vc11\amd64\debug build\win32\vc11\amd64\release
scons: `.' is up to date.
scons: done building targets.

C:\Cafu>type .gitmodules
[submodule "Games/DeathMatch/Textures"]
path = Games/DeathMatch/Textures
url = https://bitbucket.org/cafu/textures.git
[submodule "ExtLibs/glfw"]
path = ExtLibs/glfw
url = https://github.com/CarstenF/glfw.git

C:\Cafu>git submodule update
fatal: Not a git repository: ../../.git/modules/ExtLibs/glfw
Unable to find current revision in submodule path 'ExtLibs/glfw'

C:\Cafu>cd extlibs\glfw

C:\Cafu\ExtLibs\glfw>dir
Volume in drive C has no label.
Volume Serial Number is 3063-AF30

Directory of C:\Cafu\ExtLibs\glfw

02/21/2017 12:56 PM <DIR> .
02/21/2017 12:56 PM <DIR> ..
02/21/2017 12:42 PM 460 .appveyor.yml
02/21/2017 12:55 PM <DIR> .github
02/21/2017 12:42 PM 1,398 .gitignore
02/21/2017 12:42 PM 546 .travis.yml
02/21/2017 12:56 PM <DIR> build
02/21/2017 12:55 PM <DIR> CMake
02/21/2017 12:42 PM 14,709 CMakeLists.txt
02/21/2017 12:42 PM 1,171 cmake_uninstall.cmake.in
02/21/2017 12:42 PM 950 COPYING.txt
02/21/2017 12:54 PM <DIR> deps
02/21/2017 12:54 PM <DIR> docs
02/21/2017 12:54 PM <DIR> examples
02/21/2017 12:54 PM <DIR> include
02/21/2017 12:42 PM 9,151 README.md
02/21/2017 12:42 PM 942 SConscript
02/21/2017 12:55 PM <DIR> src
02/21/2017 12:55 PM <DIR> tests
8 File(s) 29,327 bytes
11 Dir(s) 14,273,466,368 bytes free

C:\Cafu\ExtLibs\glfw>
ufac4321
Posts: 10
Joined: 2017-02-09, 09:58

Re: building with the FBX library

Postby ufac4321 » 2017-02-24, 19:37

Thanks Carsten..I'd have gone Deadpool on anyone by this point...I was 3rd line IT engineer....
...."wipe the rabid foam from your mouth Brian, and start again,"

The obj that works, in that I can now load it, but I get 'file not found', but the objects/points are there, is attached.
Any other type of model file comes back with "No Loader is available for this type"

Do you think it's got anything to do with AMD and 64 bit....
User avatar
Carsten
Site Admin
Posts: 2103
Joined: 2004-08-19, 13:46
Location: Germany
Contact:

Re: building with the FBX library

Postby Carsten » 2017-02-26, 12:54

I got your sample model, thanks. I can open it normally: it must be upscaled somewhat, works flawless, but obviously comes without any texture images.
So I cannot see where "file not found" comes from?

If you have trouble with another model, please send this to me or attach here as well.

There is no relation to AMD or 64-bit.
Best regards,
Carsten
ufac4321
Posts: 10
Joined: 2017-02-09, 09:58

Re: building with the FBX library

Postby ufac4321 » 2017-03-01, 23:55

Carsten, you really are the man...the obj files now load from the compile cawe I started before I had to disappear...all tech info there..but the file not found I think refers to the blank world I was dumping it into.....but it does now load!
No errors.


How do I upscale it?, I don't want to mess this up now by trying to fiddle with it!

But I do see all of the golden gate root object in the left most window etc, and the skeleton info, so it's definitely there, but just a blue plane with the words "File not found " stretched across it in 3D

Saved fine as a cmdl :)

Bri
ufac4321
Posts: 10
Joined: 2017-02-09, 09:58

Re: building with the FBX library

Postby ufac4321 » 2017-03-02, 00:07

Carsten....you are genius....opening the cmdl gave me way more control...I can see it now ...so embarassed.

I'll leave you alone for a while while I fiddle with it...but not before imaging the PC!

Thanks again for all your patience.

Bri

Return to “Cafu Engine Support and Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest