-
Notifications
You must be signed in to change notification settings - Fork 209
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
Fix backport of bitcoin-core/secp256k1#925 (drop 'include/' prefix from -I) #208
Comments
In particular I'm referring to why the include is defined this way in this line?, but then why this line doesn't use the I tried also passing the |
changing some import paths seems to make it compile (using
And then calling gcc -Iinclude secp256k1.o test.c This produces
|
What about compiling it "normally" with automake, and then dynamically linking it in your xcode project? |
I can't do that because if i compile it normally the compilation works for my pc architecture only, the expected behaviour is for it to work on the ios processor both simulator and real device (they use different archs and depends on the host machine), so it has to be compiled by the person that is using the lib in thier project. I also tried shipping the automake inside a swift library / pod, but they don't support that type of build, xcode expects to call the
it would be great if you can help me understand this |
This is because there have been changes in the upstream version of this library that apparently haven't properly been implemented in the modules that this fork contains... bitcoin-core/secp256k1#925, bitcoin-core/secp256k1#1126
This should help you: bitcoin-core/secp256k1#929 (comment) |
Hey @mattiaferrari02 have you looked at the existing swift packages that wrap this project into spm? |
This comment was marked as resolved.
This comment was marked as resolved.
Your package wraps bitcoin-core/secp256k1, not this one, the thing that i need is the module |
I would consider our incorrect backport of bitcoin-core/secp256k1#925 to be a bug that we should fix -- that PR was specifically to make cases like this easier to handle. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Let me reopen and repurpose this issue to track that bug. |
I have a few questions about the compilation of the project...
After running autogen and configure with the custom flags, at that point is it possible to compile the project without using the newly generated makefile (aka use directly the
gcc
command) or something like that.I'm trying also to compile the project from xcode because I have the need to use this code in a swift library... the main problems encountered with the compilation from xcode are wrong includes in the files. I'm not an expert on AutoMake, but from what I have understood, all the includes are managed by automake, is there a way to do it manually?
The text was updated successfully, but these errors were encountered: