a problem compiling Debug OF library in Ubuntu 12.10 64bits

After running ./install_dependencies.sh I get this:

from …/…/…/openFrameworks/utils/ofURLFileLoader.cpp:1:
…/…/…/openFrameworks/utils/ofConstants.h:143:23: fatal error: GL/glew.h: No such file or directory
compilation terminated.
make: *** [obj/Debug/openFrameworks/utils/ofURLFileLoader.o] Error 1
there has been a problem compiling Debug OF library
please report this problem in the forums
chown: cannot access `…/…/lib/linux64/*’: No such file or directory

which version of OF is this? could you try with latest develop, we solved some problems with the install script a couple of days ago.

How do I checkout / clone the develop branch using Ubuntu?

Sorry for the stupid question, I’m just a bit new with Ubuntu and Git.

I’ve tried with git clone https://github.com/openframeworks/openFrameworks.git but it was taking too long and I don’t think that was the develop branch.

I’ve also tried with git clone https://github.com/openframeworks/openFrameworks/tree/develop but it returned:

Cloning into ‘develop’…
fatal: https://github.com/openframeworks/openFrameworks/tree/develop/info/refs not found: did you run git update-server-info on the server?

it is taking long, git clone will download the whole repo.
if you don’t need the git repo, you can download a snapshot of the develop branch by selecting the develop branch on github (i.e. this page https://github.com/openframeworks/openFrameworks/tree/develop) then clicking the “zip” button:
https://github.com/openframeworks/openFrameworks/archive/develop.zip

Thanks,

I’ve tried with the develop version but I’m getting the same error.

This is the complete respose (sorry it’s in spanish):

  
Leyendo lista de paquetes... Hecho  
selecting gstreamer 1.0  
Leyendo lista de paquetes... Hecho  
Creando árbol de dependencias         
Leyendo la información de estado... Hecho  
Nota, seleccionando «libsndfile1-dev» en lugar de «libsndfile-dev»  
Nota, seleccionando «python2.7» en lugar de «python-argparse»  
g++ ya está en su versión más reciente.  
python-lxml ya está en su versión más reciente.  
python2.7 ya está en su versión más reciente.  
No se pudieron instalar algunos paquetes. Esto puede significar que  
usted pidió una situación imposible o, si está usando la distribución  
inestable, que algunos paquetes necesarios no han sido creados o han  
sido movidos fuera de Incoming.  
La siguiente información puede ayudar a resolver la situación:  
  
Los siguientes paquetes tienen dependencias incumplidas:  
 portaudio19-dev : Depende: libjack-dev  
E: No se pudieron corregir los problemas, usted ha retenido paquetes rotos.  
Leyendo lista de paquetes... Hecho  
Creando árbol de dependencias         
Leyendo la información de estado... Hecho  
gstreamer1.0-alsa ya está en su versión más reciente.  
gstreamer1.0-libav ya está en su versión más reciente.  
gstreamer1.0-plugins-bad ya está en su versión más reciente.  
gstreamer1.0-plugins-base ya está en su versión más reciente.  
gstreamer1.0-plugins-good ya está en su versión más reciente.  
gstreamer1.0-pulseaudio ya está en su versión más reciente.  
gstreamer1.0-x ya está en su versión más reciente.  
libgstreamer-plugins-base1.0-dev ya está en su versión más reciente.  
libgstreamer1.0-dev ya está en su versión más reciente.  
El paquete indicado a continuación se instaló de forma automática y ya no es necesarios.  
  linux-headers-3.5.0-17  
Use «apt-get autoremove» para eliminarlo.  
0 actualizados, 0 se instalarán, 0 para eliminar y 0 no actualizados.  
Package cairo was not found in the pkg-config search path.  
Perhaps you should add the directory containing `cairo.pc'  
to the PKG_CONFIG_PATH environment variable  
No package 'cairo' found  
Package libudev was not found in the pkg-config search path.  
Perhaps you should add the directory containing `libudev.pc'  
to the PKG_CONFIG_PATH environment variable  
No package 'libudev' found  
Package freetype2 was not found in the pkg-config search path.  
Perhaps you should add the directory containing `freetype2.pc'  
to the PKG_CONFIG_PATH environment variable  
No package 'freetype2' found  
Package sndfile was not found in the pkg-config search path.  
Perhaps you should add the directory containing `sndfile.pc'  
to the PKG_CONFIG_PATH environment variable  
No package 'sndfile' found  
Package openal was not found in the pkg-config search path.  
Perhaps you should add the directory containing `openal.pc'  
to the PKG_CONFIG_PATH environment variable  
No package 'openal' found  
Package portaudio-2.0 was not found in the pkg-config search path.  
Perhaps you should add the directory containing `portaudio-2.0.pc'  
to the PKG_CONFIG_PATH environment variable  
No package 'portaudio-2.0' found  
Package openssl was not found in the pkg-config search path.  
Perhaps you should add the directory containing `openssl.pc'  
to the PKG_CONFIG_PATH environment variable  
No package 'openssl' found  
Package gl was not found in the pkg-config search path.  
Perhaps you should add the directory containing `gl.pc'  
to the PKG_CONFIG_PATH environment variable  
No package 'gl' found  
Package glu was not found in the pkg-config search path.  
Perhaps you should add the directory containing `glu.pc'  
to the PKG_CONFIG_PATH environment variable  
No package 'glu' found  
Package glew was not found in the pkg-config search path.  
Perhaps you should add the directory containing `glew.pc'  
to the PKG_CONFIG_PATH environment variable  
No package 'glew' found  
Compiling ../../../libs/openFrameworks/utils/ofURLFileLoader.cpp  
mkdir -p ../../../libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/utils  
g++ -g3 -Wall -fexceptions -march=native -mtune=native -I../../../libs/cairo/include -I../../../libs/cairo/include/pixman-1 -I../../../libs/cairo/include/cairo -I../../../libs/cairo/include/libpng15 -I../../../libs/fmodex/include -I../../../libs/kiss/include -I../../../libs/openssl/include -I../../../libs/openssl/include/openssl -I../../../libs/poco/include -I../../../libs/portaudio/include -I../../../libs/rtAudio/include -I../../../libs/tess2/include -I../../../libs/openFrameworks -I../../../libs/openFrameworks/utils -I../../../libs/openFrameworks/3d -I../../../libs/openFrameworks/gl -I../../../libs/openFrameworks/communication -I../../../libs/openFrameworks/graphics -I../../../libs/openFrameworks/app -I../../../libs/openFrameworks/math -I../../../libs/openFrameworks/events -I../../../libs/openFrameworks/video -I../../../libs/openFrameworks/types -I../../../libs/openFrameworks/sound -MMD -MP -MF ../../../libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/utils/ofURLFileLoader.d -MT../../../libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/utils/ofURLFileLoader.o -o ../../../libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/utils/ofURLFileLoader.o -c ../../../libs/openFrameworks/utils/ofURLFileLoader.cpp  
In file included from ../../../libs/openFrameworks/utils/ofThread.h:3:0,  
                 from ../../../libs/openFrameworks/utils/ofURLFileLoader.h:6,  
                 from ../../../libs/openFrameworks/utils/ofURLFileLoader.cpp:1:  
../../../libs/openFrameworks/utils/ofConstants.h:143:23: fatal error: GL/glew.h: No such file or directory  
compilation terminated.  
make[1]: *** [../../../libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/utils/ofURLFileLoader.o] Error 1  
make: *** [Debug] Error 2  
there has been a problem compiling Debug OF library  
please report this problem in the forums  
  

something already goes wrong in the package install step, from what I can tell. i would not expect the OF compile to work flawlessly in that situation. maybe arturoc can say more.
this line seems key: E: No se pudieron corregir los problemas, usted ha retenido paquetes rotos.
something is broken in your packaging configuration. sorry I can’t help more

It looks like the problem is with my graphic card driver. I can’t play any game on steam.

I have an old DELL Inspiron 9400 with a Radeon x1400 128Mb and the only driver I can use is the ATI Open Source :frowning:

I could not find any propietary driver.

I was able to fix steam but I still cannot install OF

Please, could anybody help me?

I cannot buy a new video card for this laptop :frowning:

Are you able to compile the Release version of the OF library by any chance?

I’ve looked inside “install_dependencies.sh” looking for a way to change from debug to release but I didn’t find how to do it.

Could you please let me know how to compile in release?

Thanks

You can open up the codeblocks projects at
openFrameworks/libs/openFrameworksCompiled/project/linux
or
openFrameworks/libs/openFrameworksCompiled/project/linux64
depending on whether you are 32 or 64 bit.

Then select release, and try and compile.

Or in the same location, use the makefile. Type:

  
make Debug:		builds the library with debug symbols  
make Release:		builds the library with optimizations  
make:			= make Release  
make all:		= make Debug + make Release  
make CleanDebug:	cleans the Debug target  
make CleanRelease:	cleans the Release target  
make clean:		cleans everything   

In both ways I endup getting the same error message:

“make: *** No hay ninguna regla para construir el objetivo «all». Alto.”

which means something like:

“make: *** There are no rules to build the target “all”. High”

If I try to compile it from Code Blocks I get the same but instead of “all”, “Makefile”

I get here looking a solution to a similar problem.
Trying with differents paths, I was able to install the dependencies after execute “sudo sh ubuntu/install_dependencies.sh” from “openFrameworks/scripts/linux” folder. Only shows me an error that “compileOF.sh” was not found, wich I execute manualy and works.

I’m using the 0.74 32 bits version, don’t know if will help in your case.