Help - Search - Members - Calendar
Full Version: Dia Can't Find Standard Object-libs
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
scheck.r
I downloaded dia version 0.95-pre3-1 from 7x0 official feed.
When I launch it from cli I get the dia splash screen and then
CODE
** (dia:9946): CRITICAL **: Couldn't find standard objects when looking for object-libs in '/usr/lib/dia'; exiting...

Thanks

Ps: I am running 1.1.0beta2. If it matters, I noticed that dia is 4,2M big but in the Packages file it's written 13,4M
Armagon
QUOTE(scheck.r @ Mar 24 2006, 10:00 AM)
I downloaded dia version 0.95-pre3-1 from 7x0 official feed.
When I launch it from cli I get the dia splash screen and then
CODE
** (dia:9946): CRITICAL **: Couldn't find standard objects when looking for object-libs in '/usr/lib/dia'; exiting...

Thanks

Ps: I am running 1.1.0beta2. If it matters, I noticed that dia is 4,2M big but in the Packages file it's written 13,4M
*


I'm still running beta1. I compiled dia-0.94, and am getting a similar error:

CODE
** ERROR **: Couldn't find standard objects when looking for object-libs, exiting...


Question 34 in the dia FAQ says:

QUOTE
Q: After compiling, when I run Dia it fails with the following error:
"Couldn't find standard objects when looking for object-libs, exiting..."

A: You're trying to run the Dia executable directly from the source directories. Either do make install, or run with the wrapper script app/run_dia.sh. That way, Dia will know where to find its objects.


And yes, I did do a make install.

run_dia.sh on my PC says,

CODE
#!/bin/sh
DIA_APP_PATH="/home/blackmore/Zaurus/Cross/dia-0.94/app"
DIA_BASE_PATH="$DIA_APP_PATH/.."
DIA_LIBS_PATH="$DIA_APP_PATH/.libs"

DIA_LIB_PATH="$DIA_BASE_PATH/objects//:$DIA_BASE_PATH/plug-ins//"
DIA_PLUGIN_PATH="$DIA_BASE_PATH/plug-ins"
DIA_SHAPE_PATH="$DIA_BASE_PATH/shapes"
DIA_INT_SHAPE_PATH="$DIA_BASE_PATH/objects"
DIA_SHEET_PATH="$DIA_BASE_PATH/sheets"

export DIA_LIB_PATH DIA_SHAPE_PATH DIA_INT_SHAPE_PATH DIA_SHEET_PATH DIA_PLUGIN_PATH
if [ "x$DEBUGGER" != "x" ]; then
 if [ ! -f "$DIA_LIBS_PATH/lt-dia" -o "$DIA_LIBS_PATH/lt-dia" -ot "$DIA_LIBS_PATH/dia" ]; then
   echo "libtool relink stage necessary before debugging is possible."
   echo "please run $0 once without a debugger."
   exit 1
 fi
  $DEBUGGER "$DIA_LIBS_PATH/lt-dia" "$@"
else
  "$DIA_APP_PATH/dia" "$@"
fi


I searched for run_dia.sh on my Z, and couldn't find it.

I should also note that dia wanted to be in /usr/local, but I ./configured it with --prefix=/usr. I don't know if that'd make a difference. (I tried a simlink from /usr/local/lib/dia to /usr/lib/dia, but it didn't help.)


OK, I've got a partial solution. I presume this will work with the newer dia in the official feeds (which means I won't need to put up dia-0.94):

Make a file called run_dia.sh (you may want to put it in /usr/bin), and use the following contents:

CODE
#!/bin/sh
DIA_APP_PATH="/usr"
DIA_BASE_PATH="/usr"
DIA_LIBS_PATH="/usr/lib/dia"

DIA_LIB_PATH="$DIA_LIBS_PATH"
DIA_PLUGIN_PATH="$DIA_LIBS_PATH"
DIA_SHAPE_PATH="$DIA_LIBS_PATH"
DIA_INT_SHAPE_PATH="$DIA_LIBS_PATH"
DIA_SHEET_PATH="$DIA_LIBS_PATH"

export DIA_LIB_PATH DIA_SHAPE_PATH DIA_INT_SHAPE_PATH DIA_SHEET_PATH DIA_PLUGIN_PATH
if [ "x$DEBUGGER" != "x" ]; then
 if [ ! -f "$DIA_LIBS_PATH/lt-dia" -o "$DIA_LIBS_PATH/lt-dia" -ot "$DIA_LIBS_PATH/dia" ]; then
   echo "libtool relink stage necessary before debugging is possible."
   echo "please run $0 once without a debugger."
   exit 1
 fi
  $DEBUGGER "$DIA_LIBS_PATH/lt-dia" "$@"
else
  "dia" "$@"
fi


You'll need to chmod +x run_dia.sh, and then try executing it. If it works for you, you'll want to edit the exec line of /usr/share/applications/dia.desktop to run that instead of dia directly.

For me, it does work,despite giving me an error that it can't find libxslt (a problem I don't want to track down right now.)


Armagon
scheck.r
QUOTE
Make a file called run_dia.sh (you may want to put it in /usr/bin), and use the following contents:
...
You'll need to chmod +x run_dia.sh, and then try executing it.

I did put run_dia.sh in /usr/bin where the dia executable is, then from the commad line I ran
CODE
sh run_dia.sh
but I still get the same errors.

Thanks.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.