From: Agrawal A. <agr...@st...> - 2008-01-03 17:52:22
|
Hi VXL users, I am very new to this system and eager to make my firs program using = these libraries. I have some questions regarding the installations. I have installed = cMake 2.4.7 on my linux machine. Also I have extracted the vxl contents = to vxl-1.9 folder present in my home directory and also created a bin = folder inside vxl. Now I set $VXLSRC as ~/vxl-1.9 and $VXLBIN as = ~/vxl-1.9/bin. IS it the correct way? Also, If I change the default option for non building the BUILD_VGUI to = ON. It does not work When I dont build VGUI, my make command builds everything good upto 30% = but then it stopped with generating errors mentioning missing path etc. Also, When I ran the test with ctest, only 5 % are passed. Please let me know where I am making mistakes. Thanks, Ashish |
From: Brendan M. <bre...@gm...> - 2008-01-03 19:54:48
|
Hi Ashish, You need to give us more information. Have a look at http://vxl.sourceforge.net/vxl-users-policy.html to see the minimum amount of info you need to supply. On 04/01/2008, Agrawal Ashish <agr...@st...> wrote: > Hi VXL users, > > I am very new to this system and eager to make my firs program using these libraries. > > I have some questions regarding the installations. I have installed cMake 2.4.7 on my linux machine. Also I have extracted the vxl contents to vxl-1.9 folder present in my home directory and also created a bin folder inside vxl. Now I set $VXLSRC as ~/vxl-1.9 and $VXLBIN as ~/vxl-1.9/bin. IS it the correct way? > > Also, If I change the default option for non building the BUILD_VGUI to ON. It does not work > > When I dont build VGUI, my make command builds everything good upto 30% but then it stopped with generating errors mentioning missing path etc. > > Also, When I ran the test with ctest, only 5 % are passed. > > Please let me know where I am making mistakes. > > Thanks, > Ashish > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Vxl-users mailing list > Vxl...@li... > https://lists.sourceforge.net/lists/listinfo/vxl-users > -- Cheers, Brendan |
From: Agrawal A. <agr...@st...> - 2008-01-07 13:41:43
|
Hi, I am using Red Hat Linux. My problem seems some issues with basic = setting or environment variables. Here is the problem: I have created 2 directories vxl-1.9 and bin into my home directory. I = extracted the vxl-1.9.0 in this directory and kept bin directory empty. Now I did Cmake and make as suggested for installations. It worked fine. = I also executed ctest for ~/vxl-1.9/bin/DartTestFile.txt which was = completed with 99% test cases passed, which is satisfactory for me to = start. Now I am trying to run the first program which is example program = residing in ~/vxl-1.9/vxl-1.9.0/core/examples/vnl_calc. While make-ing = the program it terminated mentioning vcl_cstdlib.h: No such file or = directory and did the same for all included files.=20 It seems that I made some mistake in directory structure where I should = have made bin directory or other setting so that it can understand the = physical location of thee files while being included.=20 Hope to resolve the problem soon. Thanks, Ashish |
From: Brendan M. <bre...@gm...> - 2008-01-07 20:03:01
|
Hi Ashish, So, your directory structure is: Source: ~/vxl-1.9/vxl-1.9.0 Binary: ~/vxl-1.9/bin and you did: cd ~/vxl-1.9/bin cmake ../vxl-1.9.0 make ctest and that worked fine? > Now I am trying to run the first program which is example program residing in ~/vxl-1.9/vxl-1.9.0/core/examples/vnl_calc. While make-ing the program it terminated mentioning vcl_cstdlib.h: No such file or directory and did the same for all included files. Here I get a bit confused. If the original make had succeeded, that example should have been compiled already - unless you turned off examples in cmake. So can you please explain exactly what you did and exactly what the output was (ie copy and paste the output of the compiler). If you haven't already done so, you should probably turn on the CMAKE_VERBOSE_MAKEFILE option in cmake - if you use ccmake, then you need to toggle advanced mode first. -- Cheers, Brendan |
From: Agrawal A. <agr...@st...> - 2008-01-08 11:19:29
|
Hi, Yes. All the examples have been compiled successfully as the result of = original make. I thought to compile myself few examples for eg. = ~/vxl-1.9/vxl-1.9.0/core/examples/vnl_calc. So I just executed "cmake = CMakeLists.txt " in this directory which results in creating Makefile. = Then I executed make in the same directory which ends up with = compilation error: Scanning dependencies of target time_fastops [ 11%] Building CXX object CMakeFiles/time_fastops.dir/time_fastops.o /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:2:26:= error: vcl_iostream.h: No such file or directory /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:3:41:= error: vcl_cmath.h: No such file or directory /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:4:24:= error: vcl_vector.h: No such file or directory /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:5:27:= error: vul/vul_timer.h: No such file or directory /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx: In = function 'int main()': /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:21: = error: 'vcl_vector' was not declared in this scope /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:21: = error: expected primary-expression before 'double' /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:21: = error: expected `;' before 'double' /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:23: = error: 'x' was not declared in this scope /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:23: = error: 'y' was not declared in this scope /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:23: = error: 'vcl_sqrt' was not declared in this scope /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:25: = error: 'vul_timer' was not declared in this scope /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:25: = error: expected `;' before 't' /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:27: = error: 'x' was not declared in this scope /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:27: = error: 'y' was not declared in this scope /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:28: = error: 'vcl_cerr' was not declared in this scope /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:29: = error: 'x' was not declared in this scope /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:29: = error: 'y' was not declared in this scope /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:30: = error: 't' was not declared in this scope make[2]: *** [CMakeFiles/time_fastops.dir/time_fastops.o] Error 1 make[1]: *** [CMakeFiles/time_fastops.dir/all] Error 2 make: *** [all] Error 2 To get them compiled I need to edit the automatically generated makefile = and providing the include file path with -I option. But then I ended up = with linking errors those I sent in my previous mail. My question is where I should write my own code and how to configure my = CmakeLists.txt so that it can recognize all the paths and libraries = files needed. My lack of knowledge in Cmake system might be another reason for this = ignorance.=20 Thanks, Ashish -----Original Message----- From: Brendan McCane [mailto:bre...@gm...] Sent: Mon 1/7/2008 9:03 PM To: Agrawal Ashish Cc: vxl...@li... Subject: Re: [Vxl-users] Very first make =20 Hi Ashish, So, your directory structure is: Source: ~/vxl-1.9/vxl-1.9.0 Binary: ~/vxl-1.9/bin and you did: cd ~/vxl-1.9/bin cmake ../vxl-1.9.0 make ctest and that worked fine? > Now I am trying to run the first program which is example program = residing in ~/vxl-1.9/vxl-1.9.0/core/examples/vnl_calc. While make-ing = the program it terminated mentioning vcl_cstdlib.h: No such file or = directory and did the same for all included files. Here I get a bit confused. If the original make had succeeded, that example should have been compiled already - unless you turned off examples in cmake. So can you please explain exactly what you did and exactly what the output was (ie copy and paste the output of the compiler). If you haven't already done so, you should probably turn on the CMAKE_VERBOSE_MAKEFILE option in cmake - if you use ccmake, then you need to toggle advanced mode first. --=20 Cheers, Brendan |
From: Wouter K. <wo...@im...> - 2008-01-08 11:36:26
|
Agrawal Ashish wrote: > Hi, Hi Agrawal, > Yes. All the examples have been compiled successfully as the result of original make. I thought to compile myself few examples for eg. ~/vxl-1.9/vxl-1.9.0/core/examples/vnl_calc. So I just executed "cmake CMakeLists.txt " in this directory which results in creating Makefile. Then I executed make in the same directory which ends up with compilation error: > > > Scanning dependencies of target time_fastops > [ 11%] Building CXX object CMakeFiles/time_fastops.dir/time_fastops.o > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:2:26: error: vcl_iostream.h: No such file or directory > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:3:41: error: vcl_cmath.h: No such file or directory > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:4:24: error: vcl_vector.h: No such file or directory > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:5:27: error: vul/vul_timer.h: No such file or directory You probably want to add /home/agrawala/vxl-1.9/vxl-1.9.0/core/vcl and /home/agrawala/vxl-1.9/vxl-1.9.0/core/ to your include path if you haven't already. > To get them compiled I need to edit the automatically generated makefile and providing the include file path with -I option. But then I ended up with linking errors those I sent in my previous mail. Those can be resolved if you include the .txx files for the templated classes. Remember, as VXL is templated, if you don't include the file with the template definitions, the compiler won't generate code for it. > My question is where I should write my own code and how to configure my CmakeLists.txt so that it can recognize all the paths and libraries files needed. > > My lack of knowledge in Cmake system might be another reason for this ignorance. > I suggest you read up some about templates and how they're compiled. I would recommend Bruce Eckel's Thinking in C++, volume 2, chapter 8. It's free to download. HTML: http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html PDF: http://www.planetpdf.com/codecuts/pdfs/eckel/TIC2Vtwo.zip > Thanks, > Ashish Regards Wouter Klouwen Software Engineer, UN*X Systems Administrator & ... Imagineer Systems Ltd | 40 Occam Rd, Surrey Research Park http://www.imagineersystems.com/ | Guildford, GU27YG, UK |
From: Brendan M. <bre...@gm...> - 2008-01-08 20:02:04
|
If you go to the directory /home/agrawala/vxl-1.9/bin/core/examples/vnl_calc there will be an executable in there called vnl_calc - this should have been already compiled since you say the compilation process worked fine. There is a clear separation between the source and binary directories and it's usually best to keep them separate. So you shouldn't need to make in a source directory. To turn on VGUI, go to your bin directory do: ccmake ../vxl-1.9.0 Scroll down until you see the option BUILD_VGUI, turn it on, then configure, then generate, then make again. To create your own source code/CMakeLists.txt, I'd suggest having a look at the vxl book which goes through the whole process. On 09/01/2008, Agrawal Ashish <agr...@st...> wrote: > Hi, > > Yes. All the examples have been compiled successfully as the result of original make. I thought to compile myself few examples for eg. ~/vxl-1.9/vxl-1.9.0/core/examples/vnl_calc. So I just executed "cmake CMakeLists.txt " in this directory which results in creating Makefile. Then I executed make in the same directory which ends up with compilation error: > > > Scanning dependencies of target time_fastops > [ 11%] Building CXX object CMakeFiles/time_fastops.dir/time_fastops.o > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:2:26: error: vcl_iostream.h: No such file or directory > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:3:41: error: vcl_cmath.h: No such file or directory > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:4:24: error: vcl_vector.h: No such file or directory > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:5:27: error: vul/vul_timer.h: No such file or directory > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx: In function 'int main()': > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:21: error: 'vcl_vector' was not declared in this scope > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:21: error: expected primary-expression before 'double' > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:21: error: expected `;' before 'double' > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:23: error: 'x' was not declared in this scope > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:23: error: 'y' was not declared in this scope > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:23: error: 'vcl_sqrt' was not declared in this scope > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:25: error: 'vul_timer' was not declared in this scope > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:25: error: expected `;' before 't' > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:27: error: 'x' was not declared in this scope > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:27: error: 'y' was not declared in this scope > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:28: error: 'vcl_cerr' was not declared in this scope > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:29: error: 'x' was not declared in this scope > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:29: error: 'y' was not declared in this scope > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:30: error: 't' was not declared in this scope > make[2]: *** [CMakeFiles/time_fastops.dir/time_fastops.o] Error 1 > make[1]: *** [CMakeFiles/time_fastops.dir/all] Error 2 > make: *** [all] Error 2 > > > To get them compiled I need to edit the automatically generated makefile and providing the include file path with -I option. But then I ended up with linking errors those I sent in my previous mail. > > My question is where I should write my own code and how to configure my CmakeLists.txt so that it can recognize all the paths and libraries files needed. > > My lack of knowledge in Cmake system might be another reason for this ignorance. > > > Thanks, > Ashish > > > -----Original Message----- > From: Brendan McCane [mailto:bre...@gm...] > Sent: Mon 1/7/2008 9:03 PM > To: Agrawal Ashish > Cc: vxl...@li... > Subject: Re: [Vxl-users] Very first make > > Hi Ashish, > > So, your directory structure is: > > Source: > ~/vxl-1.9/vxl-1.9.0 > > Binary: > ~/vxl-1.9/bin > > and you did: > cd ~/vxl-1.9/bin > cmake ../vxl-1.9.0 > make > ctest > > and that worked fine? > > > Now I am trying to run the first program which is example program residing in ~/vxl-1.9/vxl-1.9.0/core/examples/vnl_calc. While make-ing the program it terminated mentioning vcl_cstdlib.h: No such file or directory and did the same for all included files. > > Here I get a bit confused. If the original make had succeeded, that > example should have been compiled already - unless you turned off > examples in cmake. So can you please explain exactly what you did and > exactly what the output was (ie copy and paste the output of the > compiler). If you haven't already done so, you should probably turn on > the CMAKE_VERBOSE_MAKEFILE option in cmake - if you use ccmake, then > you need to toggle advanced mode first. > > -- > Cheers, > > Brendan > > -- Cheers, Brendan |
From: Agrawal A. <agr...@st...> - 2008-01-14 12:44:07
|
Hi Amitha, It seems I am not having gtkgl-ext *developer* package installed. I = tried to find on web but i could find only some resources to install = GtkGLExt only. When I run VGUI examples, I get following: vgui : registered 'glut' vgui : initialize 'glut' What can be the possible reasons of not getting gtk2? Thanks, Ashish -----Original Message----- From: Amitha Perera [mailto:ami...@us...] Sent: Thu 1/10/2008 6:40 PM To: Agrawal Ashish Cc: Brendan McCane; vxl...@li... Subject: Re: [Vxl-users] Very first make =20 Agrawal Ashish wrote: > Hi >=20 > Thanks a lot. I built VGUI and could run the examples. But It is = mentioned that while running the example I should run like this: >=20 > ./example* <--factory=3Dgui_toolkit> <image>. Also, it is mentioned = that gui_toolkit =3D VGUI. But it is not recognizing the VGUI passed in = this option. The toolkit referred to here is the toolkit that vgui itself uses as the = "backend". Under linux, this is often gtk2. However, you need the=20 gtkgl-ext *developer* package installed. When you run a vgui application, there should be some output about what=20 toolkits were compiled in. I get, for example: vgui : registered 'gtk2' 'qt' vgui : initialize 'gtk2' What do you get? Amitha. |
From: Matt L. <mat...@gm...> - 2008-01-14 13:24:14
|
Ashish, For gtk2 you need to have, as Amitha said, gtkglext. By *developer* package he means you need to have the headers installed so that you can compile a program that links to it. If you build a package from source you usually get the headers installed, but if you install a precompiled package you may not. Frequently there is a second developer package you can install to bring in these headers. You also need the gtk2 developer packages and a program called pkg-config. On a debian based system (like Ubuntu) you can use the following command to install these: apt-get install pkg-config libgtk2.0-dev libgtkglext1-dev Maybe someone else can provide you with the Redhat equivalent? Once you have all of these installed you need to enable the VGUI_USE_GTK2 in cmake and rebuild. Alternatively, you could also use Qt4 as a toolkit in Linux. This work about the same as gtk2 with vgui. For this you would need the Qt4 developer packages (libqt4-dev, libqt4-core, libqt4-debug, libqt4-gui). It appears you already have Glut installed an working, but this is not a complete vgui toolkit. It has only limited functionality. Good Luck, Matt On Jan 14, 2008 7:40 AM, Agrawal Ashish <agr...@st...> wrote: > Hi Amitha, > > It seems I am not having gtkgl-ext *developer* package installed. I tried to find on web but i could find only some resources to install GtkGLExt only. > > When I run VGUI examples, I get following: > vgui : registered 'glut' > vgui : initialize 'glut' > > What can be the possible reasons of not getting gtk2? > > Thanks, > Ashish > > > > -----Original Message----- > From: Amitha Perera [mailto:ami...@us...] > Sent: Thu 1/10/2008 6:40 PM > To: Agrawal Ashish > Cc: Brendan McCane; vxl...@li... > Subject: Re: [Vxl-users] Very first make > > Agrawal Ashish wrote: > > Hi > > > > Thanks a lot. I built VGUI and could run the examples. But It is mentioned that while running the example I should run like this: > > > > ./example* <--factory=gui_toolkit> <image>. Also, it is mentioned that gui_toolkit = VGUI. But it is not recognizing the VGUI passed in this option. > > The toolkit referred to here is the toolkit that vgui itself uses as the > "backend". Under linux, this is often gtk2. However, you need the > gtkgl-ext *developer* package installed. > > When you run a vgui application, there should be some output about what > toolkits were compiled in. I get, for example: > vgui : registered 'gtk2' 'qt' > vgui : initialize 'gtk2' > > What do you get? > > Amitha. > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Vxl-users mailing list > Vxl...@li... > https://lists.sourceforge.net/lists/listinfo/vxl-users > |
From: Amitha P. <ami...@us...> - 2008-01-14 14:44:58
|
Agrawal Ashish wrote: > It seems I am not having gtkgl-ext *developer* package installed. I tried to find on web but i could find only some resources to install GtkGLExt only. As Matt wrote, the developer packages contain the headers, which is needed for compiling against the library. In the RPM world, they are often called gtkglext-devel. If they are not available on the standard Redhat repositories, they are often available on DAG (google for DAG RPM). Amitha. |
From: Agrawal A. <agr...@st...> - 2008-01-10 16:10:13
|
Hi Thanks a lot. I built VGUI and could run the examples. But It is = mentioned that while running the example I should run like this: ./example* <--factory=3Dgui_toolkit> <image>. Also, it is mentioned that = gui_toolkit =3D VGUI. But it is not recognizing the VGUI passed in this = option. So while running basic05_menubar.cxx from bin/core/vgui/examples, I am = getting only an image (passed as parameter) but not menu bar as = expected. The output resembles "xv <image>". It seems there is some problem as I am not able to pass VGUI as factory. Thanks, Ashish -----Original Message----- From: Brendan McCane [mailto:bre...@gm...] Sent: Tue 1/8/2008 9:02 PM To: Agrawal Ashish Cc: vxl...@li... Subject: Re: [Vxl-users] Very first make =20 If you go to the directory /home/agrawala/vxl-1.9/bin/core/examples/vnl_calc there will be an executable in there called vnl_calc - this should have been already compiled since you say the compilation process worked fine. There is a clear separation between the source and binary directories and it's usually best to keep them separate. So you shouldn't need to make in a source directory. To turn on VGUI, go to your bin directory do: ccmake ../vxl-1.9.0 Scroll down until you see the option BUILD_VGUI, turn it on, then configure, then generate, then make again. To create your own source code/CMakeLists.txt, I'd suggest having a look at the vxl book which goes through the whole process. On 09/01/2008, Agrawal Ashish <agr...@st...> wrote: > Hi, > > Yes. All the examples have been compiled successfully as the result of = original make. I thought to compile myself few examples for eg. = ~/vxl-1.9/vxl-1.9.0/core/examples/vnl_calc. So I just executed "cmake = CMakeLists.txt " in this directory which results in creating Makefile. = Then I executed make in the same directory which ends up with = compilation error: > > > Scanning dependencies of target time_fastops > [ 11%] Building CXX object CMakeFiles/time_fastops.dir/time_fastops.o > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:2:26:= error: vcl_iostream.h: No such file or directory > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:3:41:= error: vcl_cmath.h: No such file or directory > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:4:24:= error: vcl_vector.h: No such file or directory > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:5:27:= error: vul/vul_timer.h: No such file or directory > /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx: = In function 'int main()': > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:21: = error: 'vcl_vector' was not declared in this scope > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:21: = error: expected primary-expression before 'double' > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:21: = error: expected `;' before 'double' > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:23: = error: 'x' was not declared in this scope > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:23: = error: 'y' was not declared in this scope > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:23: = error: 'vcl_sqrt' was not declared in this scope > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:25: = error: 'vul_timer' was not declared in this scope > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:25: = error: expected `;' before 't' > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:27: = error: 'x' was not declared in this scope > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:27: = error: 'y' was not declared in this scope > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:28: = error: 'vcl_cerr' was not declared in this scope > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:29: = error: 'x' was not declared in this scope > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:29: = error: 'y' was not declared in this scope > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:30: = error: 't' was not declared in this scope > make[2]: *** [CMakeFiles/time_fastops.dir/time_fastops.o] Error 1 > make[1]: *** [CMakeFiles/time_fastops.dir/all] Error 2 > make: *** [all] Error 2 > > > To get them compiled I need to edit the automatically generated = makefile and providing the include file path with -I option. But then I = ended up with linking errors those I sent in my previous mail. > > My question is where I should write my own code and how to configure = my CmakeLists.txt so that it can recognize all the paths and libraries = files needed. > > My lack of knowledge in Cmake system might be another reason for this = ignorance. > > > Thanks, > Ashish > > > -----Original Message----- > From: Brendan McCane [mailto:bre...@gm...] > Sent: Mon 1/7/2008 9:03 PM > To: Agrawal Ashish > Cc: vxl...@li... > Subject: Re: [Vxl-users] Very first make > > Hi Ashish, > > So, your directory structure is: > > Source: > ~/vxl-1.9/vxl-1.9.0 > > Binary: > ~/vxl-1.9/bin > > and you did: > cd ~/vxl-1.9/bin > cmake ../vxl-1.9.0 > make > ctest > > and that worked fine? > > > Now I am trying to run the first program which is example program = residing in ~/vxl-1.9/vxl-1.9.0/core/examples/vnl_calc. While make-ing = the program it terminated mentioning vcl_cstdlib.h: No such file or = directory and did the same for all included files. > > Here I get a bit confused. If the original make had succeeded, that > example should have been compiled already - unless you turned off > examples in cmake. So can you please explain exactly what you did and > exactly what the output was (ie copy and paste the output of the > compiler). If you haven't already done so, you should probably turn on > the CMAKE_VERBOSE_MAKEFILE option in cmake - if you use ccmake, then > you need to toggle advanced mode first. > > -- > Cheers, > > Brendan > > --=20 Cheers, Brendan |
From: Agrawal A. <agr...@st...> - 2008-01-08 12:47:29
|
Hi, Thanks a lot. Now I am able to understand the system and can write my = own make file to run my first hello world. May I know how I can install or build vgui as it was not built with = default options.=20 Thanks, Ashish -----Original Message----- From: Wouter Klouwen [mailto:wo...@im...] Sent: Tue 1/8/2008 12:35 PM To: Agrawal Ashish Cc: vxl...@li... Subject: Re: [Vxl-users] Very first make =20 Agrawal Ashish wrote: > Hi, Hi Agrawal, > Yes. All the examples have been compiled successfully as the result of = original make. I thought to compile myself few examples for eg. = ~/vxl-1.9/vxl-1.9.0/core/examples/vnl_calc. So I just executed "cmake = CMakeLists.txt " in this directory which results in creating Makefile. = Then I executed make in the same directory which ends up with = compilation error: >=20 >=20 > Scanning dependencies of target time_fastops > [ 11%] Building CXX object CMakeFiles/time_fastops.dir/time_fastops.o > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:2:26:= error: vcl_iostream.h: No such file or directory > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:3:41:= error: vcl_cmath.h: No such file or directory > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:4:24:= error: vcl_vector.h: No such file or directory > = /home/agrawala/vxl-1.9/vxl-1.9.0/core/vnl/examples/time_fastops.cxx:5:27:= error: vul/vul_timer.h: No such file or directory You probably want to add /home/agrawala/vxl-1.9/vxl-1.9.0/core/vcl and /home/agrawala/vxl-1.9/vxl-1.9.0/core/ to your include path if you haven't already. > To get them compiled I need to edit the automatically generated = makefile and providing the include file path with -I option. But then I = ended up with linking errors those I sent in my previous mail. Those can be resolved if you include the .txx files for the templated=20 classes. Remember, as VXL is templated, if you don't include the file=20 with the template definitions, the compiler won't generate code for it. > My question is where I should write my own code and how to configure = my CmakeLists.txt so that it can recognize all the paths and libraries = files needed. >=20 > My lack of knowledge in Cmake system might be another reason for this = ignorance.=20 >=20 I suggest you read up some about templates and how they're compiled. I would recommend Bruce Eckel's Thinking in C++, volume 2, chapter 8. It's free to download. HTML: http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html PDF: http://www.planetpdf.com/codecuts/pdfs/eckel/TIC2Vtwo.zip > Thanks, > Ashish Regards Wouter Klouwen Software Engineer, UN*X Systems Administrator & ... Imagineer Systems Ltd | 40 Occam Rd, Surrey Research Park http://www.imagineersystems.com/ | Guildford, GU27YG, UK |
From: Agrawal A. <agr...@st...> - 2008-01-07 15:38:31
|
Hi, I decided to write my makefile my own thus I could compile my code = successfully but still there are some linking errors. I am providing the = snapshot of my make file followed by the linking erros. #/***********************************************************************= */ CFLAGS =3D -I/home/agrawala/vxl-1.9/vxl-1.9.0/core = -I/home/agrawala/vxl-1.9/vxl-1.9.0/vcl -I/home/agrawala/vxl-1.9/bin/core = -I/home/agrawala/vxl-1.9/bin/vcl LIBS =3D -lm -L/home/agrawala/vxl-1.9/bin/lib/ -lvil1 -lvbl -lvcl = -losl -lmvl -lvepl -lv3p_netlib -lnetlib -lvnl -lvnl_algo -lvnl_xio = -lvnl_io vnl_calc : vnl_calc.cxx g++ $(CFLAGS) -o vnl_calc vnl_calc.cxx $(LIBS) #/**********************************************************************/= Linking Error: /************************************************/ g++ -I/home/agrawala/vxl-1.9/vxl-1.9.0/core = -I/home/agrawala/vxl-1.9/vxl-1.9.0/vcl -I/home/agrawala/vxl-1.9/bin/core = -I/home/agrawala/vxl-1.9/bin/vcl -o vnl_calc vnl_calc.cxx -lm = -L/home/agrawala/vxl-1.9/bin/lib/ -lvil1 -lvbl -lvcl -losl -lmvl -lvepl = -lv3p_netlib -lnetlib -lvnl -lvnl_algo -lvnl_xio -lvnl_io /home/agrawala/vxl-1.9/bin/lib//libvnl_algo.a(vnl_svd+double-.o)(.gnu.lin= konce.t._ZN22v3p_netlib_initializerC1Ev+0x7): In function = `v3p_netlib_initializer::v3p_netlib_initializer()': : undefined reference to `v3p_netlib_initialize' /home/agrawala/vxl-1.9/bin/lib//libvnl_algo.a(vnl_svd+double-.o)(.gnu.lin= konce.t._ZlsIdERSoS0_RK7vnl_svdIT_E+0x98): In function = `std::basic_ostream<char, std::char_traits<char> >& operator<< = <double>(std::basic_ostream<char, std::char_traits<char> >&, = vnl_svd<double> const&)': : undefined reference to `std::basic_ostream<char, = std::char_traits<char> >& operator<< <double>(std::basic_ostream<char, = std::char_traits<char> >&, vnl_diag_matrix<double> const&)' /home/agrawala/vxl-1.9/bin/lib//libvnl_algo.a(vnl_svd+double-.o)(.gnu.lin= konce.t._ZNK7vnl_svdIdE5solveERK10vnl_vectorIdE+0x15a): In function = `vnl_svd<double>::solve(vnl_vector<double> const&) const': : undefined reference to `std::basic_ostream<char, = std::char_traits<char> >& operator<< <double>(std::basic_ostream<char, = std::char_traits<char> >&, vnl_diag_matrix<double> const&)' /home/agrawala/vxl-1.9/bin/lib//libvnl_algo.a(vnl_svd+double-.o)(.gnu.lin= konce.t._Z16vnl_linpack_svdcPdPKlS1_S1_S_S_S_S1_S_S1_S_S1_Pl+0x61): In = function `vnl_linpack_svdc(double*, long const*, long const*, long = const*, double*, double*, double*, long const*, double*, long const*, = double*, long const*, long*)': : undefined reference to `v3p_netlib_dsvdc_' /home/agrawala/vxl-1.9/bin/lib//libvnl_algo.a(vnl_svd+double-.o)(.gnu.lin= konce.t._ZN7vnl_svdIdEC1ERK10vnl_matrixIdEd+0x172): In function = `vnl_svd<double>::vnl_svd(vnl_matrix<double> const&, double)': : undefined reference to = `vnl_fortran_copy<double>::vnl_fortran_copy(vnl_matrix<double> const&)' /home/agrawala/vxl-1.9/bin/lib//libvnl_algo.a(vnl_svd+double-.o)(.gnu.lin= konce.t._ZN7vnl_svdIdEC1ERK10vnl_matrixIdEd+0x427): In function = `vnl_svd<double>::vnl_svd(vnl_matrix<double> const&, double)': : undefined reference to `std::basic_ostream<char, = std::char_traits<char> >& = vnl_matlab_print<double>(std::basic_ostream<char, std::char_traits<char> = >&, vnl_matrix<double> const&, char const*, vnl_matlab_print_format)' /home/agrawala/vxl-1.9/bin/lib//libvnl_algo.a(vnl_svd+double-.o)(.gnu.lin= konce.t._ZN7vnl_svdIdEC1ERK10vnl_matrixIdEd+0x698): In function = `vnl_svd<double>::vnl_svd(vnl_matrix<double> const&, double)': : undefined reference to `vnl_fortran_copy<double>::~vnl_fortran_copy()' /home/agrawala/vxl-1.9/bin/lib//libvnl_algo.a(vnl_svd+double-.o)(.gnu.lin= konce.t._ZN7vnl_svdIdEC1ERK10vnl_matrixIdEd+0x6b4): In function = `vnl_svd<double>::vnl_svd(vnl_matrix<double> const&, double)': : undefined reference to `vnl_fortran_copy<double>::~vnl_fortran_copy()' /home/agrawala/vxl-1.9/bin/lib//libvnl_algo.a(vnl_svd+double-.o)(.gnu.lin= konce.t._ZN7vnl_svdIdEC2ERK10vnl_matrixIdEd+0x172): In function = `vnl_svd<double>::vnl_svd(vnl_matrix<double> const&, double)': : undefined reference to = `vnl_fortran_copy<double>::vnl_fortran_copy(vnl_matrix<double> const&)' /home/agrawala/vxl-1.9/bin/lib//libvnl_algo.a(vnl_svd+double-.o)(.gnu.lin= konce.t._ZN7vnl_svdIdEC2ERK10vnl_matrixIdEd+0x427): In function = `vnl_svd<double>::vnl_svd(vnl_matrix<double> const&, double)': : undefined reference to `std::basic_ostream<char, = std::char_traits<char> >& = vnl_matlab_print<double>(std::basic_ostream<char, std::char_traits<char> = >&, vnl_matrix<double> const&, char const*, vnl_matlab_print_format)' /home/agrawala/vxl-1.9/bin/lib//libvnl_algo.a(vnl_svd+double-.o)(.gnu.lin= konce.t._ZN7vnl_svdIdEC2ERK10vnl_matrixIdEd+0x698): In function = `vnl_svd<double>::vnl_svd(vnl_matrix<double> const&, double)': : undefined reference to `vnl_fortran_copy<double>::~vnl_fortran_copy()' /home/agrawala/vxl-1.9/bin/lib//libvnl_algo.a(vnl_svd+double-.o)(.gnu.lin= konce.t._ZN7vnl_svdIdEC2ERK10vnl_matrixIdEd+0x6b4): In function = `vnl_svd<double>::vnl_svd(vnl_matrix<double> const&, double)': : undefined reference to `vnl_fortran_copy<double>::~vnl_fortran_copy()' collect2: ld returned 1 exit status make: *** [vnl_calc] Error 1 /*************************************************/ -----Original Message----- From: vxl...@li... on behalf of Agrawal = Ashish Sent: Mon 1/7/2008 2:41 PM To: Brendan McCane; vxl...@li... Subject: Re: [Vxl-users] Very first make =20 Hi, I am using Red Hat Linux. My problem seems some issues with basic = setting or environment variables. Here is the problem: I have created 2 directories vxl-1.9 and bin into my home directory. I = extracted the vxl-1.9.0 in this directory and kept bin directory empty. Now I did Cmake and make as suggested for installations. It worked fine. = I also executed ctest for ~/vxl-1.9/bin/DartTestFile.txt which was = completed with 99% test cases passed, which is satisfactory for me to = start. Now I am trying to run the first program which is example program = residing in ~/vxl-1.9/vxl-1.9.0/core/examples/vnl_calc. While make-ing = the program it terminated mentioning vcl_cstdlib.h: No such file or = directory and did the same for all included files.=20 It seems that I made some mistake in directory structure where I should = have made bin directory or other setting so that it can understand the = physical location of thee files while being included.=20 Hope to resolve the problem soon. Thanks, Ashish -------------------------------------------------------------------------= This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Vxl-users mailing list Vxl...@li... https://lists.sourceforge.net/lists/listinfo/vxl-users |