News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

(FreeBSD) cannot start codeblocks

Started by realisticer, July 03, 2005, 09:58:06 PM

Previous topic - Next topic

realisticer

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

squizzz

this space is for rent

realisticer

Quote from: squizzzCheck this thread, it should help. :)

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

mfg
realisticer

realisticer

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

mandrav

Quotethe path to the ressources is defined to be /share/
Actually it's set to be
GetAppPath() + "/share/CodeBlocks"
If it searched for "/share" then this means that GetAppPath() returns nil.
C::B uses 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.
Be patient!
This bug will be fixed soon...

Anonymous

Quote from: mandrav
Quotethe path to the ressources is defined to be /share/
Actually it's set to be
GetAppPath() + "/share/CodeBlocks"
If it searched for "/share" then this means that GetAppPath() returns nil.
C::B uses 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