Odd error in Ubuntu 10.04

Hey, I was able to run the .sh scripts noted in the oF installation guide and get Code::Blocks installed and everything, but have a problem when I try to run any of the example applications. I open up a .cdp file, then hit the Compile and Run button (I’ve tried both Debug and Release modes), but I keep getting the following error for every program:

Build messages tab
||=== polygonExample, Debug ===|
ld||cannot find -lopenFrameworksDebug|
||=== Build finished: 1 errors, 0 warnings ===|

Build log tab
-------------- Build: Debug in polygonExample ---------------
Compiling: src/main.cpp
Compiling: src/testApp.cpp
Linking console executable: bin/polygonExample_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

Are you running the latest version of OF?
http://www.openframeworks.cc/download

I think 0.062 shouldn’t have those problems.

Also make sure that the output of the install_dependencies.sh and install_codeblocks.sh scripts doesn’t list any errors.

I believe so, I downloaded the tar.gz file from that page and unpacked it to my Desktop, and the folder name says “0062” in it.

When I run ./install_codeblocks.sh, I can see the following errors sprinkled in my output:

W: GPG error: http://ppa.launchpad.net lucid Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY DEB692A9AAC7706F
E: Unable to change to /home/webb/Desktop/of_preRelease_v0062_linux64_FAT/scripts/linux/ubuntu/ - chdir (13: Permission denied)

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
codeblocks-contrib: Depends: libwxsmithlib0 (= 10.05-0ubuntu1~lucid2) but 10.05svn6846 is to be installed

========================================
Errors found in ./install_dependencies:

E: Unable to change to /home/webb/Desktop/of_preRelease_v0062_linux64_FAT/scripts/linux/ubuntu/ - chdir (13: Permission denied)

cd: 11: can’t cd to …/…/…/libs/openFrameworksCompiled/project/linux64
make: *** No rule to make target `Debug’. Stop.
there has been a problem compiling Debug OF library
please report this problem in the forums

Does anyone have any advice on this?

yes, run the install scripts with sudo…

I did a little more investigating and have some more useful information for you. I tried installing oF on my 32-bit netbook, and everything ran perfectly. I try the same procedure on my 64-bit desktop and gives the error you see at the beginning of this thread.

When I run “sudo ./install_dependencies.sh” I specifically end up with this error:

“cd: 10: can’t cd to …/…/…/libs/openFrameworksCompiled/project/linux64
make: *** No rule to make target `Debug’. Stop.
there has been a problem compiling Debug OF library
please report this problem in the forums”

So this would explain my other problem with Codeblocks. Please note that I did run the shell script as sudo and still got this problem, so I’m wondering now if this is a problem with my machine (I am in the sudoers file), or with the 64-bit shell script.

Edit: By the way, my 32-bit netbook is running Ubuntu 10.10 Netbook Remix, and my 64-bit desktop is running Ubuntu 10.04

mmh, that’s really weird, the error means that the openFrameworks directory doesn’t exists. can you check that the downloaded package contains libs/openFrameworksCompiled/linux64

if not try downloading the package again.

Interesting, the directory was there when I checked, but just to see what would happen, I removed my oF folder from my Desktop, re-downloaded the 64-bit FAT package, then extracted the contents to my home directory.

When I run sudo ./install_dependencies.sh now I get this error:

compiling object for …/…/…/openFrameworks/app/ofAppGlutWindow.cpp
mkdir -p obj/Debug/openFrameworks/app
mkdir: cannot create directory `obj’: Permission denied
make: *** [obj/Debug/openFrameworks/app/ofAppGlutWindow.o] Error 1
there has been a problem compiling Debug OF library
please report this problem in the forums

Like I said, I did run the file using sudo, but still get “permission denied.” I wonder if this is a problem with my computer, but do you have any other ideas?

mmh, yes that seems pretty weird, can you post the output of:

ls -la libs/openFrameworksCompiled/project/linux64

and

ls -la libs/openFrameworksCompiled/project/linux64/obj

Here you go:

webb@oo110:~/of_preRelease_v0062_linux64_FAT$ ls -la libs/openFrameworksCompiled/project/linux64/
total 12
drwxrwxr-x 2 webb webb 112 2010-11-17 13:42 .
drwxrwxr-x 3 webb webb 72 2010-11-17 13:43 …
-rw-rw-r-- 1 webb webb 7524 2010-11-17 13:42 libopenFrameworks.cbp
-rw-rw-r-- 1 webb webb 3195 2010-11-17 13:42 makefile


webb@oo110:~/of_preRelease_v0062_linux64_FAT$ ls -la libs/openFrameworksCompiled/project/linux64/obj
ls: cannot access libs/openFrameworksCompiled/project/linux64/obj: No such file or directory


Since I moved my installation to my home folder I now see there is no obj folder like there was on my Desktop.

the permissions in the linux64 folder seem ok, can you try running install_dependencies again and sending the output for the listing of the obj dir

0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
compiling object for …/…/…/openFrameworks/app/ofAppGlutWindow.cpp
mkdir -p obj/Debug/openFrameworks/app
mkdir: cannot create directory `obj’: Permission denied
make: *** [obj/Debug/openFrameworks/app/ofAppGlutWindow.o] Error 1
there has been a problem compiling Debug OF library
please report this problem in the forums

can you try this:

mkdir -p obj/Debug/openFrameworks/app

in libs/openFrameworksCompiled/project/linux64

and see if it works, it’s working for me without problem, and your permissions seem ok.

also can you do:

sudo visudo

and post the output

Yes, I was able to run the mkdir command successfully, we now have that empty folder.

Here is the complete contents of the output from “sudo visudo”

  
GNU nano 2.2.2            File: /etc/sudoers.tmp                                
  
# /etc/sudoers  
#  
# This file MUST be edited with the 'visudo' command as root.  
#  
# See the man page for details on how to write a sudoers file.  
#  
  
Defaults        env_reset  
  
# Host alias specification  
  
# User alias specification  
  
# Cmnd alias specification  
  
# User privilege specification  
root    ALL=(ALL) ALL  
webb    ALL=(ALL) ALL  
  
# Allow members of group sudo to access any command after they have  
# provided their password  
# (Note that later entries override this, so you might need to move  
# it further down)  
%sudo ALL=(ALL) ALL  
#  
#includedir /etc/sudoers.d  
  
# Members of the admin group may gain root privileges  
%admin ALL=(ALL) ALL  
  
^G Get Help  ^O WriteOut  ^R Read File ^Y Prev Page ^K Cut Text  ^C Cur Pos  
^X Exit      ^J Justify   ^W Where Is  ^V Next Page ^U UnCut Text^T To Spell  

Oh, and by the way I just tried running sudo ./install_dependencies.sh and got a little further. This time it does a bit more work, until this error comes up:

  
../../../openFrameworks/app/ofAppGlutWindow.cpp:698: fatal error: opening dependency file obj/Debug/openFrameworks/app/ofAppGlutWindow.d: Permission denied  
compilation terminated.  
make: *** [obj/Debug/openFrameworks/app/ofAppGlutWindow.o] Error 1  
there has been a problem compiling Debug OF library  
please report this problem in the forums