Giter Club home page Giter Club logo

Comments (4)

rcurtin avatar rcurtin commented on June 2, 2024

Just as an aside, life gets a little easier for linking if you move to mlpack 4.x, since mlpack is header-only and no longer has a boost dependency (so you could remove the -lboost_serialization -lmlpack).

The Armadillo configuration output looks correct, so I am wondering how you installed Armadillo. Did the Armadillo headers get installed into /usr/local/include/, and the Armadillo libraries get installed into /usr/local/lib/? As a guess, I wonder if adding -I/usr/local/include/ to the compilation command will help. Make sure there's only one version of Armadillo present on the system, and that the version being used by the compiler when including and when linking are the same.

from mlpack.

lyuhy avatar lyuhy commented on June 2, 2024

Thanks for your advice. I chose the old version because I want to use mlpack in a platform based on C++11.

I checked armardillo's location and found that it was installed in usr/ not in usr/local/, so I uninstall the whole cygwin environment and reinstall mlpack and its related dependencies in usr/local/, however, same issue occurred. Also, -I/usr/local/include/ doesn't work.

from mlpack.

lyuhy avatar lyuhy commented on June 2, 2024

And attached images are installed files in usr/local/include/ usr/local/lib/ and usr/local/bin/
include
bin
lib

from mlpack.

conradsnicta avatar conradsnicta commented on June 2, 2024

Old releases like mlpack 3.4.2 are no longer supported. We don't really have the bandwidth for that. If you wish to continue using mlpack 3.4.2, you're on your own.

Furthermore, this issue does not appear directly tied to mlpack. The core problem seems to be an installation problem you have with Armadillo on Cygwin, a Linux-like emulation layer on Windows. Cygwin has always been problematic, as at best it's a rough approximation of a proper Linux environment.

Suggest the following:

  • manually remove all currently installed versions of Armadillo; this includes the runtime library and the header files; look in places like /usr/lib, /usr/lib64, /usr/local/lib, /usr/local/lib64, /usr/include, /usr/local/include, ...
  • download the latest version of Armadillo, and reinstall it
  • make sure the armadillo example program runs on your setup
  • upgrade your compiler to allow use of C++14, preferably GCC 11 or 12; the C++14 standard is supported by GCC since GCC 5.x (released in 2015, about 8 years ago)
  • move to mlpack 4.1

If you can't get things working on Cygwin, either use WSL, or a proper Linux installation like Ubuntu, Fedora, AlmaLinux, RockyLinux, Debian, etc.

from mlpack.

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.