Installing OpenFrameworks on Ubuntu 10.04 Ludid Lynx

Hi There,

I’m a beginner with a lot of the things I’m using at the moment, I’m using Ubuntu 10.04 and trying to install Open Frameworks successfully.

Just as suggested in the readme.linux file that I was referred to in my ‘programming interactivity’ book, I tried : -

sudo ./install_codeblocks.sh —which seems to have installed properly.
sudo ./install_dependancies.sh —which throws me warnings and errors (see below)

Id be infinitely grateful for any help.

If I’ve missed out any info just let me know.

Thanks

-Dave


Hit http://security.ubuntu.com lucid-security Release.gpg
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_GB
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_GB
Hit http://gb.archive.ubuntu.com lucid Release.gpg
Hit http://gb.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_GB
Hit http://gb.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_GB
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_GB
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_GB
Hit http://security.ubuntu.com lucid-security Release
Hit http://gb.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_GB
Hit http://gb.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_GB
Hit http://gb.archive.ubuntu.com lucid-updates Release.gpg
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_GB
Hit http://ppa.launchpad.net lucid Release.gpg
Ign http://ppa.launchpad.net/gijzelaar/opencv2/ubuntu/ lucid/main Translation-en_GB
Hit http://gb.archive.ubuntu.com lucid Release
Hit http://lgp203.free.fr lucid Release.gpg
Hit http://ppa.launchpad.net lucid Release
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://gb.archive.ubuntu.com lucid-updates Release
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://security.ubuntu.com lucid-security/universe Packages
Hit http://security.ubuntu.com lucid-security/universe Sources
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://gb.archive.ubuntu.com lucid/main Packages
Hit http://gb.archive.ubuntu.com lucid/restricted Packages
Hit http://gb.archive.ubuntu.com lucid/main Sources
Hit http://gb.archive.ubuntu.com lucid/restricted Sources
Hit http://gb.archive.ubuntu.com lucid/universe Packages
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Hit http://gb.archive.ubuntu.com lucid/universe Sources
Hit http://gb.archive.ubuntu.com lucid/multiverse Packages
Hit http://gb.archive.ubuntu.com lucid/multiverse Sources
Hit http://gb.archive.ubuntu.com lucid-updates/main Packages
Hit http://gb.archive.ubuntu.com lucid-updates/restricted Packages
Hit http://gb.archive.ubuntu.com lucid-updates/main Sources
Hit http://gb.archive.ubuntu.com lucid-updates/restricted Sources
Hit http://gb.archive.ubuntu.com lucid-updates/universe Packages
Hit http://gb.archive.ubuntu.com lucid-updates/universe Sources
Hit http://gb.archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://gb.archive.ubuntu.com lucid-updates/multiverse Sources
Ign http://lgp203.free.fr/ubuntu/ lucid/universe Translation-en_GB
Hit http://lgp203.free.fr lucid Release
Hit http://lgp203.free.fr lucid/universe Packages
Reading package lists… Done
Reading package lists… Done
Building dependency tree
Reading state information… Done
libgstreamer0.10-dev is already the newest version.
libgstreamer-plugins-base0.10-dev is already the newest version.
libavcodec-dev is already the newest version.
libavformat-dev is already the newest version.
libavutil-dev is already the newest version.
libswscale-dev is already the newest version.
freeglut3-dev is already the newest version.
libasound2-dev is already the newest version.
libxmu-dev is already the newest version.
libxxf86vm-dev is already the newest version.
g++ is already the newest version.
libgl1-mesa-dev is already the newest version.
libglu1-mesa-dev is already the newest version.
libraw1394-dev is already the newest version.
libudev-dev is already the newest version.
The following packages were automatically installed and are no longer required:
libatk1.0-dev linux-headers-2.6.32-24 x11proto-xinerama-dev libpango1.0-dev x11proto-render-dev libxi-dev libxrender-dev libcairo2-dev
libsysfs-dev libdirectfb-extra libfontconfig1-dev libdirectfb-dev x11proto-composite-dev libxcursor-dev x11proto-randr-dev
x11proto-damage-dev libxcb-render-util0-dev libgtk2.0-dev linux-headers-2.6.32-24-generic libxdamage-dev x11proto-fixes-dev
libxcomposite-dev libxrandr-dev libexpat1-dev libpixman-1-dev libxft-dev libxcb-render0-dev libxfixes-dev libxinerama-dev
Use ‘apt-get autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
echo “compiling objects”
compiling objects
echo obj/Debug/…/…/…/openFrameworks/video/ofUCUtils.o | sed “s/obj\/Debug\///” | sed “s/.o/.cpp/”
…/…/…/openFrameworks/video/ofUCUtils.cpp
mkdir -p obj/Debug/…/…/…/openFrameworks/video
g++ -g -Wall -fexceptions -I…/…/…/FreeImage/include -I…/…/…/fmodex/include -I…/…/…/freetype/include -I…/…/…/freetype/include/freetype2 -I…/…/…/freetype/include/freetype2/freetype -I…/…/…/freetype/include/freetype2/freetype/config -I…/…/…/glee/include -I…/…/…/glu/include -I…/…/…/glut/include -I…/…/…/gstappsink/include -I…/…/…/gstappsink/include/gst -I…/…/…/gstappsink/include/gst/app -I…/…/…/poco/include -I…/…/…/poco/include/Poco -I…/…/…/poco/include/Poco/Net -I…/…/…/poco/include/Poco/Dynamic -I…/…/…/poco/include/Poco/Util -I…/…/…/poco/include/Poco/XML -I…/…/…/poco/include/Poco/DOM -I…/…/…/poco/include/Poco/SAX -I…/…/…/poco/include/CppUnit -I…/…/…/quicktime/include -I…/…/…/rtAudio/include -I…/…/…/unicap/include -I…/…/…/videoInput/include -I…/…/…/openFrameworks/ -I…/…/…/openFrameworks/app -I…/…/…/openFrameworks/sound -I…/…/…/openFrameworks/video -I…/…/…/openFrameworks/utils -I…/…/…/openFrameworks/events -I…/…/…/openFrameworks/graphics -I…/…/…/openFrameworks/communication pkg-config gstreamer-0.10 gstreamer-video-0.10 gstreamer-base-0.10 libudev libavcodec libavformat libavutil --cflags -MMD -MP -MF echo obj/Debug/../../../openFrameworks/video/ofUCUtils.o | sed "s/obj\\/Debug\\///" | sed "s/\.o/\.d/" -o obj/Debug/…/…/…/openFrameworks/video/ofUCUtils.o -c echo obj/Debug/../../../openFrameworks/video/ofUCUtils.o | sed "s/obj\\/Debug\\///" | sed "s/\.o/\.cpp/"
…/…/…/openFrameworks/video/ofUCUtils.cpp:19:22: warning: avformat.h: No such file or directory
…/…/…/openFrameworks/video/ofUCUtils.cpp:20:21: warning: swscale.h: No such file or directory
In file included from /usr/local/include/libavutil/avutil.h:88,
from /usr/local/include/libavcodec/avcodec.h:30,
from /usr/local/include/libavformat/avformat.h:106,
from …/…/…/openFrameworks/video/ofUCUtils.cpp:21:
/usr/local/include/libavutil/common.h: In function ‘int32_t av_clipl_int32_c(int64_t)’:
/usr/local/include/libavutil/common.h:168: error: ‘UINT64_C’ was not declared in this scope
…/…/…/openFrameworks/video/ofUCUtils.cpp: In member function ‘void ofUCUtils::set_format(int, int)’:
…/…/…/openFrameworks/video/ofUCUtils.cpp:300: warning: ‘SwsContext* sws_getContext(int, int, PixelFormat, int, int, PixelFormat, int, SwsFilter*, SwsFilter*, const double*)’ is deprecated (declared at /usr/local/include/libswscale/swscale.h:191)
…/…/…/openFrameworks/video/ofUCUtils.cpp:303: warning: ‘SwsContext* sws_getContext(int, int, PixelFormat, int, int, PixelFormat, int, SwsFilter*, SwsFilter*, const double*)’ is deprecated (declared at /usr/local/include/libswscale/swscale.h:191)
…/…/…/openFrameworks/video/ofUCUtils.cpp: In member function ‘void ofUCUtils::new_frame(unicap_data_buffer_t*)’:
…/…/…/openFrameworks/video/ofUCUtils.cpp:389: error: invalid conversion from ‘int’ to ‘PixelFormat’
…/…/…/openFrameworks/video/ofUCUtils.cpp:389: error: initializing argument 3 of ‘int avpicture_fill(AVPicture*, uint8_t*, PixelFormat, int, int)’
make: *** [obj/Debug/…/…/…/openFrameworks/video/ofUCUtils.o] Error 1
there has been a problem compiling Debug OF library
please report this problem in the forums

hi

take a look at the setup guide:

http://www.openframeworks.cc/setup/linux-codeblocks

the current version, 0061, doesn’t work with the latest versions of ubuntu, please download it from github as it’s said in the instructions.

Ah Brilliant :slight_smile:

Thanks!

Hey hi, I’m having trouble in Linux as well - technically I’m using Linux Mint 9 Isadora, but I think it can be thought of as the latest version of Ubuntu for most practical purposes.

I first downloaded and installed the version from the Download page, 0.062. That failed, with similar errors to the ones quoted by daeva, so I searched on here and found this, then downloaded and installed the version on Github, and now I get (I think) subtly different error messages when I try to build something, starting with

  
../../../libs/openFrameworks/video/ofUCUtils.h|11|error: unicap.h: No such file or directory|  
../../../libs/openFrameworks/video/ofVideoPlayer.h|9|error: gst/gst.h: No such file or directory|  

I guess I’ll boot back into Windows to use it for now, but do you have any clue what’s going wrong here? Thanks a lot.

(for the record, I did run both sudo ./install_codeblocks.sh and sudo ./install_dependencies.sh)

Waaait, apparently I was opening the apps directory from a previous installation of openFrameworks. Looking okay now…

@arturo - I thought the current version of OF was 0062?

yes it is. at the time i wrote that post it was 0061. 0062 has all that problems solved so now it’s not needed to download from github