OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Dynamic linking of fbx plugin and fbx SDK.


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission
View previous topic :: View next topic  
Author Message
Vladimir Chebaev
Newbie


Joined: 18 Sep 2012
Posts: 8

PostPosted: Mon Nov 14, 2016 1:20 pm    Post subject:
Dynamic linking of fbx plugin and fbx SDK.
Reply with quote

Hello.
Fbx plugin can not use "dll" variant of fbx SDK.
It is not enough to set FBX_INCLUDE_DIR, FBX_LIBRARY and FBX_LIBRARY_DEBUG options for CMake. FBX_SHARED preprocessor definition should be setted.
I changed src/osgPlugins/fbx/CMakeList.txt and added new option "FBX_SHARED".
Fbx plugin will build without dinamic linking by default. If you set "FBX_SHARED" option to "ON" then preprocessor definition "FBX_SHARED" was enabled.
I attached new CMakeList.txt


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Voerman, L.
Guest





PostPosted: Mon Nov 14, 2016 3:28 pm    Post subject:
Dynamic linking of fbx plugin and fbx SDK.
Reply with quote

Hi Chebaev,

if you set FBX_SHARED to ON you will be awarded with a lot of linking errors, unless you know you should change libfbxsdk-md.lib into libfbxsdk.lib for FBX_LIBRARY and FBX_LIBRARY_DEBUG.
I think you should at least provide a hint with this option.


Regards, Laurens.


On Mon, Nov 14, 2016 at 2:19 PM, Chebaev Vladimir < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hello.
Fbx plugin can not use "dll" variant of fbx SDK.
It is not enough to set FBX_INCLUDE_DIR, FBX_LIBRARY and FBX_LIBRARY_DEBUG options for CMake. FBX_SHARED preprocessor definition should be setted.
I changed src/osgPlugins/fbx/CMakeList.txt and added new option "FBX_SHARED".
Fbx plugin will build without dinamic linking by default. If you set "FBX_SHARED" option to "ON" then preprocessor definition "FBX_SHARED" was enabled.
I attached new CMakeList.txt
_______________________________________________
osg-submissions mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org



------------------
Post generated by Mail2Forum
Back to top
Vladimir Chebaev
Newbie


Joined: 18 Sep 2012
Posts: 8

PostPosted: Wed Nov 16, 2016 11:47 am    Post subject:
Dynamic linking of fbx plugin and fbx SDK.
Reply with quote

Hello.
Sorry. I setted FBX_LIBRARY and FBX_LIBRARY_DEBUG directly and did not notice a problem.
I changed FindFBX.cmake for correct selecting of library on windows.
I noticed that dinamic linking is used on *nix(Debian 8 and FbxSDK 2017.0.1 in my case) by default. You should set FBX_LIBRARY and FBX_LIBRARY_DEBUG for static library. Thus i think that processing of FBX_SHARED is not needed on *nix.
Unfortunately i can not check on the MAC.
I attached new CMakeLists for fbx plugin and FindFBX.cmake.
 
14.11.2016, 18:27, "Voerman, L." <>:
Quote:
Hi Chebaev,
if you set FBX_SHARED to ON you will be awarded with a lot of linking errors, unless you know you should change libfbxsdk-md.lib into libfbxsdk.lib for FBX_LIBRARY and FBX_LIBRARY_DEBUG.
I think you should at least provide a hint with this option.
 
Regards, Laurens.

 On Mon, Nov 14, 2016 at 2:19 PM, Chebaev Vladimir < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hello.Fbx plugin can not use "dll" variant of fbx SDK.It is not enough to set FBX_INCLUDE_DIR, FBX_LIBRARY and FBX_LIBRARY_DEBUG options for CMake. FBX_SHARED preprocessor definition should be setted.I changed src/osgPlugins/fbx/CMakeList.txt and added new option "FBX_SHARED".Fbx plugin will build without dinamic linking by default. If you set "FBX_SHARED" option to "ON" then preprocessor definition "FBX_SHARED" was enabled.I attached new CMakeList.txt_______________________________________________osg-submissions mailing (
Only registered users can see emails on this board!
Get registred or enter the forums!
)http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org 


