snap-stanford / snap

Stanford Network Analysis Platform (SNAP) is a general purpose network analysis and graph mining library.
Other
2.16k stars 795 forks source link

Can't compile SNAP c++ source code! #209

Closed mhdmyz closed 3 years ago

mhdmyz commented 3 years ago

I want to compile SNAP (Stanford Network Analysis Project) c++ source code using terminal on mac by running the make all command and I'm getting the following error:

ld: symbol(s) not found for architecture x86_64

Initially I was getting this error:

clang: error: unsupported option '-fopenmp'

but I found that I should replace the g++ in the Makefile.config with gcc-10 which I installed using the homebrew and now I'm getting the architecture error!

I'm on mac os Big Sur 11.0.1 and everything is up to date! Does anyone have any clue?

Screen Shot 1399-09-10 at 03 21 51 Screen Shot 1399-09-10 at 03 31 20 Screen Shot 1399-09-10 at 03 33 16
lynochka commented 3 years ago

I don't think I have the same error but i could not compile the code either:

>mingw32-make all
C:/MinGW/bin/mingw32-make -C snap-core
process_begin: CreateProcess(NULL, uname, ...) failed.
process_begin: CreateProcess(NULL, uname -o, ...) failed.
mingw32-make[1]: Entering directory 'C:/repos/snap/snap-core'
cc -c  Snap.cpp -I../glib-core
process_begin: CreateProcess(NULL, cc -c Snap.cpp -I../glib-core, ...) failed.
make (e=2): The system cannot find the file specified.
Makefile:13: recipe for target 'Snap.o' failed
mingw32-make[1]: *** [Snap.o] Error 2
mingw32-make[1]: Leaving directory 'C:/repos/snap/snap-core'
Makefile:10: recipe for target 'MakeAll' failed
mingw32-make: *** [MakeAll] Error 2
roks commented 3 years ago

This seems like an error with the compiler installation. The compiler does not even start. I recommend that you use the cygwin environment, cygwin.org.