Re: starting dia on solaris

2001-04-22 Thread adam morley

On Mon, Apr 23, 2001 at 12:23:27AM +0200, melanie gault wrote:
> 
> hello
> 
> >where'd you put evetything?
> 
> yep. is that a so bad idea ?

just makes it harder to get rid of it later, thats all.  and its sort of anti standard.

> 
> >the really bad /usr/local?
> 
> I let all the default values for every things for config make and install
> 
> >
> >ugh.  sounds like it cant find your libs.  can you run:
> >
> >$ dia
> 
> no it shows me the error message
> Couldn't find objects when looking for > object-libs, exiting.
> after the opening (and nearly simultaneous closing) of 7 or perhaps 10 error 
> dialog window.

so you get a bunch of error messages, then it gives you that can't find objects when 
looking for object-libs error?  mmm.  im going to play with it a bit more and see what 
i get, ill let you know.

> 
> when I launch the run_dia.sh script it does the same :
> open 7 or 10 big windows (I cant read anything but the title of the window 
> witch is "error"...)
> these windows closes very fastly
> 
> I begin to try what you says : changing the makefiles...
> but
> their are too many... I dont have enought courage to do that :)
> (and I don't know how to make a script to do that for me)
> is their another solution ?
> 
> I dont see what can I say to help you to find the pb...
> I juste use default variables and default install...
> 
> 
> thanks a lot
> 
> Melanie
> 
> 
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> 

-- 
thanks
adam




Re: starting dia on solaris

2001-04-20 Thread adam morley

On Fri, Apr 20, 2001 at 02:09:24PM -1100, Melanie Gault wrote:
> hello
> 
> I try to install dia 0.86 on a solaris system.
> after installing all libs needed (glib gtk gdk-pixbuf and libxml)

where'd you put evetything?  the really bad /usr/local?

> I compile and install dia. All works without a problem...
> 
> but when I try to launch it... I got :
> Couldn't find objectswhen looking for > object-libs, exiting.
> 

ugh.  sounds like it cant find your libs.  can you run:

$ dia

and send all the output?

> I try to do as the FAQ says... : ldconfig, but it does not exists on my
> system.

ldconfig doenst exist in solaris, mainly because ldconfig is a hack.  properally 
compiled/built apps dont even need it.

> I read archives, and find some people with the same problem as mine, but
> not the solution...
> I try to set an env. variable LD_LIBRAIRY_PATH but it does'nt work much
> better...

technically, if built right you wont need ldconfig (mostly a linux thing) or 
LD_LIBRARY_PATH.

add -R to the variable LDFLAGS in the Makefile.  well, all 
makefiles.


if the configure script is written correctly, you should be able to pass both the 
environment variables CFLAGS and LDFLAGS to specify where the comipler and linker 
should look for things:

something like this (just what i had in this particular window)
CFLAGS=-xCC -xO5 -xtarget=ultra2 -xbuiltin=%all -xdepend -xvector -xarch=v9a
(for sun's compiler, not gcc.)
LDFLAGS=-L/opt/gnome/lib -R/opt/gnome/lib

note that ldflags is only used when linking object files whereas cflags is used for 
compilation.  sometimes (like when compiling sparcv9 binaries) you have to tell ld 
we're using -xarch=v9, so it will link okay.  but you shouldn't run in to that.  (and 
i wouldn't recommend building 64 bit stuff until youve done a fair amount of work with 
solaris and getting configure/makefile stuff to work, because sometimes you have to do 
some funky stuff *to* get it to work.)

the key here is what is called a link time library path and a run time library path.  
link time is something like:

-L/usr/local/lib
run time is:
-R/usr/local/lib
(linux uses something like -rpath /usr/local/lib)

this compiles in to the executable (done at link time) the path to search for 
libraries.  so when a binary runs it will then search  the /usr/lib 
(though it might be the revers, cant remember).

this prevents something like what is done in ld.so.conf (the configuration file used 
by ldconfig in linxu) which will go out and stat all the dirs in your ld.so.conf file 
when the binary runs.  the runtime path will only stat what you tell it to stat.  

its really cool when trying out new versions of your libraries, especially if you put 
your devel libs somewhere other than your production libs, because your production 
apps wont get touched by the new apps (the whole seperate directoy thing)

anyways, give me some more stuff on exactly what comes out of running dia, and ill try 
and help.

> 
> I'm a newbie in solaris and unix world, so I don't know what I can do to
> make dia work...
> 
> please help...
> 
> thx
> 
> Melanie
> 
> 
> 

-- 
thanks
adam




Re: Question about dia & gnome

2001-04-16 Thread adam morley

On Mon, Apr 16, 2001 at 02:06:58PM -0500, Lars Clausen wrote:
> On Mon, 16 Apr 2001, adam morley wrote:
> 
> > I was wondering, GNOME doesn't seem to have any diagramming software, and
> > dia seems to use a lot of gnome interfaces (glib, gtk, imlib, etc.)  are
> > there any plans to integrate dia with gnome?
> 
> We want to keep Dia from depending on Gnome, but still use as much of Gnome
> as we can.  Dia is listed in the Gnome software list, under productivity
> (this obviously doesn't apply to the developers:).  If it doesn't come with
> the rest of Gnome when installed, that would be the fault of the makers of
> the distribution you use.  I know it comes with Redhat.

ah, cool.

> 
> -Lars
> 
> -- 
> Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause) | HÃ¥rdgrim of Numenor
> "I do not agree with a word that you say, but I| Retainer of Sir Kegg
> will defend to the death your right to say it."|   of Westfield
> --Evelyn Beatrice Hall paraphrasing Voltaire   | Chaos Berserker of Khorne
> 

-- 
thanks
adam




Question about dia & gnome

2001-04-16 Thread adam morley

I was wondering, GNOME doesn't seem to have any diagramming software, and dia seems to 
use a lot of gnome interfaces (glib, gtk, imlib, etc.)  are there any plans to 
integrate dia with gnome?


I did notice there is gnome support if i have the gnome libs installed, but i thought 
it might be neat for gnome if it came with a visio like product--that would help gnome 
even more.

-- 
thanks
adam