DLL?

44 views
Skip to first unread message

HASM

unread,
Apr 10, 2012, 7:00:48 PM4/10/12
to pixfc-sse
Any reason there are no instructions on how to build this as a DLL,
before I embark in such? Thanks,

Pix FC

unread,
Apr 10, 2012, 8:10:02 PM4/10/12
to pixf...@googlegroups.com
Hi,
No reason other than the fact I have not tried / tested it.
Let me know how you go, and I ll create a wikipage on how to do that.
Thanks
Frank

HASM

unread,
Aug 14, 2012, 8:21:03 PM8/14/12
to pixf...@googlegroups.com
hasm> Any reason there are no instructions on how to build this as a DLL, before I embark in such?
frank> No reason other than the fact I have not tried / tested it.

I'm not sure whether I need the DLL or not, as I was able to build my app, either by using the supplied .lib or by adding a subset of the files that I needed to my project, and that should be enough, but today I tried building the DLL.
On Linux it suffices to change STATIC to SHARED on the last line on src/CMakeLists.txt and everything works fine.
On Windows that also works, but the corresponding import library is not generated unless one adds a few lines to pixfc-sse.h.
If one wants to use something else besides the create and destroy pixfc functions, one needs to also add the export declaration to some headers in src, e.g. to compile the unit_testing, but I'm not sure those symbols should be exported.
Attaching diffs to create .so under Linux, the .dll/.lib pair under Windows, no clue what to do on a Mac, but should be just like Linux.

-- HASM

diffs.txt

Pix FC

unread,
Aug 15, 2012, 7:42:06 AM8/15/12
to pixf...@googlegroups.com
Thanks for the diff, I m sure it will help whoever goes down the DLL path.
Reply all
Reply to author
Forward
0 new messages