Skip to content

Added a libfreenect2_api export macro - to apply __declspec(dllexport) i... #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

larshg
Copy link
Contributor

@larshg larshg commented Oct 13, 2014

...nfront of all classes that is used from the library libfreenect2.

If they are not specified VS won't generate a .lib file and protonect will give linking errors.

@christiankerl
Copy link
Contributor

could you please rename libfreenectExport.h to libfreenect2_export.h to be consistent with the naming of the other headers?

@larshg
Copy link
Contributor Author

larshg commented Oct 20, 2014

I have noticed that this export macro is already defined the in the header filer under libfreenect2/include/libfreenect2.h - but this file is not used anywhere, as far as I can see - is this a leftover from earlier - should it be removed?

@christiankerl
Copy link
Contributor

hm, actually that is the C API, which should wrap the C++ API, but nobody implemented it so far ;)

@larshg larshg force-pushed the libfreenect2Export branch 3 times, most recently from 77df7cb to 610c222 Compare October 21, 2014 08:09
@larshg
Copy link
Contributor Author

larshg commented Oct 21, 2014

Ahh. I have renamed the header file and corrected accordingly.

@larshg larshg force-pushed the libfreenect2Export branch from 610c222 to 0869faa Compare October 21, 2014 08:39
@christiankerl
Copy link
Contributor

some more changes:

  • in libfreenect2_export.h the license header is missing. could you add it, please?
  • in tinythread.h the include of libfreenect2_export.h uses a backslash, but it has to be a slash

@larshg larshg force-pushed the libfreenect2Export branch 2 times, most recently from 11f9a9f to 6410f35 Compare November 2, 2014 18:33
@larshg
Copy link
Contributor Author

larshg commented Nov 2, 2014

Updated accordingly.

@feiyuyu
Copy link

feiyuyu commented Nov 12, 2014

Is this problem solved? I try this new version but still no .lib file generate and the run time error shows that it still needs a libfreenect.lib

@larshg
Copy link
Contributor Author

larshg commented Nov 12, 2014

Have you merged this pull-request and compiling using VS?
Then it should work.

Try look at the LIBFREENECT2_API macro and see what it is defined as. It should be something like __dllspec export - if not, do you have a compiler flag/define '_win32' - if not, this might be the problem and we might need to add a or statement or perhaps add something in the cake files.

…) infront of all classes that is used from the library libfreenect2.

If they are not specified VS won't generate a .lib file and protonect will give linking errors.
@larshg larshg force-pushed the libfreenect2Export branch from 6410f35 to a436dbd Compare November 17, 2014 07:59
christiankerl added a commit to christiankerl/libfreenect2 that referenced this pull request Nov 19, 2014
@larshg
Copy link
Contributor Author

larshg commented Nov 25, 2014

Should I just close this pull request, as it is handled in #103 ?

@larshg larshg deleted the libfreenect2Export branch January 13, 2015 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants