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

Changes to support GCC build #5

Open
markstock opened this issue Oct 6, 2019 · 0 comments
Open

Changes to support GCC build #5

markstock opened this issue Oct 6, 2019 · 0 comments

Comments

@markstock
Copy link
Collaborator

markstock commented Oct 6, 2019

It might be my older qt5-qmake, but the code standard (c++2a) doesn't make its way into the compilation command-lines for GCC 9.2. I made it explicit with the following additions to src/vasc.pro:

macx {
    INCLUDEPATH += /usr/local/include
} else {
    # GCC specific configuration
    QMAKE_CXXFLAGS += -std=c++2a
    QMAKE_LFLAGS += -std=c++2a
}

Also, in order to use std::bind in src/jobcontroller.h, I had to #include <functional>.

Finally, GCC wants to explicitly mention pthreads on the link command line, so I modified vasc.pro to have:

LIBS += -L/usr/local/lib -lopenvdb -ltbb -lHalf -lpthread

Now my only stumbling block is the old version of OpenVDB on my system. Let it be known that v4.0.2 is too old.

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

No branches or pull requests

1 participant