,
_______________________________________________osg-submissions mailing (
Only registered users can see emails on this board!
Get registred or enter the forums!
)http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11154

PostPosted: Tue Nov 29, 2016 6:51 pm    Post subject:
Dynamic linking of fbx plugin and fbx SDK.
Reply with quote

Hi Vladimir,

I'm currently waiting for a quieter period work wise before I dive
back in with submissions. I should get back to submissions in the
next week or two.

Cheers,
Robert.

On 16 November 2016 at 11:46, Chebaev Vladimir <> wrote:
Quote:
Hello.
Sorry. I setted FBX_LIBRARY and FBX_LIBRARY_DEBUG directly and did not
notice a problem.
I changed FindFBX.cmake for correct selecting of library on windows.
I noticed that dinamic linking is used on *nix(Debian 8 and FbxSDK 2017.0.1
in my case) by default. You should set FBX_LIBRARY and FBX_LIBRARY_DEBUG for
static library. Thus i think that processing of FBX_SHARED is not needed on
*nix.
Unfortunately i can not check on the MAC.
I attached new CMakeLists for fbx plugin and FindFBX.cmake.

14.11.2016, 18:27, "Voerman, L." <>:

Hi Chebaev,

if you set FBX_SHARED to ON you will be awarded with a lot of linking
errors, unless you know you should change libfbxsdk-md.lib into
libfbxsdk.lib for FBX_LIBRARY and FBX_LIBRARY_DEBUG.
I think you should at least provide a hint with this option.

Regards, Laurens.

On Mon, Nov 14, 2016 at 2:19 PM, Chebaev Vladimir <>
wrote:

Hello.
Fbx plugin can not use "dll" variant of fbx SDK.
It is not enough to set FBX_INCLUDE_DIR, FBX_LIBRARY and FBX_LIBRARY_DEBUG
options for CMake. FBX_SHARED preprocessor definition should be setted.
I changed src/osgPlugins/fbx/CMakeList.txt and added new option
"FBX_SHARED".
Fbx plugin will build without dinamic linking by default. If you set
"FBX_SHARED" option to "ON" then preprocessor definition "FBX_SHARED" was
enabled.
I attached new CMakeList.txt



,








------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11154

PostPosted: Wed Dec 21, 2016 3:16 pm    Post subject:
Dynamic linking of fbx plugin and fbx SDK.
Reply with quote

Hi Vladimir,

Sorry for the delay on reviewing these changes, I've been busy boy!

The changes look fine for me, now merged and checked into OSG master.

Cheers,
Robert.

On 29 November 2016 at 18:51, Robert Osfield <> wrote:
Quote:
Hi Vladimir,

I'm currently waiting for a quieter period work wise before I dive
back in with submissions. I should get back to submissions in the
next week or two.

Cheers,
Robert.

On 16 November 2016 at 11:46, Chebaev Vladimir <> wrote:
Quote:
Hello.
Sorry. I setted FBX_LIBRARY and FBX_LIBRARY_DEBUG directly and did not
notice a problem.
I changed FindFBX.cmake for correct selecting of library on windows.
I noticed that dinamic linking is used on *nix(Debian 8 and FbxSDK 2017.0.1
in my case) by default. You should set FBX_LIBRARY and FBX_LIBRARY_DEBUG for
static library. Thus i think that processing of FBX_SHARED is not needed on
*nix.
Unfortunately i can not check on the MAC.
I attached new CMakeLists for fbx plugin and FindFBX.cmake.

14.11.2016, 18:27, "Voerman, L." <>:

Hi Chebaev,

if you set FBX_SHARED to ON you will be awarded with a lot of linking
errors, unless you know you should change libfbxsdk-md.lib into
libfbxsdk.lib for FBX_LIBRARY and FBX_LIBRARY_DEBUG.
I think you should at least provide a hint with this option.

