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

core: link with libarchive on MacOS platform #372

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
4 participants
@dilaroga

dilaroga commented Jul 12, 2015

This change allow to link libarchive on mac platform with a default libarchive installation.

@windoze

This comment has been minimized.

Show comment
Hide comment
@windoze

windoze Jul 13, 2015

libarchive is keg-only, by default Homebrew will not link files to /usr/local/include and /usr/local/lib.

windoze commented on 2342018 Jul 13, 2015

libarchive is keg-only, by default Homebrew will not link files to /usr/local/include and /usr/local/lib.

@trollixx

This comment has been minimized.

Show comment
Hide comment
@trollixx

trollixx Jul 26, 2015

Member

Hi,

Sorry, I won't merge this. I have explained my reasons here.

Member

trollixx commented Jul 26, 2015

Hi,

Sorry, I won't merge this. I have explained my reasons here.

@trollixx trollixx closed this Jul 26, 2015

@apanzerj

This comment has been minimized.

Show comment
Hide comment
@apanzerj

apanzerj Oct 24, 2016

Hey @trollixx just putting a note here for others wondering about this:

You need to change core.pri and add:

macx-clang: {
    INCLUDEPATH += /usr/local/Cellar/libarchive/3.2.1/include
    LIBS += -L/usr/local/Cellar/libarchive/3.2.1/lib -larchive
    INCLUDEPATH += /usr/local/Cellar/sqlite/3.15.0/include
    LIBS += -L/usr/local/Cellar/sqlite/3.15.0/lib -lsqlite3
}

Change the versions to the ones that match your homebrew setup.

I used this document: http://mazhuang.org/2016/01/16/build-zeal-for-mac-osx/

It's in Chinese but google translate does a damn fine job.

apanzerj commented Oct 24, 2016

Hey @trollixx just putting a note here for others wondering about this:

You need to change core.pri and add:

macx-clang: {
    INCLUDEPATH += /usr/local/Cellar/libarchive/3.2.1/include
    LIBS += -L/usr/local/Cellar/libarchive/3.2.1/lib -larchive
    INCLUDEPATH += /usr/local/Cellar/sqlite/3.15.0/include
    LIBS += -L/usr/local/Cellar/sqlite/3.15.0/lib -lsqlite3
}

Change the versions to the ones that match your homebrew setup.

I used this document: http://mazhuang.org/2016/01/16/build-zeal-for-mac-osx/

It's in Chinese but google translate does a damn fine job.

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