Closed m0ppers closed 5 years ago
Thanks for your work and sending a PR, very useful!
I added a few comments to your changes. Could you look at them?
Few questions also:
2019.1: Starting with this version of the FBX SDK your programs must explicitly link with the zlib and libxml2 libraries. On Linux and MacOS, these libraries should already be part of the system. If not, you must install them.
Cheers, Guillaume
Stupid question: Where would I find these comments? :D Thought you added some comments to the commit but I don't see anything?
To your questions:
ahh...so it seems I was the first to build with the 2019 edition :D makes sense. So it is probably worthwhile to invest a bit more time into generalizing this. Will rework this to make it work for unix systems as well. Give me some more time. Probably will find some time on the weekend. this will probably be a bit bigger then (wanted to change only the necessary things to make it build for me so far).
yes. I will update the CI builds as well while I am at it.
puhhh...I am not a real CMake expert (is there anyone at all? :D). in the CMake builds I maintained so far PARENT_SCOPE was not unusual. so I guess it is ok? will have a detailed look once I rework this and update this PR.
Hi,
I didn't published the comments (and even lost them). So I typed them again. There's no stupid question ;)
Thank you for considering CI and unix, that's really helpfull! No worries for the timing.
Cheers, Guillaume
Some update: hope I got everything?
One more comment: I had problems getting it to build on MacOS: First OpenGL was deprecated (can be fixed with -DGL_SILENCE_DEPRECATION (or something like that) and apparently at least the new fbx sdk does some #pragma pack
stuff which is conflicting with some mac internal stuff...the official examples also throw a warning but not an error so they build. I could fix it by adding -Wno-pragma-pack not sure if that should be added to the cmake stuff.
Hi,
I have a good and a bad news. Good news first ;) ?
Thanks for the hard work, it's not that fun to maintain! I'll help if you can't find the time. That PR is very useful indeed !
Guillaume
oops....will fix...should have had a look at the logs....
Ok that was much more difficult than expected but I think it is working now. Can you check?
Hi,
It was difficult indeed as many things changed with this sdk (chmod, xml, zlib...). Thanks for your perseverance!
It works great! I just found that it was not possible anymore to use a old fbx sdk with vs2017: https://ci.appveyor.com/project/guillaumeblanc/ozz-animation/build/job/mktfh1nh7fti4em0?fullLog=true#L61 . It's due to sdk (compiler) folder name that was vs2015 before this sdk (not vs2017). I don't see how to fix it in a simple way. It can probably remain like that, unless you have an idea?
I'll integrate your PR to develop asap, it's already in a branch. Thanks a lot for your help!
Cheers, Guillaume
don't see a super simple way but the HINTS https://github.com/m0ppers/ozz-animation/blob/hotfix/vs0217-and-fbx2019/build-utils/cmake/modules/FindFbx.cmake#L107 can be a list so we could restructure the stuff before that to allow searching multiple paths for vs2017 but maybe that should be done in a different branch once everything is merged. I think it makes things even more complicated now that you have integrated on a different branch.
or I could create a new PR to your branch once you are done with your adjustments. what do you think?
Yes that would require a PR to the new branch. I'm afraid it will complexify the code: see how FBX_SEARCH_LIB_PATH is used, especially with debug/release added combinatory. Don't know if PATH_SUFFIXES can help in that regard. I'm fine if you want to try, but don't bother too much about it. I'm not sure it's worth it.
ok won't do it then :)
It's in now. Thanks a lot for your work!