First steps on OpenSuse using C::B and OF

I wonder if it is possible to do some first steps with openFrameworks on a OpenSuse installation using already installed C::B.

OpenSuse 11.1
of_preRelease_v0.06_linux_cb_FAT
codeblocks r5794

First error i got on building an example project:

“cannot find -lgstvideo-0.10”

the package gstreamer-0_10-plugins-base-devel-0.10.21-2.21.2 is installed.

/usr/lib/libgstvideo-0.10.la
/usr/lib/libgstvideo-0.10.so

also C::B does not report missing libs.

I tried to install all recommended packages mentioned in the install_dependencies.sh
from the fedora folder. Except libXxf86vm-devel and rpmfusion i was able to install all from my repositories.

All ideas, hints and help is highly welcome.

cheers wally

Don’t know if it can help but I wrote cmake files to make of build easier. CMake can generate cbp or makefiles. http://github.com/dopuskh3/ofx-cmake-build

Did you check your PKG_CONFIG_PATH is correctly set (where *.pc files stands, usually /usr/lib/pkgconfig/ ) ? Gstreamer use pkgconfig (pkg-config --libs --cflags gstreamer-0.10) to get all compile and link flags.

I don’t use OpenSuse but on my distro i had to install gtreamer-*-0.10, libavcodec, libavformat, libswscale.

Regards,
F.

hi wally

try opening a console and typing:

  
locate libgstvideo-0.10  

if you get nothing then you need to install some package related to gstreamer video, don’t know very well open suse so can’t tell you what tool to use.

in case locate returns something, can you try also:

  
pkg-config --libs gstreamer-video-0.10  

and post the output of both commands

Hello dopuskh3, Hello arturo

here are the outputs:

op@baldur:~> locate libgstvideo-0.10
/usr/lib/libgstvideo-0.10.so.0
/usr/lib/libgstvideo-0.10.so.0.15.0
op@baldur:~>

op@baldur:~> pkg-config --libs gstreamer-video-0.10
-pthread -lgstvideo-0.10 -lgstbase-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0
op@baldur:~>

cheers wally

Here is a build log:

-------------- Build: Debug in graphicsExample ---------------

Compiling: src/main.cpp
Compiling: src/testApp.cpp
Compiling: …/…/…/libs/openFrameworks/app/ofAppGlutWindow.cpp
/home/op/SDB/Programming/of/of_preRelease_v0.06_linux_cb_FAT/libs/openFrameworks/app/ofAppGlutWindow.cpp: In member function ‘virtual void ofAppGlutWindow::setupOpenGL(int, int, int)’:
/home/op/SDB/Programming/of/of_preRelease_v0.06_linux_cb_FAT/libs/openFrameworks/app/ofAppGlutWindow.cpp:59: warning: deprecated conversion from string constant to ‘char*’
Compiling: …/…/…/libs/openFrameworks/app/ofAppRunner.cpp
Compiling: …/…/…/libs/openFrameworks/communication/ofArduino.cpp
Compiling: …/…/…/libs/openFrameworks/communication/ofSerial.cpp
Compiling: …/…/…/libs/openFrameworks/communication/ofStandardFirmata.cpp
Compiling: …/…/…/libs/openFrameworks/graphics/ofBitmapFont.cpp
Compiling: …/…/…/libs/openFrameworks/graphics/ofGraphics.cpp
Compiling: …/…/…/libs/openFrameworks/graphics/ofImage.cpp
Compiling: …/…/…/libs/openFrameworks/graphics/ofTexture.cpp
Compiling: …/…/…/libs/openFrameworks/graphics/ofTrueTypeFont.cpp
Compiling: …/…/…/libs/openFrameworks/sound/ofSoundPlayer.cpp
Compiling: …/…/…/libs/openFrameworks/sound/ofSoundStream.cpp
Compiling: …/…/…/libs/openFrameworks/utils/ofMath.cpp
Compiling: …/…/…/libs/openFrameworks/utils/ofUtils.cpp
Compiling: …/…/…/libs/openFrameworks/video/ofUCUtils.cpp
Compiling: …/…/…/libs/openFrameworks/video/ofVideoGrabber.cpp
Compiling: …/…/…/libs/openFrameworks/video/ofVideoPlayer.cpp
/home/op/SDB/Programming/of/of_preRelease_v0.06_linux_cb_FAT/libs/openFrameworks/video/ofVideoPlayer.cpp: In constructor ‘ofVideoPlayer::ofVideoPlayer()’:
/home/op/SDB/Programming/of/of_preRelease_v0.06_linux_cb_FAT/libs/openFrameworks/video/ofVideoPlayer.cpp:234: warning: deprecated conversion from string constant to ‘gchar*’
Linking console executable: bin/graphicsExample_debug
/usr/lib/gcc/i586-suse-linux/4.3/…/…/…/…/i586-suse-linux/bin/ld: cannot find -lgstvideo-0.10
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 22 seconds)
1 errors, 2 warnings

You may try:

  
 ldconfig -v | grep gstvideo   

Are you using the provided Makefile.linux. You may try with this one too and see if your problem is c::b related.

Regards,
F

dopuskh3,

op@baldur:~> su
Password:
baldur:/home/op # ldconfig -v | grep gstvideo
ldconfig: Can’t stat /usr/X11R6/lib/Xaw3d: No such file or directory
ldconfig: Can’t stat /usr/lib/Xaw3d: No such file or directory
ldconfig: Can’t stat /usr/i386-suse-linux/lib: No such file or directory
ldconfig: Can’t stat /usr/lib/graphviz/sharp: No such file or directory
ldconfig: Can’t stat /usr/lib/graphviz/java: No such file or directory
ldconfig: Can’t stat /usr/lib/graphviz/perl: No such file or directory
ldconfig: Can’t stat /usr/lib/graphviz/php: No such file or directory
ldconfig: Can’t stat /usr/lib/graphviz/ocaml: No such file or directory
ldconfig: Can’t stat /usr/lib/graphviz/python: No such file or directory
ldconfig: Can’t stat /usr/lib/graphviz/lua: No such file or directory
ldconfig: Can’t stat /usr/lib/graphviz/tcl: No such file or directory
ldconfig: Can’t stat /usr/lib/graphviz/guile: No such file or directory
ldconfig: Can’t stat /usr/lib/graphviz/ruby: No such file or directory
ldconfig: Cannot stat /opt/kde3/lib/libgmcop.so: No such file or directory
ldconfig: Cannot stat /lib/libdmraid-events.so: No such file or directory
ldconfig: Cannot stat /usr/lib/libgstnetbuffer-0.10.so: No such file or directory
ldconfig: Cannot stat /usr/lib/libgstrtsp-0.10.so: No such file or directory
ldconfig: Cannot stat /usr/lib/libgstcdda-0.10.so: No such file or directory
ldconfig: Cannot stat /usr/lib/libgstrtp-0.10.so: No such file or directory
ldconfig: Cannot stat /usr/lib/libgstvideo-0.10.so: No such file or directory
ldconfig: Cannot stat /usr/lib/libgsttag-0.10.so: No such file or directory
ldconfig: Cannot stat /usr/lib/libgstaudio-0.10.so: No such file or directory
ldconfig: Cannot stat /usr/lib/libgstsdp-0.10.so: No such file or directory
ldconfig: Cannot stat /usr/lib/libgstinterfaces-0.10.so: No such file or directory
ldconfig: Cannot stat /usr/lib/libgstriff-0.10.so: No such file or directory
ldconfig: Cannot stat /usr/lib/libgstpbutils-0.10.so: No such file or directory
ldconfig: Cannot stat /usr/lib/libgstfft-0.10.so: No such file or directory

libgstvideo-0.10.so.0 -> libgstvideo-0.10.so.0.16.0
baldur:/home/op #

Are you using the provided Makefile.linux. You may try with this one too and see if your problem is c::b related.

I just open the *.cbp project file and try to build.
I do not have a Makefile.linux , maybe just a “Makefile” because i downloaded the Linux Package “of_preRelease_v0.06_linux_cb_FAT”

cheers wally

i think the problem is you don’t have the devel package for gstvideo, try searching it in your package admin tool. if you can’t find it can be solved just by creating a soft link to the library:

  
su -  
cd /usr/lib  
ln -s libgstvideo-0.10.so.0 libgstvideo-0.10.so  

seems all is aready OK:

op@baldur:~> cd /usr/lib
op@baldur:/usr/lib> ls |grep gstvideo
libgstvideo-0.10.la
libgstvideo-0.10.so
libgstvideo-0.10.so.0
libgstvideo-0.10.so.0.16.0
op@baldur:/usr/lib>

issuing a “make” in the project folder, without using C::B gives the same resault:

–snip
ase-0.10 libavcodec libavformat libavutil libswscale --libs` …/…/…/libs/freetype/lib/libfreetype.a …/…/…/libs/FreeImage/libfreeimage.a …/…/…/libs/rtAudio/libRtAudio.a …/…/…/libs/glee/libGLee.a …/…/…/libs/gstappsink/lib/liboFappsink.a
/usr/lib/gcc/i586-suse-linux/4.3/…/…/…/…/i586-suse-linux/bin/ld: cannot find -lgstvideo-0.10
collect2: ld returned 1 exit status
make: *** [bin/graphicsExample_debug] Error 1
op@baldur:~/SDB/Programming/of/of_preRelease_v0.06_linux_cb_FAT/apps/examples/graphicsExample>

can you do:

ls -la /usr/lib/libgstvideo*

op@baldur:~> ls -la /usr/lib/libgstvideo*
-rw-r–r-- 1 root root 1119 2009-04-06 18:32 /usr/lib/libgstvideo-0.10.la
lrwxrwxrwx 1 root root 26 2009-09-18 08:45 /usr/lib/libgstvideo-0.10.so -> libgstvideo-0.10.so.0.15.0
lrwxrwxrwx 1 root root 26 2009-09-18 07:49 /usr/lib/libgstvideo-0.10.so.0 -> libgstvideo-0.10.so.0.16.0
-rwxr-xr-x 1 root root 22132 2009-09-15 21:31 /usr/lib/libgstvideo-0.10.so.0.16.0
op@baldur:~>

don’t know why but the .so softlink is pointing to a non existent file, to solve it:

su -
cd /usr/lib
rm libgstvideo-0.10.so
ln -s libgstvideo-0.10.so.0 libgstvideo-0.10.so

Hello arturo,

now it works, thanks for help, :slight_smile:
i did not notice that it points to *15 instead of *16

By the way, the “FAT” in the package name means that it is a large package
and has nothing to do with File Allocation Table, right ?

I want to make a LogicAnalyzer using a MikroController, hope i can do the GUI with OF.

cheers wally

:slight_smile: yes, fat means it has all the addons.

have fun!