ocl-installation error

Hi all, I decided to reinstall my ocl with deployment error once I
couldn't get enable last time a run make. But unfortunately the message
error is returned and I don't understand.

CMakeFiles/deployer-gnulinux.dir/deployer-funcs.o: In function
`OCL::deployerParseCmdLine(int, char**, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >&, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >&,
boost::program_options::variables_map&,
boost::program_options::options_description*)':
deployer-funcs.cpp:(.text+0x8b8): undefined reference to
`boost::program_options::options_description::m_default_line_length'
collect2: ld returned 1 exit status
make[2]: *** [bin/deployer-gnulinux] Error 1
make[1]: *** [bin/CMakeFiles/deployer-gnulinux.dir/all] Error 2
make: *** [all] Error 2

I have boost dir on my /usr/include.

Thanks,

Breno

ocl-installation error

Hi Breno,

On Mon, Dec 14, 2009 at 20:04, <breno [..] ...> wrote:
> Hi all, I decided to reinstall my ocl with deployment error once I
> couldn't get enable last time a run make. But unfortunately the message
> error is returned and I don't understand.
>
> CMakeFiles/deployer-gnulinux.dir/deployer-funcs.o: In function
> `OCL::deployerParseCmdLine(int, char**, std::basic_string<char,
> std::char_traits<char>, std::allocator<char> >&, std::basic_string<char,
> std::char_traits<char>, std::allocator<char> >&,
> boost::program_options::variables_map&,
> boost::program_options::options_description*)':
> deployer-funcs.cpp:(.text+0x8b8): undefined reference to
> `boost::program_options::options_description::m_default_line_length'
> collect2: ld returned 1 exit status
> make[2]: *** [bin/deployer-gnulinux] Error 1
> make[1]: *** [bin/CMakeFiles/deployer-gnulinux.dir/all] Error 2
> make: *** [all] Error 2

We need the output of:

make VERBOSE=1

and also your CMakeCache.txt file

In order to debug this.

Peter

ocl-installation error

> We need the output of:
>
> make VERBOSE=1
>
> and also your CMakeCache.txt file
>
> In order to debug this.
>
> Peter
>

Hello, thanks for your attention. I run make Verbose 1 and the output is
below:

[100%] Building CXX object
bin/CMakeFiles/deployer-gnulinux.dir/deployer-funcs.o

cd /home/breno/Desktop/orocos-ocl-1.10.1/build/bin && /usr/local/bin/c++
-O2 -DNDEBUG -I/home/breno/Desktop/orocos-ocl-1.10.1
-I/home/breno/Desktop/orocos-ocl-1.10.1/build/ocl
-I/usr/local/orocos/orocos-rtt-1.10.0/include -I/usr/local/include -Wall
-DOROCOS_TARGET=gnulinux -Wall -Wall -Wall -Wall -o
CMakeFiles/deployer-gnulinux.dir/deployer-funcs.o -c
/home/breno/Desktop/orocos-ocl-1.10.1/bin/deployer-funcs.cpp

Linking CXX executable deployer-gnulinux

cd /home/breno/Desktop/orocos-ocl-1.10.1/build/bin && /usr/local/bin/cmake
-E cmake_link_script CMakeFiles/deployer-gnulinux.dir/link.txt --verbose=1
/usr/local/bin/c++ -O2 -DNDEBUG -fPIC
CMakeFiles/deployer-gnulinux.dir/deployer.o
CMakeFiles/deployer-gnulinux.dir/deployer-funcs.o -o deployer-gnulinux
-rdynamic -L/usr/local/orocos/orocos-rtt-1.10.0/lib -L/usr/local/lib
-L/usr/local/lib/rtt/gnulinux/plugins
../taskbrowser/liborocos-taskbrowser-gnulinux.so.1.10.1
../deployment/liborocos-deployment-gnulinux.so.1.10.1
-lorocos-rtt-gnulinux -lpthread -lrt -lboost_program_options -lncurses
-lreadline ../ocl/liborocos-ocl-common-gnulinux.so.1.10.1
-lorocos-rtt-gnulinux -lpthread -lrt -ldl
-Wl,-rpath,/usr/local/orocos/orocos-rtt-1.10.0/lib:/home/breno/Desktop/orocos-ocl-1.10.1/build/ocl:/usr/local/lib:/usr/local/lib/rtt/gnulinux/plugins:/home/breno/Desktop/orocos-ocl-1.10.1/build/taskbrowser:/home/breno/Desktop/orocos-ocl-1.10.1/build/deployment

