lferry007 / LargeVis

Apache License 2.0
708 stars 168 forks source link

Installation on Mac #6

Closed mohitr closed 8 years ago

mohitr commented 8 years ago

Does it needs any specific installation for Mac ? I am getting this error while compling in Mac (El Capiton)

~/codes/LargeVis/Linux$ g++ -I/usr/local/include/ LargeVis.cpp main.cpp -o LargeVis -lm -pthread -lgsl -lgslcblas -Ofast -march=native -ffast-math
In file included from LargeVis.cpp:1:
In file included from ./LargeVis.h:10:
./ANNOY/annoylib.h:347:22: error: use of undeclared identifier 'lseek64'; did you mean 'lseek'?
    long long size = lseek64(fd, 0, SEEK_END);
                     ^~~~~~~
                     lseek
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/unistd.h:464:8: note: 'lseek' declared here
off_t    lseek(int, off_t, int);
         ^
LargeVis.cpp:350:48: warning: format specifies type 'int' but the argument has type 'long long' [-Wformat]
                printf("Running propagation %d/%d%c", i + 1, n_propagations, 13);
                                               ~~            ^~~~~~~~~~~~~~
                                               %lld
1 warning and 1 error generated.
In file included from main.cpp:1:
In file included from ./LargeVis.h:10:
./ANNOY/annoylib.h:347:22: error: use of undeclared identifier 'lseek64'; did you mean 'lseek'?
    long long size = lseek64(fd, 0, SEEK_END);
                     ^~~~~~~
                     lseek
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/unistd.h:464:8: note: 'lseek' declared here
off_t    lseek(int, off_t, int);
         ^
1 error generated.
lferry007 commented 8 years ago

Hi. Installation on Mac has been added to README, thanks to @kylemcdonald.