User forums > Help
(FreeBSD) cannot start codeblocks
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:
Check this thread, it should help. :)
realisticer:
--- Quote from: squizzz ---Check this thread, it should help. :)
--- End quote ---
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:
--- Quote ---the path to the ressources is defined to be /share/
--- End quote ---
Actually it's set to be
--- Code: ---GetAppPath() + "/share/CodeBlocks"
--- End code ---
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.
Navigation
[0] Message Index
[#] Next page
Go to full version