CMakeFiles/deployer-gnulinux.dir/deployer-funcs.o: In function
`OCL::deployerParseCmdLine(int, char**, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >&, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >&,
boost::program_options::variables_map&,
boost::program_options::options_description*)':
deployer-funcs.cpp:(.text+0x8b8): undefined reference to
`boost::program_options::options_description::m_default_line_length'
collect2: ld returned 1 exit status
make[2]: *** [bin/deployer-gnulinux] Error 1
make[2]: Leaving directory `/home/breno/Desktop/orocos-ocl-1.10.1/build'
make[1]: *** [bin/CMakeFiles/deployer-gnulinux.dir/all] Error 2
make[1]: Leaving directory `/home/breno/Desktop/orocos-ocl-1.10.1/build'

Sorry, that's huge! I also attached the CMakeCache.txt.

Btw, I have libboost_program_options.so

Thanks again,

Breno

ocl-installation error

On Tuesday 15 December 2009 22:33:56 breno [..] ... wrote:
> > We need the output of:
> >
> > make VERBOSE=1
> >
> > and also your CMakeCache.txt file
> >
> > In order to debug this.
> >
> > Peter
>
> Hello, thanks for your attention. I run make Verbose 1 and the output is
> below:
...

> Linking CXX executable deployer-gnulinux
>
> cd /home/breno/Desktop/orocos-ocl-1.10.1/build/bin && /usr/local/bin/cmake
> -E cmake_link_script CMakeFiles/deployer-gnulinux.dir/link.txt --verbose=1
> /usr/local/bin/c++ -O2 -DNDEBUG -fPIC
> CMakeFiles/deployer-gnulinux.dir/deployer.o
> CMakeFiles/deployer-gnulinux.dir/deployer-funcs.o -o deployer-gnulinux
> -rdynamic -L/usr/local/orocos/orocos-rtt-1.10.0/lib -L/usr/local/lib
> -L/usr/local/lib/rtt/gnulinux/plugins
> ../taskbrowser/liborocos-taskbrowser-gnulinux.so.1.10.1
> ../deployment/liborocos-deployment-gnulinux.so.1.10.1
> -lorocos-rtt-gnulinux -lpthread -lrt -lboost_program_options -lncurses
> -lreadline ../ocl/liborocos-ocl-common-gnulinux.so.1.10.1
> -lorocos-rtt-gnulinux -lpthread -lrt -ldl
> -Wl,-rpath,/usr/local/orocos/orocos-rtt-1.10.0/lib:/home/breno/Desktop/oroc
> os-ocl-1.10.1/build/ocl:/usr/local/lib:/usr/local/lib/rtt/gnulinux/plugins:
> /home/breno/Desktop/orocos-ocl-1.10.1/build/taskbrowser:/home/breno/Desktop
> /orocos-ocl-1.10.1/build/deployment
>
> CMakeFiles/deployer-gnulinux.dir/deployer-funcs.o: In function
> `OCL::deployerParseCmdLine(int, char**, std::basic_string<char,
> std::char_traits<char>, std::allocator<char> >&, std::basic_string<char,
> std::char_traits<char>, std::allocator<char> >&,
> boost::program_options::variables_map&,
> boost::program_options::options_description*)':
> deployer-funcs.cpp:(.text+0x8b8): undefined reference to
> `boost::program_options::options_description::m_default_line_length'
> collect2: ld returned 1 exit status
> make[2]: *** [bin/deployer-gnulinux] Error 1
> make[2]: Leaving directory `/home/breno/Desktop/orocos-ocl-1.10.1/build'
> make[1]: *** [bin/CMakeFiles/deployer-gnulinux.dir/all] Error 2
> make[1]: Leaving directory `/home/breno/Desktop/orocos-ocl-1.10.1/build'
>
> Sorry, that's huge! I also attached the CMakeCache.txt.
>
>
> Btw, I have libboost_program_options.so

