Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Issues in compiling my first program in Opensuse 11.3

  1. #1

    Default Issues in compiling my first program in Opensuse 11.3

    Hello everybody

    I was reading the following forum guide:

    openSUSE software installation hints

    So I decide to install from the souce code the following webcam application:

    GTK+ UVC Viewer

    In order to avoid problems ( it is my first installation from souce code) I downloaded and unpacked everything in an USB key and I worked from, as the guide said, from the Linux terminal.

    Once I was in the right directory and I compute the command:

    ./configure

    I got the following issues:

    Code:
    golem@linux-hchb:/media/LEXAR/Test/guvcview-src-1.4.3> ./configure
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... no
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking for style of include used by make... none
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables... 
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... none
    checking for library containing strerror... none required
    checking for gcc... (cached) gcc                                                                                                                                                                           
    checking whether we are using the GNU C compiler... (cached) yes                                                                                                                                           
    checking whether gcc accepts -g... (cached) yes                                                                                                                                                            
    checking for gcc option to accept ISO C89... (cached) none needed                                                                                                                                          
    checking dependency style of gcc... (cached) none                                                                                                                                                          
    checking how to run the C preprocessor... gcc -E                                                                                                                                                           
    checking for grep that handles long lines and -e... /usr/bin/grep                                                                                                                                          
    checking for egrep... /usr/bin/grep -E                                                                                                                                                                     
    checking for ANSI C header files... yes                                                                                                                                                                    
    checking if you specifically want to enable debug-code -g... no                                                                                                                                            
    checking for sys/types.h... yes                                                                                                                                                                            
    checking for sys/stat.h... yes                                                                                                                                                                             
    checking for stdlib.h... yes                                                                                                                                                                               
    checking for string.h... yes                                                                                                                                                                               
    checking for memory.h... yes                                                                                                                                                                               
    checking for strings.h... yes                                                                                                                                                                              
    checking for inttypes.h... yes                                                                                                                                                                             
    checking for stdint.h... yes                                                                                                                                                                               
    checking for unistd.h... yes                                                                                                                                                                               
    checking locale.h usability... yes                                                                                                                                                                         
    checking locale.h presence... yes                                                                                                                                                                          
    checking for locale.h... yes
    checking for LC_MESSAGES... yes
    checking libintl.h usability... yes
    checking libintl.h presence... yes
    checking for libintl.h... yes
    checking for ngettext in libc... yes
    checking for dgettext in libc... yes
    checking for bind_textdomain_codeset... yes
    checking for msgfmt... /usr/bin/msgfmt
    checking for dcgettext... yes
    checking if msgfmt accepts -c... yes
    checking for gmsgfmt... /usr/bin/msgfmt
    checking for xgettext... no
    checking for catalogs to be installed...  pt pt_BR de es fr da tr cs ja ru nl he eu zh_TW
    ./configure: line 5552: ./po/POTFILES.in: No such file or directory
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for DEPS... no
    configure: error: Package requirements (gtk+-2.0 >= 2.14.0 glib-2.0 >= 2.10.0 gthread-2.0 gdk-2.0 >= 2.10.0 gdk-pixbuf-2.0 sdl >= 1.2.10 portaudio-2.0 libpng libavcodec libv4l2 libudev) were not met:
    
    No package 'gtk+-2.0' found
    No package 'glib-2.0' found
    No package 'gthread-2.0' found
    No package 'gdk-2.0' found
    No package 'gdk-pixbuf-2.0' found
    No package 'sdl' found
    No package 'portaudio-2.0' found
    No package 'libpng' found
    No package 'libavcodec' found
    No package 'libv4l2' found
    No package 'libudev' found
    
    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.
    
    Alternatively, you may set the environment variables DEPS_CFLAGS
    and DEPS_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.
    However there is something strange: I have checked if these libraries were installed or note and by querying the software database I got:

    1) gtk2
    2) glib2
    3) portaudio
    4) libpng12-0
    libpng14-0
    libpng14-14-32bit
    5) libavcodec52
    6) libdev4l2-0
    7) libudev0

    Were installed, but it seems that the installation program did not recognize them correctly.

    However it was not possible to find the following ones in any repository:

    1) gthread-2.0
    2) gtk-2.0
    3) gdk-pixbuf-2.0
    4) sdl

    Where dit I get this wrong? Any idea??

    Thank you in advance for your advices

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Issues in compiling my first program in Opensuse 11.3

    When you install a package called foo, it generally contains just the files to run foo or the runtime libraries for foo. If you are doing development, you will usually need a package called foo-devel which contain include files for your application to successfully compile. E.g. gtk2-devel.

    In addition, the package names are not necessarily the same as the library names in many cases. The development library may be contained in another package. You have to do a more comprehensive search that looks at the contents of packages.

  3. #3

    Default Re: Issues in compiling my first program in Opensuse 11.3

    Sorry but I am not getting your point.

    What I am trying to do here is to build a "dirty" rpm file in order to install the application(in this way it can be tracked down by the rpm database and I will be able to install it).

    I know that the devel libraries are the development ones but here the system is requiring something different.

    Before I proceed I have to mention that I have installed the KDE enviroment and here I am seeing :gtk2,gthread,glib2 and so on, that ,unless I am mistaken, are linke to the Gnome enviroment.

    It can be a "mismatch issue" a not compatibility between the two graphics enviroment?

    Thanks for your attention

  4. #4
    Join Date
    Jan 2009
    Location
    Switzerland
    Posts
    1,529

    Default Re: Issues in compiling my first program in Opensuse 11.3

    You are compiling from source and therefore you need the *-devel packages. This is true even if you make a package later on.

    Code:
    No package 'gtk+-2.0' found
    No package 'glib-2.0' found
    No package 'gthread-2.0' found
    No package 'gdk-2.0' found
    No package 'gdk-pixbuf-2.0' found
    No package 'sdl' found
    No package 'portaudio-2.0' found
    No package 'libpng' found
    No package 'libavcodec' found
    No package 'libv4l2' found
    No package 'libudev' found
    Make sure that you have *-devel packages installed for those. Have a look at the packman repo to find them. (This is the reason why there is no "official" openSUSE package of guvcview; it depends on some libraries which have legal issues and are only in packman).

    In case you have problems to find requred prerequisites come back here. We will be glad to help you.
    Technology is 'stuff that doesn't work yet.' -- Bran Ferren

  5. #5
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Issues in compiling my first program in Opensuse 11.3

    On 2010-12-06 17:06, FabrizioS wrote:

    > Before I proceed I have to mention that I have installed the KDE
    > enviroment and here I am seeing :gtk2,gthread,glib2 and so on, that
    > ,unless I am mistaken, are linke to the Gnome enviroment.


    You are compiling a gtk app, so you need gnome libraries, plus the -devel
    version of those packages.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  6. #6

    Default Re: Issues in compiling my first program in Opensuse 11.3

    The situation has improved, but unfortunately I am not able to find all the libraries I need.

    I post below the result I got once I have computed the command: ./configure

    Code:
    configure:5732: error: Package requirements (gtk+-2.0 >= 2.14.0 glib-2.0 >= 2.10.0 gthread-2.0 gdk-2.0 >= 2.10.0 gdk-pixbuf-2.0 sdl >= 1.2.10 portaudio-2.0 libpng libavcodec libv4l2 libudev) were not met:
    
    No package 'sdl' found
    No package 'portaudio-2.0' found
    No package 'libavcodec' found
    No package 'libv4l2' found
    So the following libraries

    No package 'sdl' found
    No package 'portaudio-2.0' found
    No package 'libavcodec' found
    No package 'libv4l2' found


    Are still missing.I tried to check all the "devel" libraries related with these names (sdl,portaudio etc..) in the Packman repository, but unfortunately I could not find anything.

    Please, could you tell me in which devel files are contained the above libraries??

  7. #7
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,587
    Blog Entries
    14

    Default Re: Issues in compiling my first program in Opensuse 11.3

    AFAICS you need:

    libSDL-devel
    portaudio-devel
    libffmpeg-devel
    libv4l-devel
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  8. #8

    Default Re: Issues in compiling my first program in Opensuse 11.3

    There is a src.rpm available for Fedora: guvcview-1.4.3-1.fc14.src RPM
    It would probably be easier to install that one, modify guvcview.spec for openSUSE and compile/build with rpmbuild.

  9. #9
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Issues in compiling my first program in Opensuse 11.3

    On 2010-12-08 10:06, FabrizioS wrote:
    >
    > The situation has improved, but unfortunately I am not able to find all
    > the libraries I need.
    >
    > I post below the result I got once I have computed the command:
    > /configure
    >
    >
    > Code:
    > --------------------
    > configure:5732: error: Package requirements (gtk+-2.0 >= 2.14.0 glib-2.0 >= 2.10.0 gthread-2.0 gdk-2.0 >= 2.10.0 gdk-pixbuf-2.0 sdl >= 1.2.10 portaudio-2.0 libpng libavcodec libv4l2 libudev) were not met:
    >
    > No package 'sdl' found
    > No package 'portaudio-2.0' found
    > No package 'libavcodec' found
    > No package 'libv4l2' found
    >
    > --------------------


    With webpin (in my 11.2) I see:

    * portaudio-devel: Development package for the portaudio library
    - 19 [suse-oss | multimedia:/libs | home:/jervine:/oolite]

    sdl. Could it be libSDL-devel? It is in suse-oss.


    * portaudio-devel: Development package for the portaudio library
    - 19 [suse-oss | multimedia:/libs | home:/jervine:/oolite]


    libavcodec, libv4l2 - dunno.

    I think there is a mail list on packman, you should ask them. I don't know
    what they do about -devel packages. You could use webpin searching for a
    package that exists only in the devel package, typically a header file - I
    think you can do that analyzing the output of configure, there is a log
    file where perhaps you can find out that info.

    For example, I take "rpm -ql postgresql-devel" that I have installed. I see
    some files I could use:

    /usr/include/pgsql/ecpg_config.h

    /usr/lib64/libpgport.a
    /usr/lib64/libpgtypes.so
    /usr/lib64/libpq.so

    I run:

    cer@Telcontar:~> webpin ecpg_config.h
    .... performing request on
    http://software.opensuse-community.o.../ecpg_config.h
    ERROR: caught exception while connecting and sending request to server:
    connection timed out after 60 seconds

    Gosh :-(
    I was not expecting that.


    Then, I don't know.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  10. #10

    Default Re: Issues in compiling my first program in Opensuse 11.3

    At last I succeeded in compiling my first program in Linux!!!!!!

    I have to say that it was a bit tricky:first of all because understand where I had to find the libraries was no easy at all.

    Once I created my "dirty" rpm I could install guvcview with no problem. The only drawback is that I have to launch the application using Run because no icon has been created in the desktop or in the menu.

    As far as compiling is concerned I would like to ask you:

    1) Everytime I have to compile a program starting from the source code
    do I have always to compute the following command:

    ./configure
    make
    su
    make install
    checkinstall


    in order to compile and create a rpm or there are other procedures?
    I am asking this because few years ago I read that sometime was necessary to give some directive directly to the compiler (gcc or gcc++).

    2) Looking for a specific library has been a very long process. Doesn't exist any database to query where it's possible, starting from a package name, understand in which library is included?


    Thank you for you precious support!!!!!!!!!!!!!

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •