Code::Blocks Forums

User forums => Help => Topic started by: realisticer on July 03, 2005, 09:58:06 pm

Title: (FreeBSD) cannot start codeblocks
Post by: realisticer on July 03, 2005, 09:58:06 pm
Hi everyone,

i downloaded codeblocks and build it successfuly on freebsd 5.3.  but i can´t
start codeblocks without getting the following message:

¨Cannot find /share/CodeBlocks/ressources.zip...
Code::Blocks was configured to be installed in ´´.
Please use the command-line switch ´--prefix´ or set the DATA_PREFIX
enviroment variable to point where Code::Blocks is installed, or try re-installing
the application...¨

So first i did was to add the ´--prefix=$APP_DIR´ command-line switch to the
run.sh script, but the message still appears. next i tried to set DATA_PREFIX
to $APP_DIR but still get the message.

what else can i do?

mfg
realisticer
Title: (FreeBSD) cannot start codeblocks
Post by: squizzz on July 03, 2005, 10:30:01 pm
Check this thread (http://codeblocks.org/index.php?name=PNphpBB2&file=viewtopic&t=472&highlight=update), it should help. :)
Title: (FreeBSD) cannot start codeblocks
Post by: realisticer on July 03, 2005, 10:38:40 pm
Quote from: squizzz
Check this thread (http://codeblocks.org/index.php?name=PNphpBB2&file=viewtopic&t=472&highlight=update), it should help. :)


I allready did it but got the same result. the message still appears

mfg
realisticer
Title: problem solved
Post by: realisticer on July 03, 2005, 10:59:58 pm
hi everyone,

i solved the problem. the problem is:

the path to the ressources is defined to be /share/

so i edited app.cpp and changed it to share. note there is no leading slash,
what caused the programm to search in /share. in freebsd /share does not
exist and even if it would exist the app would not find the ressource-information
at this location because the ressource-information are located in $APP_DIR/share.

now codeblocks starts :)

mfg
realisticer
Title: (FreeBSD) cannot start codeblocks
Post by: mandrav on July 03, 2005, 11:17:47 pm
Quote
the path to the ressources is defined to be /share/

Actually it's set to be
Code
GetAppPath() + "/share/CodeBlocks"

If it searched for "/share" then this means that GetAppPath() returns nil.
C::B uses binreloc (http://autopackage.org/docs/binreloc/) in unix systems to find out its current path. It seems that binreloc doesn't work with FreeBSD?
Anyway I 've updated CVS to return "." as base path, if binreloc fails to find it.

Yiannis.
Title: (FreeBSD) cannot start codeblocks
Post by: Anonymous on July 03, 2005, 11:35:49 pm
Quote from: mandrav
Quote
the path to the ressources is defined to be /share/

Actually it's set to be
Code
GetAppPath() + "/share/CodeBlocks"

If it searched for "/share" then this means that GetAppPath() returns nil.
C::B uses binreloc (http://autopackage.org/docs/binreloc/) in unix systems to find out its current path. It seems that binreloc doesn't work with FreeBSD?


i looked at the prefix.c. the reason that binreloc doesn´t work with freebsd is
because it uses /proc. in freebsd you normaly don´t have /proc.

Quote

Anyway I 've updated CVS to return "." as base path, if binreloc fails to find it.


this should do it :)

mfg
realisticer