Regards, Laurens.

On Mon, Nov 14, 2016 at 2:19 PM, Chebaev Vladimir <>
wrote:

Hello.
Fbx plugin can not use "dll" variant of fbx SDK.
It is not enough to set FBX_INCLUDE_DIR, FBX_LIBRARY and FBX_LIBRARY_DEBUG
options for CMake. FBX_SHARED preprocessor definition should be setted.
I changed src/osgPlugins/fbx/CMakeList.txt and added new option
"FBX_SHARED".
Fbx plugin will build without dinamic linking by default. If you set
"FBX_SHARED" option to "ON" then preprocessor definition "FBX_SHARED" was
enabled.
I attached new CMakeList.txt



,








------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Vladimir Chebaev
Newbie


Joined: 18 Sep 2012
Posts: 8

PostPosted: Thu Dec 22, 2016 6:23 am    Post subject:
Dynamic linking of fbx plugin and fbx SDK.
Reply with quote

Good news. Thank you.

21.12.2016, 18:16, "Robert Osfield" <>:
Quote:
Hi Vladimir,

Sorry for the delay on reviewing these changes, I've been busy boy!

The changes look fine for me, now merged and checked into OSG master.

Cheers,
Robert.

On 29 November 2016 at 18:51, Robert Osfield <> wrote:
Quote:
 Hi Vladimir,

 I'm currently waiting for a quieter period work wise before I dive
 back in with submissions. I should get back to submissions in the
 next week or two.

 Cheers,
 Robert.

 On 16 November 2016 at 11:46, Chebaev Vladimir <> wrote:
Quote:
 Hello.
 Sorry. I setted FBX_LIBRARY and FBX_LIBRARY_DEBUG directly and did not
 notice a problem.
 I changed FindFBX.cmake for correct selecting of library on windows.
 I noticed that dinamic linking is used on *nix(Debian 8 and FbxSDK 2017.0.1
 in my case) by default. You should set FBX_LIBRARY and FBX_LIBRARY_DEBUG for
 static library. Thus i think that processing of FBX_SHARED is not needed on
 *nix.
 Unfortunately i can not check on the MAC.
 I attached new CMakeLists for fbx plugin and FindFBX.cmake.

 14.11.2016, 18:27, "Voerman, L." <>:

 Hi Chebaev,

 if you set FBX_SHARED to ON you will be awarded with a lot of linking
 errors, unless you know you should change libfbxsdk-md.lib into
 libfbxsdk.lib for FBX_LIBRARY and FBX_LIBRARY_DEBUG.
 I think you should at least provide a hint with this option.

 Regards, Laurens.

 On Mon, Nov 14, 2016 at 2:19 PM, Chebaev Vladimir <>
 wrote:

 Hello.
 Fbx plugin can not use "dll" variant of fbx SDK.
 It is not enough to set FBX_INCLUDE_DIR, FBX_LIBRARY and FBX_LIBRARY_DEBUG
 options for CMake. FBX_SHARED preprocessor definition should be setted.
 I changed src/osgPlugins/fbx/CMakeList.txt and added new option
 "FBX_SHARED".
 Fbx plugin will build without dinamic linking by default. If you set
 "FBX_SHARED" option to "ON" then preprocessor definition "FBX_SHARED" was
 enabled.
 I attached new CMakeList.txt
 

 ,

 

 




------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts OpenSceneGraph static linking for And... tanshihaj Build system [build] 1 Thu Sep 21, 2017 12:56 pm View latest post
No new posts obj plugin does not support diffuse a... Ralf Habacker General 1 Tue Sep 19, 2017 6:21 am View latest post
No new posts LIDAR plugin Michael W. Hall General 11 Fri Sep 01, 2017 1:49 am View latest post
No new posts PLY Plugin robertosfield Submission 0 Tue Aug 15, 2017 2:45 pm View latest post
No new posts OpenSceneGraph static linking for And... tanshihaj Build system [build] 1 Sun Aug 13, 2017 10:09 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP