Yet Another Bulletin Board

Welcome, Guest. Please Login or Register.
05/24/13 at 22:13:10

Home Home Help Help Search Search Members Members Login Login Register Register
iLab Forum « Source Code Request »


   iLab Forum
   C++ Neuromorphic Vision Toolkit
   Source Code Access Requests
(Moderators: Forum Admin, Laurent Itti)
   Source Code Request
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: Source Code Request  (Read 723 times)
Matus
YaBB Newbie
*



I love YaBB 1G - SP1!

   


Posts: 7
Source Code Request
« on: 01/20/12 at 06:30:08 »
Quote Quote Modify Modify

My name is Matus Simkovic. I'm graduate student in developmental psychology at  Uni Heidelberg. I want to check out the motion saliency of my stimuli with the toolbox.
 
I'm struggling to compile the source.  Configuration terminated without any warnings, but 'make core' results in an error. Here is the stack trace:
 
cc1plus: warnings being treated as errors
In file included from src/Channels/ChannelBase.H:44:0,
       from src/Channels/ContourChannel.C:42:
src/Component/ModelParam.H: In member function 'bool OModelParam<T>::setValString(const std::string&) [with T = ContourChannelDynamicsType, std::string = std::basic_string<char>]':
src/Component/ModelParam.H:520:7: error: 'newval' may be used uninitialized in this function
Command exited with non-zero status 1
<<time>> 2.42 user, 0.09 sys, 0:02.53 elapsed, 99% CPU : build/obj/Channels/ContourChannel.o
make: *** [build/obj/Channels/ContourChannel.o] Error 1
 
I run the 20120116 distribution on Linux Mint 11.
 
Any help or advice on how to avoid the error would be much appreciated.
 
Best,
 
Matus
Logged
Matus
YaBB Newbie
*



I love YaBB 1G - SP1!

   


Posts: 7
Re: Source Code Request
« Reply #1 on: 01/21/12 at 10:15:56 »
Quote Quote Modify Modify

I got impatient and installed Ubuntu 11.10, but I can't make the toolkit run there either. Configuration doesn't detect the libavcodec, which is strange, since I have it installed. It's in /usr/include/.  
 
EDIT: I figured out, the avcodec_decode_video function was depreciated and configuration can't find it. Avcodec_decode_video2 should be used instead. I tried downgrading libav but so far that didn't work.  
« Last Edit: 01/23/12 at 01:27:59 by Matus » Logged
prarobo
YaBB Newbie
*



I love YaBB 1G - SP1!

   


Posts: 11
Re: Source Code Request
« Reply #2 on: 07/02/12 at 17:49:03 »
Quote Quote Modify Modify

I am getting a similar error. I am using 64 bit Ubuntu 11.04  
 
I will give the output of configure and make below:-
 
./configure --enable-quietcompile
 
Code:

....
configure: WARNINGS:
* mpeg_encode program missing; high-quality mpeg-1 encoding will be unavailable
Using:  ./depoptions.in
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mexopts.sh
config.status: creating depoptions-all
config.status: creating tests/config.tcl
config.status: creating tests/invt_config.pm
config.status: creating config.h
config.status: config.h is unchanged

 
sudo make core
 
Code:
Running autoheader
make: autoheader: Command not found
Computing source file dependencies
used 3904/3904 entries from cache file build/dep.cache
Loading config file
WARNING: --exeformat pattern was never matched: src/AppDevices/test-EphysAudioNT.C:${prefix}/bin/test-EphysAudioNT  
WARNING: --exeformat pattern was never matched: src/Gist/test-KLT.C:${prefix}/bin/test-KLT  
WARNING: --exeformat pattern was never matched: src/Gist/test-MeanShiftSegment.cc:${prefix}/bin/test-MeanShiftSegment  
WARNING: --exeformat pattern was never matched: src/Gist/test-EdgeDensitySalientRegionSegmenter.C:${prefix}/bin/test-Edg eDensitySalientRegionSegmenter  
WARNING: --exeformat pattern was never matched: src/Gist/test-RectangularCenterSurroundSalientRegionSegmenter.C:${prefix }/bin/test-RectangularCenterSurroundSalientRegionSegmenter  
WARNING: --exeformat pattern was never matched: src/Gist/test-FrequencyTunedSalientRegionSegmenter.C:${prefix}/bin/test- FrequencyTunedSalientRegionSegmenter  
WARNING: --exeformat pattern was never matched: src/Gist/test-FTSRS_helper.cc:${prefix}/bin/test-FTSRS_helper  
WARNING: --exeformat pattern was never matched: src/Robots/Beobot2/Navigation/FOE_Navigation/test-FOE_FormMotionInteract ion.C:${prefix}/bin/test-FOE_FormMotionInteraction  
WARNING: --exeformat pattern was never matched: src/Robots/Beobot2/Navigation/FOE_Navigation/groundTruth-FOEdetection.C: ${prefix}/bin/groundTruth-FOEdetection  
WARNING: --exeformat pattern was never matched: src/Robots/Beobot2/Navigation/FOE_Navigation/benchmark-FOEdetector.C:${p refix}/bin/benchmark-FOEdetector  
WARNING: --exeformat pattern was never matched: src/Robots/Beobot2/Navigation/app-LocalMapNavigator.C:${prefix}/bin/app- LocalMapNavigator  
WARNING: --exeformat pattern was never matched: src/Robots/Beobot2/HumanRobotInteraction/test-PedestrianDetector.C:${pre fix}/bin/test-PedestrianDetector  
Running autoheader
make: autoheader: Command not found
Compiling C++ file   src/Channels/ContourChannel.C
cc1plus: warnings being treated as errors
In file included from src/Channels/ChannelBase.H:44:0,
       from src/Channels/ContourChannel.C:42:
src/Component/ModelParam.H: In member function &#8216;bool OModelParam<T>::setValString(const std::string&) [with T = ContourChannelDynamicsType, std::string = std::basic_string<char>]&#8217;:
src/Component/ModelParam.H:520:7: error: &#8216;newval&#8217; may be used uninitialized in this function
make: *** [build/obj/Channels/ContourChannel.o] Error 1

 
Any help on how to fix this error will be great.
Logged
Matus
YaBB Newbie
*



I love YaBB 1G - SP1!

   


Posts: 7
Re: Source Code Request
« Reply #3 on: 07/03/12 at 02:38:12 »
Quote Quote Modify Modify

Hi prarobo,
 
I received notification. I was looking for a word from the toolbox maintainers, though. But since I'm already here I can try to help.  
 
The hint is in your output: warnings being treated as errors  
Try to turn off the warnings. Make has a flag for that.
 
best,
Matus
Logged
prarobo
YaBB Newbie
*



I love YaBB 1G - SP1!

   


Posts: 11
Re: Source Code Request
« Reply #4 on: 07/03/12 at 10:07:23 »
Quote Quote Modify Modify

Hi Matus,
 
Thanks for the reply. I tried your idea even before my first post. But I ended up with a different set of errors.
 
the output was:-
 
sudo make core
 
Code:
Running autoheader
make: autoheader: Command not found
Compiling C++ file             src/Channels/ContourChannel.C
In file included from src/Channels/ChannelBase.H:44:0,
                 from src/Channels/ContourChannel.C:42:
src/Component/ModelParam.H: In member function &#8216;bool OModelParam<T>::setValString(const std::string&) [with T = ContourChannelDynamicsType, std::string = std::basic_string<char>]&#8217;:
src/Component/ModelParam.H:520:7: warning: &#8216;newval&#8217; may be used uninitialized in this function
src/Component/ModelParam.H: In member function &#8216;bool OModelParam<T>::setValString(const std::string&) [with T = ContourChannelFilterStyle, std::string = std::basic_string<char>]&#8217;:
src/Component/ModelParam.H:520:7: warning: &#8216;newval&#8217; may be used uninitialized in this function
src/Component/ModelParam.H: In member function &#8216;bool OModelParam<T>::setValString(const std::string&) [with T = ContourConnectionType, std::string = std::basic_string<char>]&#8217;:
src/Component/ModelParam.H:520:7: warning: &#8216;newval&#8217; may be used uninitialized in this function
src/Util/StringConversions.H: In constructor &#8216;ContourChannel::ContourChannel(OptionManager&, const std::string&)&#8217;:
src/Util/StringConversions.H:208:5: warning: &#8216;val&#8217; may be used uninitialized in this function
src/Util/StringConversions.H:208:5: warning: &#8216;val&#8217; may be used uninitialized in this function
src/Util/StringConversions.H:208:5: warning: &#8216;val&#8217; may be used uninitialized in this function
src/Util/StringConversions.H: In constructor &#8216;ContourChannel::ContourChannel(OptionManager&, const std::string&)&#8217;:
src/Util/StringConversions.H:208:5: warning: &#8216;val&#8217; may be used uninitialized in this function
src/Util/StringConversions.H:208:5: warning: &#8216;val&#8217; may be used uninitialized in this function
src/Util/StringConversions.H:208:5: warning: &#8216;val&#8217; may be used uninitialized in this function
Compiling C++ file             src/Channels/DKLTypes.C
Compiling C++ file             src/Channels/DKLcolorChannel.C
Compiling C++ file             src/Channels/DcolorChannel.C
Compiling C++ file             src/Channels/DepthChannel.C
Compiling C++ file             src/Channels/DepthMotionChannel.C
Compiling C++ file             src/Channels/DirectionChannel.C
Compiling C++ file             src/Channels/DirectionOpticalFlowChannel.C
Compiling C++ file             src/Channels/DirectionSpatioTemporalChannel.C
Compiling C++ file             src/Channels/DummyChannel.C
Compiling C++ file             src/Channels/EndPointChannel.C
Compiling C++ file             src/Channels/FlickerChannel.C
Compiling C++ file             src/Channels/FlickerNBackChannel.C
Compiling C++ file             src/Channels/FoeMSTChannel.C
Compiling C++ file             src/Channels/ForegroundDetectionChannel.C
src/Channels/ForegroundDetectionChannel.C: In member function &#8216;virtual void ForegroundDetectionChannel::doInput(const InputFrame&)&#8217;:
src/Channels/ForegroundDetectionChannel.C:119:56: error: &#8216;cvCreateFGDStatModel&#8217; was not declared in this scope
src/Channels/ForegroundDetectionChannel.C:122:52: error: &#8216;cvUpdateBGStatModel&#8217; was not declared in this scope
src/Channels/ForegroundDetectionChannel.C:130:46: error: invalid use of incomplete type &#8216;struct CvBGStatModel&#8217;
src/Channels/ForegroundDetectionChannel.H:56:7: error: forward declaration of &#8216;struct CvBGStatModel&#8217;
make: *** [build/obj/Channels/ForegroundDetectionChannel.o] Error 1
« Last Edit: 07/03/12 at 10:08:16 by prarobo » Logged
Matus
YaBB Newbie
*



I love YaBB 1G - SP1!

   


Posts: 7
Re: Source Code Request
« Reply #5 on: 07/03/12 at 10:14:44 »
Quote Quote Modify Modify

I can't help you with this error, though it looks like the compilation process got further than in your first post. I would concentrate on resolving the error message in the latter post.
Logged
prarobo
YaBB Newbie
*



I love YaBB 1G - SP1!

   


Posts: 11
Re: Source Code Request
« Reply #6 on: 07/03/12 at 12:04:31 »
Quote Quote Modify Modify

I got to the linking part of the code. But for some reason the object files are not getting detected. The object files exist at the same folder location. A small sample of the output of  
 
sudo make core
 
Code:
....
Makefile:1251: warning: undefined variable `PWD'
Linking executable program     bin/beochannel-server
g++: /build/obj/Beowulf/Beowulf.o: No such file or directory
g++: /build/obj/Beowulf/BeowulfOpts.o: No such file or directory
g++: /build/obj/Beowulf/SockServ.o: No such file or directory
g++: /build/obj/Beowulf/TCPcliServ.o: No such file or directory
g++: /build/obj/Beowulf/TCPcommunicator.o: No such file or directory
g++: /build/obj/Beowulf/TCPmessage.o: No such file or directory
g++: /build/obj/Channels/BlueChannel.o: No such file or directory
g++: /build/obj/Channels/BlueYellowChannel.o: No such file or directory
g++: /build/obj/Channels/CIELabChannel.o: No such file or directory
g++: /build/obj/Channels/ChannelBase.o: No such file or directory
.....

 
Any advise?
Logged
Matus
YaBB Newbie
*



I love YaBB 1G - SP1!

   


Posts: 7
Re: Source Code Request
« Reply #7 on: 07/03/12 at 12:37:00 »
Quote Quote Modify Modify

oh yeah, you have to define PWD so that you obtain permission to write into subfolders. (search the forum for suggestions)
 
Alternatively, just remove any writing permissions defined for the subfolder. As far as I remember it concers only single one, but I dont recall which one...
« Last Edit: 07/03/12 at 12:37:51 by Matus » Logged
prarobo
YaBB Newbie
*



I love YaBB 1G - SP1!

   


Posts: 11
Re: Source Code Request
« Reply #8 on: 07/03/12 at 15:00:32 »
Quote Quote Modify Modify

Thanks for you reply Prof Itti.
 
I was able to go ahead by declaring PWD, but I got an error later
 
sudo make core
 
output:-
Code:
....
Running autoheader
make: autoheader: Command not found
Compiling C++ file   src/ModelNeuron/SimulationWorkQueue.C
In file included from /usr/include/c++/4.5/vector:69:0,
       from /usr/include/c++/4.5/bits/random.h:31,
       from /usr/include/c++/4.5/random:51,
       from /usr/include/c++/4.5/bits/stl_algo.h:66,
       from /usr/include/c++/4.5/algorithm:63,
       from ./c++stdlib.h:54,
       from <command-line>:0:
/usr/include/c++/4.5/thread: In member function &#8216;void std::vector<_Tp, _Alloc>::_M_fill_insert(std::vector<_Tp, _Alloc>::iterator, std::vector::size_type, const value_type&) [with _Tp = std::thread, _Alloc = std::allocator<std::thread>, std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<std::thread*, std::vector<std::thread> >, typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer = std::thread*, std::vector::size_type = long unsigned int, value_type = std::thread]&#8217;:
/usr/include/c++/4.5/bits/stl_vector.h:859:9:   instantiated from &#8216;void std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::iterator, std::vector::size_type, const value_type&) [with _Tp = std::thread, _Alloc = std::allocator<std::thread>, std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<std::thread*, std::vector<std::thread> >, typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer = std::thread*, std::vector::size_type = long unsigned int, value_type = std::thread]&#8217;
/usr/include/c++/4.5/bits/stl_vector.h:558:4:   instantiated from &#8216;void std::vector<_Tp, _Alloc>::resize(std::vector::size_type, value_type) [with _Tp = std::thread, _Alloc = std::allocator<std::thread>, std::vector::size_type = long unsigned int, value_type = std::thread]&#8217;
src/ModelNeuron/SimulationWorkQueue.C:96:31:   instantiated from here
/usr/include/c++/4.5/thread:127:5: error: deleted function &#8216;std::thread::thread(const std::thread&)&#8217;
/usr/include/c++/4.5/bits/vector.tcc:380:30: error: used here
In file included from /usr/include/c++/4.5/algorithm:62:0,
       from ./c++stdlib.h:54,
       from <command-line>:0:
/usr/include/c++/4.5/thread: In function &#8216;typename __gnu_cxx::__enable_if<(! std::__is_scalar<_Tp>::__value), void>::__type std::__fill_a(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = std::thread*, _Tp = std::thread, typename __gnu_cxx::__enable_if<(! std::__is_scalar<_Tp>::__value), void>::__type = void]&#8217;:
/usr/include/c++/4.5/bits/stl_algobase.h:742:7:   instantiated from &#8216;void std::fill(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = std::thread*, _Tp = std::thread]&#8217;
/usr/include/c++/4.5/bits/vector.tcc:392:5:   instantiated from &#8216;void std::vector<_Tp, _Alloc>::_M_fill_insert(std::vector<_Tp, _Alloc>::iterator, std::vector::size_type, const value_type&) [with _Tp = std::thread, _Alloc = std::allocator<std::thread>, std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<std::thread*, std::vector<std::thread> >, typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer = std::thread*, std::vector::size_type = long unsigned int, value_type = std::thread]&#8217;
/usr/include/c++/4.5/bits/stl_vector.h:859:9:   instantiated from &#8216;void std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::iterator, std::vector::size_type, const value_type&) [with _Tp = std::thread, _Alloc = std::allocator<std::thread>, std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<std::thread*, std::vector<std::thread> >, typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer = std::thread*, std::vector::size_type = long unsigned int, value_type = std::thread]&#8217;
/usr/include/c++/4.5/bits/stl_vector.h:558:4:   instantiated from &#8216;void std::vector<_Tp, _Alloc>::resize(std::vector::size_type, value_type) [with _Tp = std::thread, _Alloc = std::allocator<std::thread>, std::vector::size_type = long unsigned int, value_type = std::thread]&#8217;
src/ModelNeuron/SimulationWorkQueue.C:96:31:   instantiated from here
/usr/include/c++/4.5/thread:149:13: error: deleted function &#8216;std::thread& std::thread::operator=(const std::thread&)&#8217;
/usr/include/c++/4.5/bits/stl_algobase.h:696:2: error: used here
In file included from /usr/include/c++/4.5/bits/stl_tempbuf.h:61:0,
       from /usr/include/c++/4.5/bits/stl_algo.h:63,
       from /usr/include/c++/4.5/algorithm:63,
       from ./c++stdlib.h:54,
       from <command-line>:0:
/usr/include/c++/4.5/thread: In function &#8216;void std::_Construct(_T1*, _T2&&) [with _T1 = std::thread, _T2 = const std::thread&]&#8217;:
/usr/include/c++/4.5/bits/stl_uninitialized.h:248:3:   instantiated from &#8216;static void std::__uninitialized_fill_n<<anonymous> >::uninitialized_fill_n(_ForwardIterator, _Size, const _Tp&) [with _ForwardIterator = std::thread*, _Size = long unsigned int, _Tp = std::thread, bool <anonymous> = false]&#8217;
/usr/include/c++/4.5/bits/stl_uninitialized.h:284:7:   instantiated from &#8216;void std::uninitialized_fill_n(_ForwardIterator, _Size, const _Tp&) [with _ForwardIterator = std::thread*, _Size = long unsigned int, _Tp = std::thread]&#8217;
/usr/include/c++/4.5/bits/stl_uninitialized.h:379:7:   instantiated from &#8216;void std::__uninitialized_fill_n_a(_ForwardIterator, _Size, const _Tp&, std::allocator<_Tp2>&) [with _ForwardIterator = std::thread*, _Size = long unsigned int, _Tp = std::thread, _Tp2 = std::thread]&#8217;
/usr/include/c++/4.5/bits/stl_vector.h:1039:2:   instantiated from &#8216;void std::vector<_Tp, _Alloc>::_M_fill_initialize(std::vector::size_type, const value_type&) [with _Tp = std::thread, _Alloc = std::allocator<std::thread>, std::vector::size_type = long unsigned int, value_type = std::thread]&#8217;
/usr/include/c++/4.5/bits/stl_vector.h:230:9:   instantiated from &#8216;std::vector<_Tp, _Alloc>::vector(std::vector::size_type, const value_type&, const allocator_type&) [with _Tp = std::thread, _Alloc = std::allocator<std::thread>, std::vector::size_type = long unsigned int, value_type = std::thread, allocator_type = std::allocator<std::thread>]&#8217;
src/ModelNeuron/SimulationWorkQueue.C:42:78:   instantiated from here
/usr/include/c++/4.5/thread:127:5: error: deleted function &#8216;std::thread::thread(const std::thread&)&#8217;
/usr/include/c++/4.5/bits/stl_construct.h:80:7: error: used here
make: *** [build/obj/ModelNeuron/SimulationWorkQueue.o] Error 1

 
I see that this is related to the c++ headers, has anyone faced this before?
Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

iLab Forum » Powered by YaBB !
YaBB © 2000-2002,
Xnull. All Rights Reserved.