Skip to content
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

Where is ibase.h most reliably found? #2

Open
Skrylar opened this issue Nov 16, 2017 · 6 comments
Open

Where is ibase.h most reliably found? #2

Skrylar opened this issue Nov 16, 2017 · 6 comments

Comments

@Skrylar
Copy link
Owner

Skrylar commented Nov 16, 2017

Under Arch, with Firebird 2.5, it is found in /usr/include. According to #1 it is not always found there, and I am uncertain if there is a pkg-config file we can use to find it.

@qqtop
Copy link

qqtop commented Nov 16, 2017

firebird 3.03 on openSuse Tumbleweed
/usr/include/firebird/ibase.h

firebird 2.5 and firebird 3.0 are different installations
and location is often dependent on who is packaging up for a distro

@Skrylar
Copy link
Owner Author

Skrylar commented Nov 18, 2017

Debian Sid also places it at /usr/include/ibase.h
There is no pkg-config file, but both the Arch and Debian/Sid installs have an fb_config program which is good enough to tell us where ibase.h is.

Skrylar added a commit that referenced this issue Nov 19, 2017
@Skrylar
Copy link
Owner Author

Skrylar commented Nov 19, 2017

@qqtop I've successfully updated and tested both examples to use the new fb_config via staticExec method. If you can confirm this also works on your end I'll consider the situation resolved.

@qqtop
Copy link

qqtop commented Nov 19, 2017

After providing the full paths to fb_config and ibase.h everything compiled successfully.

@Skrylar
Copy link
Owner Author

Skrylar commented Nov 20, 2017

Did you modify the Nim code to find fb_config, or just make sure it was in the PATH environment variable?

@qqtop
Copy link

qqtop commented Nov 20, 2017

Modified the nim code

{.passc: staticExec("/usr/lib64/firebird/utils/fb_config --cflags").}
{.passl: "-lfbclient".}

assert int.sizeof == pointer.sizeof

const
  ibase_h = "/usr/include/firebird/ibase.h"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants