[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: xgsch2pcb couldn't find pcb & gsch2pcb executables



On Sat, 2011-03-26 at 03:57 -0700, Bob wrote:
> I've searched high and low for a solution to this and have not seen it, 
> I have compiled gschem 1.6.2 & pcb and xgsch2pcb into /opt/ and add my paths to my .bashrc files:
> 
> export PATH=/opt/geda-gaf-1.6.2/bin:${PATH}
> export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/geda-gaf-1.6.2/lib:${PATH}
> export PATH=/opt/pcb-20100929/bin:${PATH}
> export PATH=/opt/geda-xgsch2pcb-0.1.3/bin:${PATH}
> export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/geda-xgsch2pcb-0.1.3/lib:${PATH}
> 
> However using these settings when attempting to use xgsch2pcb I'm being notified that there was a problem initialising
> 
> Couldn't find 'pcb' executable
> Couldn't find 'gsch2pcb' executable
> 
> What am I missing, Where do I define the install paths of these applications to xgsch2pcb? 

How are you launching xgsch2pcb.. from the command line, or from the
desktop environment?

Looking at the code in xgsch2pcb, it finds the executable paths by
calling this function:

def find_tool_path (tool):
    which = commands.getstatusoutput("which %s" % tool)
    if which[0]:
        return None
    return which[1]

So - the next thing to test is.. from where you are launching xgsch2pcb,
what output do you get from :

"which pcb"
and
"which gsch2pcb"

If which can't find those executables, that is what you need to fix.

As a further suggestion - I believe gsch2pcb (not xgsch2pcb) plays a lot
nicer when you install it in the same prefix as PCB. It helps it to find
the footprints.

Alternatively, you might investigate setting the PCBDATA environment
variable to locate the m4 libraries. (This path automatically
has /pcb/m4 appended to it inside gsch2pcb). Sadly there is no
environment variable override for the newlib paths.

To fix properly, you need to build gEDA with the PCB paths configured at
build time. Configure gEDA with:

./configure ..... --with-pcb-datadir=/opt/pcb-20100929

Personally, I still all "gEDA" stuff under a "geda" prefix, and find
everything just works nicely.

Best wishes,

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)
Tel: +44 (0)1223 748328 - (Shared lab phone, ask for me)

Attachment: signature.asc
Description: This is a digitally signed message part


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user