LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-15-2009, 06:39 AM   #1
ashwinkumar
LQ Newbie
 
Registered: Jan 2009
Posts: 20

Rep: Reputation: 0
trouble installing vxl libraries in hardy!!


hi

am a linux newbie.

am trying to install vxl in hardy . am having so many problems while compiling with cmake!! am unable to install cmake gui .

pls guide through the installation process . i tried using all the instructions in the source forge website. they were too vague for me.

urgent help pls help!!
 
Old 01-15-2009, 10:44 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Welcome to Linux Questions.

Using Ubuntu 8.04.1 Hardy.:

1) sudo apt-get install cmake libpng12-dev libjpeg62-dev

2) unzip vxl-1.11.0.zip to e.g. /home/ashwinkumar/tmp
3) mkdir /home/ashwinkumar/tmp/build-vxl
***( Some ( most ? ) applications to be build with 'cmake'
***needs a build directory outside "application/" )

4) cd /home/ashwinkumar/tmp/build-vxl
5) cmake ../vxl-1.11.0/
6) make (.. runs for an hour or so )
7) ctest ( if you wish )
8) sudo make install
will install it all to /usr/local/

Using vxl : please see VXL Book
http://public.kitware.com/vxl/doc/re...core/book.html
....

Last edited by knudfl; 01-15-2009 at 11:58 AM.
 
Old 01-15-2009, 12:01 PM   #3
ashwinkumar
LQ Newbie
 
Registered: Jan 2009
Posts: 20

Original Poster
Rep: Reputation: 0
hi

thanks for the reply.... it solved most of my probs... but i still had some errors

In file included from /home/ash/Desktop/newproject/vxl-1.8.0/contrib/gel/vtol/algo/vtol_extract_topology.cxx:2:
/home/ash/Desktop/newproject/vxl-1.8.0/contrib/gel/vtol/algo/vtol_extract_topology.h: In member function ‘vtol_intensity_face_sptr vtol_extract_topology<LABEL_TYPE>::chain_tree_node::make_face(vil_region_finder<LABEL_TYPE, std::equal_to<pix_type> >*, const vtol_extract_topology_data_image_type*) const’:
/home/ash/Desktop/newproject/vxl-1.8.0/contrib/gel/vtol/algo/vtol_extract_topology.h:291: error: invalid use of incomplete type ‘struct vtol_intensity_face’
/home/ash/Desktop/newproject/vxl-1.8.0/contrib/gel/vtol/vtol_intensity_face_sptr.h:9: error: forward declaration of ‘struct vtol_intensity_face’
/home/ash/Desktop/newproject/vxl-1.8.0/contrib/gel/vtol/algo/vtol_extract_topology.h:295: error: invalid use of incomplete type ‘struct vtol_intensity_face’
/home/ash/Desktop/newproject/vxl-1.8.0/contrib/gel/vtol/vtol_intensity_face_sptr.h:9: error: forward declaration of ‘struct vtol_intensity_face’
make[2]: *** [contrib/gel/vtol/algo/CMakeFiles/vtol_algo.dir/vtol_extract_topology.o] Error 1
make[1]: *** [contrib/gel/vtol/algo/CMakeFiles/vtol_algo.dir/all] Error 2
make: *** [all] Error 2

pls help me out!!!
 
Old 01-15-2009, 02:17 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Why vxl-1.8.0 ??

I compiled vxl-1.11.0 on Ubuntu 8.04.1 with zero errors.
'vxl-1.11.0.zip' is here
http://sourceforge.net/project/showf...ease_id=617031

And ... did you make a build directory ?
*( /home/ash/Desktop/newproject/build-vxl ?? )
....

Last edited by knudfl; 01-15-2009 at 02:27 PM.
 
Old 01-15-2009, 08:55 PM   #5
ashwinkumar
LQ Newbie
 
Registered: Jan 2009
Posts: 20

Original Poster
Rep: Reputation: 0
i tried with vxl 1.11 with the same set of errors. in fact i tried with 1.11 before trying with 1.8!