Do you happen to have another version of Boost installed in /usr/local/lib ?
Undefined symbols mostly come from corrupted environments with different
versions installed at different places, or an old version lying around and
being picked up.

Peter

ocl-installation error

> On Tuesday 15 December 2009 22:33:56 breno [..] ... wrote:
>> > We need the output of:
>> >
>> > make VERBOSE=1
>> >
>> > and also your CMakeCache.txt file
>> >
>> > In order to debug this.
>> >
>> > Peter
>>
>> Hello, thanks for your attention. I run make Verbose 1 and the output is
>> below:
> ...
>
>> Linking CXX executable deployer-gnulinux
>>
>> cd /home/breno/Desktop/orocos-ocl-1.10.1/build/bin &&
>> /usr/local/bin/cmake
>> -E cmake_link_script CMakeFiles/deployer-gnulinux.dir/link.txt
>> --verbose=1
>> /usr/local/bin/c++ -O2 -DNDEBUG -fPIC
>> CMakeFiles/deployer-gnulinux.dir/deployer.o
>> CMakeFiles/deployer-gnulinux.dir/deployer-funcs.o -o deployer-gnulinux
>> -rdynamic -L/usr/local/orocos/orocos-rtt-1.10.0/lib -L/usr/local/lib
>> -L/usr/local/lib/rtt/gnulinux/plugins
>> ../taskbrowser/liborocos-taskbrowser-gnulinux.so.1.10.1
>> ../deployment/liborocos-deployment-gnulinux.so.1.10.1
>> -lorocos-rtt-gnulinux -lpthread -lrt -lboost_program_options -lncurses
>> -lreadline ../ocl/liborocos-ocl-common-gnulinux.so.1.10.1
>> -lorocos-rtt-gnulinux -lpthread -lrt -ldl
>> -Wl,-rpath,/usr/local/orocos/orocos-rtt-1.10.0/lib:/home/breno/Desktop/oroc
>> os-ocl-1.10.1/build/ocl:/usr/local/lib:/usr/local/lib/rtt/gnulinux/plugins:
>> /home/breno/Desktop/orocos-ocl-1.10.1/build/taskbrowser:/home/breno/Desktop
>> /orocos-ocl-1.10.1/build/deployment
>>
>> CMakeFiles/deployer-gnulinux.dir/deployer-funcs.o: In function
>> `OCL::deployerParseCmdLine(int, char**, std::basic_string<char,
>> std::char_traits<char>, std::allocator<char> >&, std::basic_string<char,
>> std::char_traits<char>, std::allocator<char> >&,
>> boost::program_options::variables_map&,
>> boost::program_options::options_description*)':
>> deployer-funcs.cpp:(.text+0x8b8): undefined reference to
>> `boost::program_options::options_description::m_default_line_length'
>> collect2: ld returned 1 exit status
>> make[2]: *** [bin/deployer-gnulinux] Error 1
>> make[2]: Leaving directory `/home/breno/Desktop/orocos-ocl-1.10.1/build'
>> make[1]: *** [bin/CMakeFiles/deployer-gnulinux.dir/all] Error 2
>> make[1]: Leaving directory `/home/breno/Desktop/orocos-ocl-1.10.1/build'
>>
>> Sorry, that's huge! I also attached the CMakeCache.txt.
>>
>>
>> Btw, I have libboost_program_options.so
>
> Do you happen to have another version of Boost installed in /usr/local/lib
> ?
> Undefined symbols mostly come from corrupted environments with different
> versions installed at different places, or an old version lying around and
> being picked up.
>
> Peter
>

That´s rigth! I purge all references to boost and installed again. I had
another version on my system that I use on ARM.

Thanks once and again,

Breno

ocl-installation error-CMakeCache

I'm sorry, I don't thinks the file was attached!!!

Now it is!

Thanks,

Breno

ocl-installation error

Libboost is distributed in several packages (not only libboost-dev).
Do you have libboost-program-options-dev package installed ?

Nicolas

Re: ocl-installation error

Libboost is distributed in several packages (not only libboost-dev). Do you have libboost-program-options-dev package installed ?

Nicolas