Git Product home page Git Product logo

Comments (11)

peijason avatar peijason commented on June 3, 2024 5

Solved...

Remove all default(None) in file vl/kmeans.c .

However, I now have a further issue:
⨯ make ARCH=glnxa64 MKOCTFILE=/usr/local/bin/mkoctfile
brought me a further issue:

 make ARCH=glnxa64 MKOCTFILE=/usr/local/bin/mkoctfile                                                                                                                 12:41:28
Detected compiler: gcc 9
GCC <= 4.6.0 detected, disabling AVX.
The MALTAB version will be detected in the next phase of Make
            MEX toolbox/mex/mexa64/vl_hikmeanspush.mexa64
mex: unrecognized option '-glnxa64'
mex: unrecognized option '-O'
mex: unrecognized option '-largeArrayDims'
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=mex)
 restricted \write18 enabled.
entering extended mode
! I can't find file `"CFLAGS=$CFLAGS "'.
<*> "CFLAGS=$CFLAGS " 
                      LDFLAGS=$LDFLAGS  -DVL_DISABLE_AVX -I. -Itoolbox ./too...

(Press Enter to retry, or Control-D to exit)
Please type another input file name: 

My env:
OS: Ubuntu 20.04

That is why I'm using option: -glnxa64.

from vlfeat.

dsienkiewicz-lab4motion avatar dsienkiewicz-lab4motion commented on June 3, 2024 1

Did you resolve this problem ?

from vlfeat.

majioa avatar majioa commented on June 3, 2024 1

reproduced

from vlfeat.

gtinchev avatar gtinchev commented on June 3, 2024 1

For me removing default(none) from vl/kmeans.c worked to some extend. I also had to remove the following from toolbox/mexutils.h:

/* these attributes suppress undefined symbols warning with GCC */
#ifdef VL_COMPILER_GNUC
#if (! defined(HAVE_OCTAVE))
EXTERN_C void __attribute__((noreturn))
mexErrMsgIdAndTxt (const char * identifier, const char * err_msg, ...) ;
#else
extern void __attribute__((noreturn))
mexErrMsgIdAndTxt (const char *id, const char *s, ...);
#endif
#endif

I don't have octave and it was complaining about a missing ; before

EXTERN_C void
        ^

It then compiled with matlab support.

Edit: OS: ubuntu 20.04, matlab2020b

from vlfeat.

pierre33 avatar pierre33 commented on June 3, 2024

Hi I reproduced this problem also. Any workaround ?

from vlfeat.

pierre33 avatar pierre33 commented on June 3, 2024

Thanks, it solved my issue.

from vlfeat.

peijason avatar peijason commented on June 3, 2024

Hi, @pierre33

How did you solve that pdfTex issue?

Thanks...

from vlfeat.

pierre33 avatar pierre33 commented on June 3, 2024

Hi @peijason,
Actually I did not encounter this issue when compiling vlfeat doing the following:

Here are the first lines when doing the previous commands:
Detected compiler: gcc 9
GCC <= 4.6.0 detected, disabling AVX.
MATLAB support disabled
The MALTAB version will be detected in the next phase of Make
CC bin/glnxa64/objs/kmeans.o
CC bin/glnxa64/objs/mathop_avx.o
CC bin/glnxa64/objs/kdtree.o

from vlfeat.

duboise-cnes avatar duboise-cnes commented on June 3, 2024

I have also tried and it depends if latex is installed on the local system : Works with
make MEX=$MATLABROOT/bin/
See #76

from vlfeat.

duboise-cnes avatar duboise-cnes commented on June 3, 2024

On my ubuntu 20.04, I had also to add libiomp5.so dependency by installing intel-mkl-full package
sudo apt install intel-mkl-full

from vlfeat.

as2384 avatar as2384 commented on June 3, 2024

@peijason You are the best, thanks for your solution. I was trying to build vl_sift.mex so I can use it inside Octave.. not fun. But here is what worked for me:

mkoctfile --mex -v --output "toolbox/mex/octave/mexa64/vl_sift.mex" -DVL_DISABLE_AVX -DMATLAB_MEX_FILE -I. -Itoolbox "./toolbox/sift/vl_sift.c" -Lbin/glnxa64 -lvl -lm

For some reason, while your command worked and put many vl_*mex files in toolbox/mex.octave, it did not build sift. Not sure why. The other error I got was that mxMalloc_800 not recognized.

For this, I just removed all the _800 tags in the source code. Then it worked. Hope it helps.

I am also using 20.04.

from vlfeat.

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.