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:
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
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
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?
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.
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
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