Skip to content

Arch Linux: libinih #94

@winteriscariot

Description

@winteriscariot

While I know that this program is intended primarily to work with Ubuntu, there shouldn't be any reason it can't work on Arch, except that libinih is causing me issues. So I'm coming here to see if I can source any assistance in getting this to work (maybe result in a PKGBUILD for the AUR?).

The main issue is that anything related to inih fails, because (as far as I can tell) there's no package that provides ini.h in Arch Linux. Therefore I've copied the ini.h from the inih project -- https://github.com/benhoyt/inih -- and updated the include in comfortable-swipe-main.cpp to point to the inih, but the ld command afterwards fails:

comfortable-swipe]$ ./install 
Installing binaries ...
/usr/bin/ld: cannot find -linih
/usr/bin/ld: cannot find -linih

Now I'm not super familiar with programming and specifically linking libraries, but I have what amounts to a very basic understanding. Now, based on the ld manpage:

-l namespec
--library=namespec
Add the archive or object file specified by namespec to the list of files to
link. This option may be used any number of times. If namespec is of the
form :filename, ld will search the library path for a file called filename,
otherwise it will search the library path for a file called libnamespec.a.

So presumably this could statically be pointed to ini.h; however, frankly, I'm not familiar enough with programming t figure out where this would go. The only reference to linih i could find was here:

comfortable-swipe/compile:CXX_FLAGS='-std=c++14 -O2 -Wall -lxdo -linih -lxdo -linih'

At this point I'm a bit stumped. I don't suppose anyone might be able to point me in the right direction? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions