Author Topic: (FreeBSD) cannot start codeblocks  (Read 7867 times)

realisticer

  • Guest
(FreeBSD) cannot start codeblocks
« 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

Offline squizzz

  • Almost regular
  • **
  • Posts: 132
(FreeBSD) cannot start codeblocks
« Reply #1 on: July 03, 2005, 10:30:01 pm »
Check this thread, it should help. :)
this space is for rent

realisticer

  • Guest
(FreeBSD) cannot start codeblocks
« Reply #2 on: July 03, 2005, 10:38:40 pm »
Quote from: squizzz
Check this thread, it should help. :)


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

mfg
realisticer

realisticer

  • Guest
problem solved
« Reply #3 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

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
(FreeBSD) cannot start codeblocks
« Reply #4 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 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

  • Guest
(FreeBSD) cannot start codeblocks
« Reply #5 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 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