[mlpack] Introduction GSoc 2018

Rahul Barnwal rahulbarnwal70 at gmail.com
Sun Dec 10 15:32:19 EST 2017


Yeah, it finally did. It seemed i didn't add the path variable right.

Thank you for the help.

Regards
Rahul


‌

On Mon, Dec 11, 2017 at 1:29 AM, Evgeny Freyman <evg.freyman at gmail.com>
wrote:

> Seems that it still can't find the libmlpack.so. Try calling this before
> building (check that there is a mlpack library at specified path)
>
> export LD_LIBRARY_PATH="/usr/local/lib/:$LD_LIBRARY_PATH"
>
> Another option is to specify location of library thorough -L parameter
> (g++ .... -L/usr/local/lib/, https://stackoverflow.com/
> questions/6141147/how-do-i-include-a-path-to-libraries-in-g
> <https://mailtrack.io/trace/link/e5ce10df58317caf6b881075e5390ee9d1c15025?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F6141147%2Fhow-do-i-include-a-path-to-libraries-in-g&userId=745499&signature=2890e43253bdc05d>
> )
>
> Could this help?
>
> P.S. It's better to answer all for history and for others to see/comment
>
> Eugene
>
>
> вс, 10 дек. 2017 г. в 20:32, Rahul Barnwal <rahulbarnwal70 at gmail.com>:
>
>> Hi Eugene,
>>
>> Thank you for the help. I am using all the dependencies mentioned to
>> avoid any further unresolved reference problems. But the command
>>
>> g++ -std=c++11 cov.cpp -lmlpack -larmadillo -lboost_serialization
>> -lboost_program_options -lboost_unit_test_framework
>>
>> gives
>>
>> /tmp/cc8qLLm3.o: In function `main':
>> cov.cpp:(.text+0x3aa): undefined reference to `bool
>> mlpack::data::Load<double>(std::__cxx11::basic_string<char,
>> std::char_traits<char>, std::allocator<char> > const&, arma::Mat<double>&,
>> bool, bool)'
>> collect2: error: ld returned 1 exit status
>>
>> How to remove this unresolved reference problem. Am i missing any other
>> dependencies ?
>> Once again, thank you for the suggestions.
>>
>> Regards
>> Rahul
>>
>>
>>
>>
>>
>>
>>>>
>> On Sun, Dec 10, 2017 at 9:53 PM, Evgeny Freyman <evg.freyman at gmail.com>
>> wrote:
>>
>>> Hi Rahul,
>>>
>>> Just getting started with MLPack myself and had the similar problem. The
>>> solution is:
>>>
>>> 1. As far as I know gcc is for C and g++ is for C++ language, so you
>>> need to use g++
>>> 2. You didn't specify dependencies, thats why you got lots of unresolved
>>> references. The proper way to compile your code is:
>>>
>>> g++ -std=c++11 cov.cpp -lmlpack -larmadillo -lboost_serialization
>>> -lboost_program_options -lboost_unit_test_framework
>>>
>>> granted that you installed MLPack (ran "make install" command from the
>>> instructions). Some of those Boost's dependencies may be redundant here, it
>>> depends on what you use in your code.
>>>
>>> Be careful to specify your source files before list of dependencies.
>>> Thanks *rcurtin *for clarification.
>>>
>>> All the best
>>> Eugene Freyman
>>>
>>>
>>> вс, 10 дек. 2017 г. в 16:46, Rahul Barnwal <rahulbarnwal70 at gmail.com>:
>>>
>>>> Hi,
>>>> I am a fourth year undergraduate student at Indian Institute of
>>>> Technology, Kharagpur, India. I am interested in contributing to mlpack
>>>> library. I am new to open source field and want to explore it in area of
>>>> interest and hence, mlpack.
>>>>
>>>> Following the instructions given on *contributing to mlpack* page, i
>>>> have compiled it from the source and have also tried some of the simple
>>>> command line executables like mlpack_linear_regression.  But while
>>>> implementing simple mlpack programs, i am stuck.
>>>> i gave this command:
>>>>  gcc -std=c++11 cov.cpp
>>>> But got this error instead,  *https://pastebin.com/cb8aKRKf
>>>> <https://mailtrack.io/trace/link/6af04dd78d0a4d0e6d495784fee96713e8ad50e0?url=https%3A%2F%2Fpastebin.com%2Fcb8aKRKf&userId=745499&signature=da9f9769c784f908>*
>>>>  Could you please let me know what is wrong here ?
>>>>
>>>>
>>>> --
>>>> Regards,
>>>> Rahul Barnwal
>>>> 4th year Undergraduate
>>>> Mathematics Department
>>>> IIT KHARAGPUR
>>>>
>>>>
>>>>
>>>>>>>> <https://mailtrack.io/> Sent with Mailtrack
>>>> <https://mailtrack.io/trace/link/16ad94de1fff0001d19c90828097c7fe88fc39ba?url=https%3A%2F%2Fchrome.google.com%2Fwebstore%2Fdetail%2Fmailtrack-for-gmail-inbox%2Fndnaehgpjlnokgebbaldlmgkapkpjkkb%3Futm_source%3Dgmail%26utm_medium%3Dsignature%26utm_campaign%3Dsignaturevirality&userId=745499&signature=afbe5ca3493c1dbc>
>>>> _______________________________________________
>>>> mlpack mailing list
>>>> mlpack at lists.mlpack.org
>>>> http://knife.lugatgt.org/cgi-bin/mailman/listinfo/mlpack
>>>> <https://mailtrack.io/trace/link/18c5fcb614e8d0fea314c8d719553c9896cc5b3b?url=http%3A%2F%2Fknife.lugatgt.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fmlpack&userId=745499&signature=d193e4f68a4b96e6>
>>>
>>>
>>
>>
>> --
>> Regards,
>> Rahul Barnwal
>> 4th year Undergraduate
>> Mathematics Department
>> IIT KHARAGPUR
>>
>


-- 
Regards,
Rahul Barnwal
4th year Undergraduate
Mathematics Department
IIT KHARAGPUR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://knife.lugatgt.org/pipermail/mlpack/attachments/20171211/dd9376a4/attachment-0001.html>


More information about the mlpack mailing list