ya i followed everything u said to the core. any other suggestions???
 
Old 01-16-2009, 09:51 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Ubuntu 8.04, may be missing 'libexpat1-dev' ?
'g++' upgrade to 'g++-4.2.4' ? Not much difference
from version 4.2.3, but who knows ?
( Run cmake again for libexpat, if it was missing.)
....
Please run the command 'g++ --version'
....
How many % did build before errors ? 20% ? 90% ?
....
Please show from 10 to 15 lines above where the
error appears. ( If compiling is still failing.)
....
 
Old 01-16-2009, 11:13 AM   #7
ashwinkumar
LQ Newbie
 
Registered: Jan 2009
Posts: 20

Original Poster
Rep: Reputation: 0
i have the g++-4.2.4 and i also hav the libexpat1-dev library!!


am having a new problem!! could u tell where can i get the development library for mpeg2??

am gettin an error in cmake now saying

-- Could NOT find MPEG2 (missing: MPEG2_INCLUDE_DIR)
-- Looking for C++ include inttypes.h
-- Looking for C++ include inttypes.h - found
-- Looking for memalign
-- Looking for memalign - not found.
-- Could NOT find MPEG2 (missing: MPEG2_INCLUDE_DIR)
-- Could NOT find MPEG2 (missing: MPEG2_INCLUDE_DIR)
-- Could NOT find MPEG2 (missing: MPEG2_INCLUDE_DIR)
-- Could NOT find MPEG2 (missing: MPEG2_INCLUDE_DIR)
-- Found EXPAT: /usr/lib/libexpat.so
-- Performing Test DIRECTSHOW_SOURCE_COMPILES
-- Performing Test DIRECTSHOW_SOURCE_COMPILES - Failed
-- Could NOT find DIRECTSHOW (missing: DIRECTX_INCLUDE_DIR DIRECTSHOW_INCLUDE_DIR DIRECTSHOW_STRMIIDS_LIBRARY DIRECTSHOW_QUARTZ_LIBRARY DIRECTSHOW_SOURCE_COMPILES)
-- Found PythonLibs: /usr/lib/python2.5/config/libpython2.5.so
-- Could NOT find MPEG2 (missing: MPEG2_INCLUDE_DIR)
 
Old 01-16-2009, 12:01 PM   #8
ashwinkumar
LQ Newbie
 
Registered: Jan 2009
Posts: 20

Original Poster
Rep: Reputation: 0
when i try to isntall the package using apt-get it shows mpeg2 already exists....but i continue to get the error if i try to cmake!!
i tried in wizard mode with cmake and it had so many library paths not found!!!

is there a simpler way to go abt it?? can i get all the dependecy library packages somewhere..pls help me!!
 
Old 01-16-2009, 12:15 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
.
The package name is probably 'libmpeg2-4-dev'
( From the "universe" repository.)
....
When "configure" ( or cmake ) asks for <package>
it always means <package-dev>
....

Last edited by knudfl; 01-16-2009 at 12:29 PM.
 
Old 01-16-2009, 12:24 PM   #10
ashwinkumar
LQ Newbie
 
Registered: Jan 2009
Posts: 20

Original Poster
Rep: Reputation: 0
ya i was talkin abt libmpeg2-4 dev
i seem to have it installed!!

but it still am gettin the same error!!
 
Old 01-16-2009, 04:36 PM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
I wonder, which version of cmake, you are using ?
I have used ver 2.4.7 and 2.6, none behaved exactly like e.g. # 7
( cmake 2.6 has a function named "find_mpeg2", which works poorly )

