Ran install.sh as root, install went fine as far as I could see, fired up codeblocks, went to several of the example folders and was invariably greeted with:
-------------- Build: Debug in fontsExample ---------------
Compiling: src/main.cpp
Compiling: src/testApp.cpp
Linking console executable: bin/advancedEventsExample_debug
/usr/bin/ld: cannot find -lopenFrameworksDebug
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)
1 errors, 0 warnings
you are missing the OF library, it should be compiled when running as root the install_dependencies.sh script, or you can open the codeblocks project in libs/openFrameworksCompiled/projects/linux and compile it from codeblocks, you’ll need to compile both debug and release
a third option is to open the workspace instead of the cbp file in the examples, that will compile the library automatically when needed
i had the same problem, i was doing everything right. even after installing both sh files
./install_codeblocks.sh
./install_dependencies.sh
it didn’t compile. After many days i’ve recognized that i have the wrong architectur my pc is 64bit but ubuntu was installed 32bit. Arturo told me that command
uname -a
if it says i686 than you have 32bit.
Now with the right architecture every example is compiling without any problem.
By the way, check if you have owner rights in the OF root directory. I got error messages from codeblocks, that files couldn’t created.
it seems you’re getting some problem related with the latest versions of ffmpeg. this should be solved already in github, can you try with that version:
Hi,
I have been trying to install OF in Ubuntu 9.10 for a while. I have tried Code::Blocks and makefile in the terminal, but I keep getting the same error:
/usr/bin/ld: cannot find -lopenFrameworks
when compiling.
Can anybody help me? I’ve tried installing and deinstalling code::blocks (it installs svn build 6181) with no luck.
Here is a fragment of what I get in the terminal using the makefile:
I think the problem is that with the 0061 version from the downloadpage codeblocks settings are wrong.
Under build options -> linker settings -> link libraries there are correct entries for openFrameworks library. in debug there is openFrameworksDebug and in release openFrameworks. But there is also an openFrameworks entry for all configurations. So the linker takes first the libraries for all configuration.
I had to remove under all configuirations the openFrameworks lib to be able to link in debug mode.