whuang08 / TreeScaper

TreeScaper is distributed under the GNU General Public License.
9 stars 5 forks source link

Compiling CLV on Mac #16

Open LizEve opened 7 years ago

LizEve commented 7 years ago

I'm trying to compile CLV on my Mac. I get to step 6, typing 'make' in the TreeScaper folder and then I get errors.

The pre-compiled CLV for Mac works great, so I've been using that. I wanted to let you know about the errors when I try to compile it myself, in case they are important.

I've tried compiling from both the .zip source code found here https://github.com/whuang08/TreeScaper/releases, and from cloning https://github.com/whuang08/TreeScaper.git.

When I compile from the cloned folder I get this error:

g++ CLVmain.cpp -w randgen.cpp wstring.cpp warray.cpp wmapping.cpp wmix.cpp wfile.cpp wimport_form.cpp wDimEst.cpp wNLDR.cpp Trees.cpp TreeOPE.cpp Sparse_matrix.cpp greedy_louvain.cpp graph.cpp slicer.cpp label-map.cc community.cpp info.cpp hashfunc.cc hash.cc hungarian.c ClusterForest.cpp ClusterInstance.cpp Forest.cpp rspr.cpp SiblingPair.cpp SPRLCA.cpp SPRNode.cpp UndoMachine.cpp /Applications/MAC_TreeScaper_v1.0.0_Binary_2016-12-16/clapack-3.2.1-CMAKE/lapack_LINUX.a /Applications/MAC_TreeScaper_v1.0.0_Binary_2016-12-16/clapack-3.2.1-CMAKE/blas_LINUX.a /Applications/MAC_TreeScaper_v1.0.0_Binary_2016-12-16/clapack-3.2.1-CMAKE/F2CLIBS/libf2c.a -lm -I/Applications/MAC_TreeScaper_v1.0.0_Binary_2016-12-16/clapack-3.2.1-CMAKE/INCLUDE -DCOMMAND_LINE_VERSION -o CLVTreeScaper -DCOMMAND_LINE_VERSION
g++: error: /Applications/MAC_TreeScaper_v1.0.0_Binary_2016-12-16/clapack-3.2.1-CMAKE/lapack_LINUX.a: No such file or directory
g++: error: /Applications/MAC_TreeScaper_v1.0.0_Binary_2016-12-16/clapack-3.2.1-CMAKE/blas_LINUX.a: No such file or directory

When I compile from the .zip folder I get this error:

g++ CLVmain.cpp -w randgen.cpp wstring.cpp warray.cpp wmapping.cpp wmix.cpp wfile.cpp wimport_form.cpp wDimEst.cpp wNLDR.cpp Trees.cpp TreeOPE.cpp Sparse_matrix.cpp greedy_louvain.cpp graph.cpp slicer.cpp label-map.cc community.cpp info.cpp hashfunc.cc hash.cc hungarian.c ClusterForest.cpp ClusterInstance.cpp Forest.cpp rspr.cpp SiblingPair.cpp SPRLCA.cpp SPRNode.cpp UndoMachine.cpp D:\VTK\clapack\SRC\liblapack.a D:\VTK\clapack\BLAS\SRC\libblas.a D:\VTK\clapack\F2CLIBS\libf2c\libf2c.a -lm -ID:\VTK\clapack-3.2.1-CMAKE\INCLUDE -DCOMMAND_LINE_VERSION -o CLVTreeScaper
g++: error: D:VTKclapackSRCliblapack.a: No such file or directory
g++: error: D:VTKclapackBLASSRClibblas.a: No such file or directory
g++: error: D:VTKclapackF2CLIBSlibf2clibf2c.a: No such file or directory
whuang08 commented 7 years ago

Hi, It seems that the compiler didn't find BLAS and LAPACK libraries. Did you install BLAS and LAPACK before you compile TreeScaper. If not, you can read Section 3 in the User Manual. Let me know if you can't fix the problem. Best, Wen