Anyway, I had a look at a few things, googling .. MPEG2_vo_LIBRARY vxl ..
https://svn.zib.de/lenne3d/tools/cma...indMPEG2.cmake
http://patch-tracking.debian.net/pat...2-addpath.diff
http://www.marssoft.de/doku.php?id=scratch:compile
and from the above I sketched a script, to be used in the build directory
(or as a very long command)
Code:
/usr/bin/cmake ../vxl-1.8 \
   -DBUILD_EXAMPLES:BOOL=OFF \
   -DBUILD_SHARED_LIBS:BOOL=ON \
   -DBUILD_TESTING:BOOL=OFF \
   -DCMAKE_BUILD_TYPE:STRING=Release \
   -DVXL_USE_LFS:BOOL=ON \
   -DMPEG2_INCLUDE_DIR:FILEPATH=/usr/include/mpeg2dec \
   -DMPEG2_mpeg2_LIBRARY:FILEPATH=/usr/lib/libmpeg2.so \
   -DMPEG2_vo_LIBRARY:FILEPATH=/usr/lib/libmpeg2.so
Use it, as is, or edit to your requirements.
Seems to 1) find mpeg2 and 2) bypass the DIRECTSHOW / DIRECTX stuff.
....
I did not compile vxl-1.11.0 with mpeg2, if you can't either, be it
1.8 or 1.11, mpeg2 could be disabled. ( Uninstall packages ).
....

Last edited by knudfl; 01-16-2009 at 04:37 PM.
 
Old 01-17-2009, 03:30 AM   #12
ashwinkumar
LQ Newbie
 
Registered: Jan 2009
Posts: 20

Original Poster
Rep: Reputation: 0
actually iam tryin to install vxl for using it with open gazer ....

open gazer needs older version of libraries.... i am trying to install them...i couldnt find the libgtkmm-2.4dev 2.8 and many other packages...in the meanwhile iam encountering problems with vxl too as i have said in the previous posts...


its really messed up...i need this working urgently....

for more info on open gazer pls see this

http://www.inference.phy.cam.ac.uk/opengazer/README


i think i have to start from scratch again!!

i request for help!!
 
Old 01-17-2009, 05:54 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
gtkmm-2.4 >= 2.8.0 : Means 2.8 or newer. The version in
Ubuntu 8.04 : libgtkmm-2.4-dev = version 2.12.5 .

'sudo apt-get install libcv-dev libhighgui-dev libcvaux-dev \
libgtkmm-2.4-dev libcairomm-1.0-dev libboost-dev'

> > should provide the most, none depends on libmpeg2-4,
may be you can remove it, to accomplish compiling of vxl. ?
Just temporarily, you can install it again, if needed for
other things.
....

Also remember, vxl should be compiled "with shared libraries" :
Quote : Important: in vxl's ccmake, set BUILD_SHARED_LIBS to ON.
( " -DBUILD_SHARED_LIBS:BOOL=ON " )
....

Last edited by knudfl; 01-17-2009 at 05:57 AM.
 
Old 01-17-2009, 11:22 AM   #14
ashwinkumar
LQ Newbie
 
Registered: Jan 2009
Posts: 20

Original Poster
Rep: Reputation: 0
thanks for ur help!!
i seemed to have installed opengazer but with some warnings... am yet to test it though ...iam searching for a driver for webcam...any suggestions on how to go about it
 
Old 01-17-2009, 12:46 PM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
May be you already observed this : Building vxl without
libmpeg2-4 support, vxl is building a libmpeg2.so !
( /usr/bin/cmake ../vxl-1.11.0 -DBUILD_EXAMPLES:BOOL=OFF \
-DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_TESTING:BOOL=OFF \
-DVXL_USE_LFS:BOOL=ON )

.....
About web camera, suggest : Start a new thread with the
question. Brand + type no. to be specified, please.
....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New root hard drive in Hardy = boot trouble GTBlackwell Linux - Hardware 4 11-15-2008 04:50 PM
Audio/video (driver) trouble with Ubuntu Hardy on an M3N78-EMH motherboard pbuddenberg Linux - Newbie 5 08-26-2008 01:39 PM
Anyone else having trouble saving files in Hardy? jay73 Ubuntu 1 04-27-2008 01:55 AM
Having trouble using the gtk libraries. debiant Programming 1 09-06-2006 05:53 AM


All times are GMT -5. The time now is 02:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration