openFrameworks-RaspberryPi / openFrameworks

This repo has migrated into the openFramworks core! Please go to http://github.com/openFrameworks/openFrameworks for the latest!
http://github.com/openFrameworks/openFrameworks
Other
104 stars 11 forks source link

Scripts: update all core Linux Scripts to reflect new makefile system #27

Closed jvcleave closed 11 years ago

jvcleave commented 11 years ago

there has been a problem compiling Debug OF library please report this problem in the forums chown: cannot access obj': No such file or directory chown: cannot access../../lib/linuxarmv6l/*': No such file or directory

current workaround is to (assumes OF repo is in home directory)

$ cd ~/openFrameworks/libs/openFrameworksCompiled/project $ make

bakercp commented 11 years ago

This is because it is accessing the old makefile system. i.e. it is calling the compileOF.sh scripts. We aren't using that system because it is not compatible. So, we just need to make an updated special install_dependencies.sh file.

bakercp commented 11 years ago

While we are doing this, we should also update the dependencies -- there are a lot in there that we don't need, but I haven't had a chance to start with a fresh batch and figure it out. Glut can go, as can ffmpeg, etc.

bakercp commented 11 years ago

Currently the getting started guide lists these:

sudo apt-get install \
libgstreamer0.10-dev \
libgstreamer-plugins-base0.10-dev \
libavcodec-dev \
libavformat-dev \
libavutil-dev \
libswscale-dev \
freeglut3-dev \
libasound2-dev \
libxmu-dev \
libxxf86vm-dev \
g++ \
libgl1-mesa-dev \
libglu1-mesa-dev \
libraw1394-dev \
libudev-dev \
libdrm-dev \
gstreamer0.10-ffmpeg \
libglew-dev \
libopenal-dev \
libsndfile-dev \
libfreeimage-dev \
libcairo2-dev \
libgtk2.0-dev \
libjack-jackd2-dev \
python-lxml \
python-argparse
jvcleave commented 11 years ago

It may be best to leave them in there as it can at least keep it compiling and work backwards

bakercp commented 11 years ago

I agree. For the moment, I'd vote against following the getting started guide and making people run make manually to update their core libs.

BTW. I just added the getting started guide to the wiki.

bakercp commented 11 years ago

A lot of these setup scripts will be fixed shortly, as soon as some basic makefile refactoring settles down.

bakercp commented 11 years ago

We are getting close on this. I recently updated the makefile system to make the project config.make optional as well. All of the latest / best project makefiles are in the scripts/linux/templates/linuxarm* folders.

bakercp commented 11 years ago

Just a note: https://github.com/openframeworks/openFrameworks/issues/1672

bakercp commented 11 years ago

Additionally, I would love to help write a smarter install_dependencies.sh script that will work on any linux platform. While I know how to get the uname related platform info, how do we query things like whether a platform is omap4 (pandaboard has some special apt-get omap4 requirements) vs. something else etc? This script would ideall cover arch linux, ubuntu, debian, etc, and also cover the various architectures.

bilderbuchi commented 11 years ago

that would be awesome, currently there's a load of code duplication for the different platforms, when basically just the name of the package manager and of the packages changes. maybe ask at #ubuntu-arm, #pandaboard or #linux-omap on irc.freenode.net (from here), those guys should know i'd guess. @benben can probably help here. @arturoc too.

benben commented 11 years ago

shouldn't uname also display infos about the architecture? Currently I'm waiting for my pandaboard, so I'm happy to test and help out with my testsuite!

:smiley_cat:

danzeeeman commented 11 years ago

@jvcleave this can be closed right?

jvcleave commented 11 years ago

yep :)