[mlpack] Problem building MLPACK - CF linking error
Sylvana Alpert
SAlpert at blackrockmicro.com
Fri Aug 15 15:57:04 EDT 2014
Dear Gilles,
Thanks for your help and prompt reply. I have recompiled boost using mingw and following your instructions, however, MLPACK still fails at the same linking stage. I have attached the text file containing all the details. Also, I have attached the CMakeCache.txt file from the build.
I checked my installation of MinGW and I only have one installation C:\MinGW. In this directory, there is C:\MinGW\mingw32\bin which contains some duplicate executables (also in C:\MinGW\bin) but from what I read online this is how MinGW installs by default.
It looks like cf.exe fails to find boost::program_options references.
These are the versions I am using:
Boost: 1.54.0
MLPACK: 1.0.9
Any ideas of what might be going wrong?
Also, when I compiled in MSYS, "make -f Makefile all" would not do anything for me. It just printed the Windows version but did not do the build. I had to run mingw32-make to compile.
Thanks again for your help!
Sylvana
-----Original Message-----
From: mlpack-bounces at cc.gatech.edu [mailto:mlpack-bounces at cc.gatech.edu] On Behalf Of Gilles Barges
Sent: Thursday, August 14, 2014 11:30 PM
To: mlpack at cc.gatech.edu
Subject: Re: [mlpack] Problem building MLPACK - CF linking error
hi Sylvana,
> I am new to Mlpack and I have had a lot of trouble trying to build it in Windows 7.
you're welcome :-)
> I followed the instructions in MLPACKOnWindows and managed to build all the dependencies and configure MLPACK in Cmake.
> Now, I am running mingw32-make in shell and I get the attached error. It fails to link the CF module to the appropriate boost library.
> I got 32bit pre-compiled boost libraries in MSVC but I am compiling MLPACK with mingw, could this be the cause of the problem?
First, you give a truncated report. End of lines are missing. Please, do no attache an image, but copy/paste the text.
If your terminal cannot copy-paste a long text, use 'make ... > report.txt 2>&1'
I see you're using Mingw. Is your system well installed ? I can see the path to ld.exe starts in c:/mingw, goes down deep inside, then reach back c: and finally use C:/mingw32/.... Looks like a mix of 2 compiler chains ?
I see you're using the CMD terminal.
Really, you should use MSYS environment - and avoid using things coming fom MSVC++
Note: after installing a fresh MSYS, do not forget to run the post-install script.
to compile boost libraries yourself, do the following:
- Do not try to launch bootstrap from MSYS console !
- Lauch cmd.exe, cd to the BOOST root directory, and
> boostrap mingw
OK, quit CMD.
- In MSYS console now, cd to the BOOST root directory, and
$ /b2 --prefix=/usr/local toolset=gcc
now go watch a DVD... OK
$ ./b2 --prefix=/usr/local toolset=gcc install OK Header files are installed in /usr/local/include/boost-1_55/boost/
good luck
--
Gilles Barges.
_______________________________________________
mlpack mailing list
mlpack at cc.gatech.edu
https://mailman.cc.gatech.edu/mailman/listinfo/mlpack
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: output_MSYS.txt
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack/attachments/20140815/8b4d75fe/attachment-0002.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeCache.txt
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack/attachments/20140815/8b4d75fe/attachment-0003.txt>
More information about the mlpack
mailing list