Git Product home page Git Product logo

Comments (7)

Martchus avatar Martchus commented on August 25, 2024

You can just specify the path by setting the CMake variable LANGUAGE_FILE_ISO_639_2. Nothing is hard coded here - the path under usr/share is just a default.

from tagparser.

buckmanhands avatar buckmanhands commented on August 25, 2024

Great, thanks!

from tagparser.

Martchus avatar Martchus commented on August 25, 2024

I updated the build instructions to make it more obvious how to specify this path.

from tagparser.

buckmanhands avatar buckmanhands commented on August 25, 2024

So I tried what you said and still got the same error. Here are the two cmake commands I tried:

cmake ENABLE_THREAD_LOCAL=OFF
USE_STANDARD_FILESYSTEM=OFF
LANGUAGE_FILE_ISO_639_2="/usr/local/share/iso-codes/json/iso_639-2.json"
-DCMAKE_CXX_FLAGS="-std=c++17"
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX="/usr/local"
"/Users/oldfaithful/Local/tageditor/tagparser"

cmake ENABLE_THREAD_LOCAL=OFF
USE_STANDARD_FILESYSTEM=OFF
LANGUAGE_FILE="/usr/local/share/iso-codes/json/iso_639-2.json"
-DCMAKE_CXX_FLAGS="-std=c++17"
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX="/usr/local"
"/Users/oldfaithful/Local/tageditor/tagparser"

from tagparser.

buckmanhands avatar buckmanhands commented on August 25, 2024

Finally figured it out. You have to add -D to your arguments.

-DLANGUAGE_FILE_ISO_639_2="/usr/local/share/iso-codes/json/iso_639-2.json"

Made a lot more sense once I understood this. Lots of places in the docs where you either leave -D off, or show it. I got confused. Now I pretty much see that -D is essential to cmake flags.

from tagparser.

Martchus avatar Martchus commented on August 25, 2024

When I say "add …" to the CMake flags I use -D… because that's the flag. When I say "set CMake variable …" than I omit it because the -D isn't actually part of the variable name. Maybe I should be more consistent and just use the first version.

from tagparser.

buckmanhands avatar buckmanhands commented on August 25, 2024

Consistency would help the noobs. Now that I know I just do it properly.

from tagparser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.