-
Notifications
You must be signed in to change notification settings - Fork 75
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
Issue building latest Rblpapi on Windows 64 #164
Comments
About to hit the sack here -- see this file and if the symbols are really missing for your build and headers we may have to |
Looks like then Windows header file is 3.7.9.1. Maybe we need to update. As you actually are on Windows, could you run some local tests? |
Yes, happy to help. |
Great. Ball in my court, and I will try to bring the windows headers and tarball forward to at least 3.8.8.1 to match the other side. |
Done with this commit so if you try to rebuild from a clean directory (so that the headers tarball gets downloaded again) you should be good. I will try win-builder as well. |
And it appears to fail. Damn. |
Thank you for updating this. I will have to wait until Monday to try building this on Windows (if that will make a difference). |
Well it looks like I just broke it. I will have to revert the recent commit to the blp repo. |
Ok @joel23888 -- new branch, new pull request and even new dev version tarball 0.3.3.3 in this drat repo. It once again builds on Windows -- so thanks for the bug report. That was really helpful. Turns out that Windows headers appear to be behind, but moving them forward creates a new impasse with |
I can confirm the latest Rblpapi built correctly on my Windows 7 PC:
I am happy to help with work towards a new header and library tarball/zipfile. I am tied up on other projects this week, when were you thinking of getting this done by @eddelbuettel? |
I was hoping to get it done sooner -- but we may as well pivot and release an update first and then deal with this. |
Following from my previous comment, I then replaced the v3.7.9.1 Windows headers with v.3.8.18.1 and rebuilt with several errors, all seemingly related to a type mismatch. The first two errors are:
and
It seems this is not a |
It may have to do with us using MinGW on Windows whereas they may only see Visual Studio. Do you have a way to escalate this? If so I'd really appreciate it. Not sure whom I would talk to besides @wmorgan85 ... |
Something goes amiss with the So with that it is the old headers I fear... |
I'll have a chat with the development support team in the morning. On Mon, 18 Apr 2016 at 18:45 Dirk Eddelbuettel [email protected]
|
I manually traced through the first error and can see the likely reason why it is happening. I will point out the code later (mobile now). @wmorgan85 I have not raised this one with BBG yet (raised #163 this other day). |
For the first error:
Here is a (manual) trace from the error through the macro layers: blpapi_timepoint.h:114-118:
blpapi_call.h:289-90:
blpapi_call.h:44-47:
blpapi_call.h:52-53:
In the extract from blpapi_call.h:52-53, removing that 0 at the end actually stops the compiler throwing the first three errors, presumably because it is no longer returning |
Nice work! We could possibly overcome the error by redefining the macros if on Windows. |
Yes, I think for that one we can try redefining |
Here are the two remaining errors:
Tracing the first error manually: blpapi_sessionoptions.h:723-728:
blpapi_call.h:73-77
In the extract blpapi_call.h:73-77 for the first error (and in blpapi_call.h:274-280 for the second error) changing that 0 at the end to I can now get Rblpapi to build on Win64 by making the above two edits:
What is the best way to proceed here? While redefining the macros as implied from my comments lets us build Rblpapi on Win64 now, from a cursory look through BBG's header files we will possibly encounter similar issues later depending on which features of the BBG API we use or other conditions. Maybe we should redefine these macros to get it working, and raise to BBG as well? |
Yes, my thought would be to either alter And of course we can (should ?) also talk to Bloomberg to see if/how they might fix this at their side. |
I tend to prefer the Rblpapi.h idea to centralize any of these changes now or in the future. I am happy to raise this with BBG to see if there is any chance of a fix on their side. |
Hey guys, update from my side. I have sent this issue link over to the On Tue, 19 Apr 2016 at 12:08 joel23888 [email protected] wrote:
|
OK, thanks. If I need to raise it let me know and I'll do so. |
From my perspective, I am happy to do some coding on this. However, as I said before I am tied up on other projects at the moment. |
Great -- would be happy to work with you on this. So how about the following:
and we get to that for 0.3.5. Deal? |
Yes, happy to help on that first one and any others, time permitting. |
@joel23888 Just started playing with the API today and had a lot of issues getting it up and running. Thank you so much for this information and saving me long, hard sweat-filled hours grinding my teeth! |
@Dhiraj96 In case you were unaware there are binaries at CRAN |
I just pulled the latest Rblpapi and tried to build on Windows 64, with the following errors:
I can still build from an old commit (fc07aca) without issues.
I checked the Windows 64 header files in https://github.com/Rblp/blp/tree/master/win64 and these member functions are not in blpapi_versioninfo.h. @eddelbuettel would you mind updating them, or let me know how I could attempt this?
I did try manually updating these files locally by copying in the headers/DLL from v3.8.18.1 (https://bloomberg.bintray.com/BLPAPI-Stable-Generic/blpapi_cpp_3.8.18.1-windows.zip) but encountered some more errors (happy to paste them in here if relevant).
The text was updated successfully, but these errors were encountered: