Build All Examples on Debian

Hi,
If i do ./buildAllExamples.sh I get:
category …/…/examples/video
building + …/…/examples/video/asciiVideo
make: Entering directory /home/w/openFrameworks/examples/video/asciiVideo' make: *** No rule to make targetDebug’. Stop.
make: Leaving directory `/home/w/openFrameworks/examples/video/asciiVideo’
error compiling …/…/examples/video/asciiVideo

Any tips on what this means and what to do about it?

are you using the version from github or the downloadable package from the web?

the version from github.

the version in github doesn’t have the makefiles you can create them using the project generator or copying them from the template in scripts/linux/template

you’ll need both the Makefile and the config.make file

2 Likes

Thanks very much (once again).
Will.

In case anybody searches how to build all examples from github source, you can add the following lines (in bold) to the scripts/buildAllExamples.sh script:

echo "-----------------------------------------------------------------"
echo "copying default make to " $example

cp -n template/linux64/Makefile $example
cp -n template/linux64/config.make $example

Place them here in the script:

[...]
    if [ "$example" = "$category" ]; then
                continue
        fi
        echo "-----------------------------------------------------------------"
        echo "copying default make to " $example
        
        cp -n template/linux64/Makefile $example
        cp -n template/linux64/config.make $example

        echo "-----------------------------------------------------------------"
        echo "building " + $example
        
        #projectGenerator .
        make Debug -j3 -C $example
[...]

I also removed the ‘exit’ command on both Debug and Release since I don’t want it to exit if it fails to build an example. To keep track of the failures I’ve replaced the ‘exit’ with

      echo error compiling $example >> log.txt
4 Likes

hi, do you know if can I do the same on OSX?
I can’t found the projectGenerator anymore…

As of 0.9.8, the added lines should look like:

echo "-----------------------------------------------------------------"
echo "copying default make to " $example

cp -n …/templates/linux64/Makefile $example
cp -n …/templates/linux64/config.make $example