开云体育

Date

Locked Re: problem compiling source code

 

At 8:15 PM +0000 8/8/02, sixth_rule wrote:
what is a CVS checkout. and what repository all i found was the
source code snapshots on your technical page
The code snapshots are really meant as "snapshots" for browsing, rather than a starting point for working with the code.

CVS is a tool for keeping lots of copies of files up to date. The people at SourceForge.net host a "repository" that has master files. Via the CVS tool, you can create a local copy where you can compile, make changes, etc. Then, when somebody else updates the central copy (e.g. we fix bugs, add features, etc), you can just say "cvs update" to get all those changes made in your local copy. This is better than just downloading a new set of files, because all of your local changes are still in your local copy.

Once CVS is installed on your machine, you start the process by saying:

cvs -d:pserver:anonymous@...:/cvsroot/jmri co ant

I'll add some more on how to get CVS, start this, etc to the tech web page in a day or two when I've got a better net connection (I'm in the last stages of a trip now and sending mail from pay phones)

I'll also package up a .zip file with everything you do need to get started, just as if you'd done that with CVS. That'll let you play with the code for a while without having to install any other tools. But it'll be a couple of days until I'm able to do this, sorry for the delay.

Bob

--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


Locked Re: 1.0.3 control panel questions

 

At 8:52 AM -0700 8/8/02, Robin Becker wrote:
Can you view the sensor or turnout number once you place them on the panel?
Sorry, gave a confusing answer to that before.

The ID numbers are in the popup menu. But that doesn't help until we get the popup working for you.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


Locked Re: 1.0.3 test installer uploaded

 

At 12:12 PM -0700 8/8/02, Jim Hanna wrote:
Although I don't know that much about computers(just ask Robin)I will be more than happy to test any of my decoder equipped locos per your instructions if you are in need of feedback on a particular decoder that i might have in my roster.
(Sorry for the burst of messages; am working on this on an airplane, and sending them when I get a chance)

It would be great if you could go through your roster and check for decoders that don't identify. Getting the CV7 value and the model number for those would let me fix the identification, at least most of the time.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


Locked Re: 1.0.3 control panel questions

 

At 11:58 AM -0700 8/8/02, Robin Becker wrote:
Bob,

>Once icons are placed on the control panel, the tooltip says
"Alt-click to
> >see menu, drag with meta key..."
...
Tried CTRL or ALT with left and right mouse buttons but nothing causes a
menu to pop up.

The right mouse button seems to be the "meta" key.
OK, I'm clearly confused.

What does one normally do to get pop-up menus on a Windows machine? e.g. in other applications, etc. Is there a standard?

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


Locked Re: 1.0.3 control panel

 

At 11:53 AM -0700 8/8/02, Robin Becker wrote:

> Does the panel start minimized (nothing by header)? Or is it
bigger than that.
It isn't minimized. Seems to be about 150x150. Resizing one time (small or
larger both work) fixes the problem.
Thanks. I'll look into it. It seems to be a Windows-specific (or at least not on my Mac), so I'll have to wait a couple days until I get home.


>
I think that's the same thing. There's a missing file, and code gets
confused trying to cope.
Well I created two missing upper-left files, unknown and error, and made a
new panel. Same problem. However, if I manually edit the panel file and
make the changes (upper-left and thrown where appropriate), then it displays
correctly.
Sorry, should have been clearer. The code that code confused is one of my tools, which generated the Java for the panel editor wrong. It's fixed now.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


Locked Re: 19.2 Kb

 

At 10:41 PM +0200 8/8/02, Sip Bosch wrote:
Bob, magician,

Installed the new installer and it runs
like a rollercoaster. Thanks a lot.
"Runs like a roller coaster" is good, right? I have this mental image of the program zooming downhill while everybody screams...

When I first moved to France a while back, I was fond of the expression "Best thing since sliced bread". It took a couple of weeks for me to realize that most people listening thought I meant that something was a dumb idea when I said that.

Will work on the Zimo line of decoders.
Great, let me know if I can help.

Bob

--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


Locked CVP's AD4 Decoder

original_black_bart
 

Bob,

I've had an opportunity to test functionality of the AD4 file.
Programming via a Digitrax DB150, readback via PR-1. Values are sent
as expected. In reviewing the fle, I've noticed a few that
programming is permitted via paged mode. This needs to be changed as
the AD4 doesn't support such.

Trusting that it's okay with you and the readers of this NG, I'm
going to tinker around with the XML file to see if I can't format the
display a little better. For example,; indication of time in 1/10
seconds when setting a pulsed signal. Should be able to review and
respond on htis by Saturday.

BTW, the newly added Log Curve on the speed table is awsome.

Bob


Locked 19.2 Kb

 

Bob, magician,

Installed the new installer and it runs
like a rollercoaster. Thanks a lot.
Will work on the Zimo line of decoders.

Sibbo


Locked Re: problem compiling source code

sixth_rule
 

Ok i downloaded Jbuilder Personal edition and don't really know what
to do next
i read your instructions on Jbuilder on the technical page
here is where i get lost.

In the project directory, do a CVS checkout of the "jbuilder" module
from our repository. This will create a "java" subdirectory where the
JBuilder IDE will run, and load it with source, tests and resources.
It will also create and populate directories for xml and libraries in
the project directory.

what is a CVS checkout. and what repository all i found was the
source code snapshots on your technical page

thanks
Chad Spickett
University of Windsor

But can I suggest using bare javac is a very hard process, and that
you'd be better off investing a few minutes installing JBuilder or
ant to make this process automatic? They're tools that handle the
library paths, deciding what to compile, etc.

Depending on what OS you're using, or the other might be easier.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@l..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


Locked Re: problem compiling source code

 

At 7:31 PM +0000 8/8/02, sixth_rule wrote:
I am using javac
i moved the jmrix dir into jmri and set the class path
things are working now with these classes

i am now trying to compile the LocoNetMessage class but run into an
error every time i it tries to compile a line with log.error in it
like
log.error("invalid length in call to ctor: "+len);
or
static org.apache.log4j.Category log =
org.apache.log4j.Category.getInstance(LocoNetMessage.class.getName());
There are a couple of libraries that are needed, even during compilation.

You should have gotten a "lib" directory when you checked out the source. They're in there, and have to be manually added to the javac command line.

But can I suggest using bare javac is a very hard process, and that you'd be better off investing a few minutes installing JBuilder or ant to make this process automatic? They're tools that handle the library paths, deciding what to compile, etc.

Depending on what OS you're using, or the other might be easier.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


Locked Re: ad4

Jon Miller
 

I should have said when you are close, inferring I'm closer than Mark<G>.


Locked Re: problem compiling source code

sixth_rule
 

I am using javac
i moved the jmrix dir into jmri and set the class path
things are working now with these classes

i am now trying to compile the LocoNetMessage class but run into an
error every time i it tries to compile a line with log.error in it
like
log.error("invalid length in call to ctor: "+len);
or
static org.apache.log4j.Category log =
org.apache.log4j.Category.getInstance(LocoNetMessage.class.getName());

its actually been a while since i've programed so my skills are rusty
and i think i know the purpose of these lines there like system.out
messages to veiw the error except maybe your trying to keep them in a
log :)

anyways your patience with my ingnorance is appriciated
Chad Spickett


--- In jmriusers@y..., Bob Jacobsen <Bob_Jacobsen@l...> wrote:
At 5:29 PM +0000 8/8/02, sixth_rule wrote:
i have compiled just one class JmriException.java
yet i can't compile LocoNetException.java ???

i keep getting the message can't resolve symbol
class :JmriException
location:package jmri
import jmri.JmriException

i have touached nothing but can't find the problem??

i have left all the files where they are and i don't know why it
won't compile??
To help, I think we're going to need a little more information.

How are you doing this? Are you using either the Ant or JBuilder
tools described on



Or are you using plain javac? If so, in what directory are you
trying
to compile?

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@l..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


Locked Re: 1.0.3 control panel

Jon Miller
 

Bob,
I have a couple of AD4's so if you are close you can pick one up for
testing.

Jon Miller
AT&SF
For me time has stopped in 1941
Digitrax DCC owner, Chief system
NMRA Life member #2623
Member SFRH&MS


Locked Re: 1.0.3 test installer uploaded

Jim Hanna
 

Hi Bob:

Downloaded the program and copied it to my JMRI CD Files disk, took it into the train room computer , installed with no difficulty and it works great...and the JMRI.1.0.3 reads out at the top of the opening page.

Thanks for all your work on this program. Although I don't know that much about computers(just ask Robin)I will be more than happy to test any of my decoder equipped locos per your instructions if you are in need of feedback on a particular decoder that i might have in my roster.

Thanks again,

Jim Hanna


Locked Re: 1.0.3 control panel questions

Robin Becker
 

Bob,

Once icons are placed on the control panel, the tooltip says
"Alt-click to
see menu, drag with meta key..."
On a Mac, with only one button, "alt" is the control or option keys.
So to see the popup menu I hold control and click-down on something.
"Meta" is the command (a.k.a. Apple) key, so I hold that down to move
things around.

Maybe control works the same on a Windows box?
Tried CTRL or ALT with left and right mouse buttons but nothing causes a
menu to pop up.

The right mouse button seems to be the "meta" key.


Can you view the sensor or turnout number once you place them on
the panel?

Uh, I don't know?
Sorry, not sure if you were responding above to the popup menu or the object
number question.

Robin


Locked Re: 1.0.3 control panel

Robin Becker
 

Bob,

1. When I create a new control panel and add icons, nothing is visible on
the panel until I resize it. After I resize the panel
everything is there.
I tried different X and Y values and it didn't matter.
Does the panel start minimized (nothing by header)? Or is it
bigger than that.
It isn't minimized. Seems to be about 150x150. Resizing one time (small or
larger both work) fixes the problem.


3. When I add a _left_ turnout to the drawing, the initial icon
displayed is
a _right_ turnout in unknown state. Once I click on the turnout
it becomes
a closed _left_ turnout.
This is a bug; I seem to have lost the file for one of the "unknown"
turnouts. Will fix.

3a. When I save and then load the panel, all the turnouts are
right turnouts
in unknown state. I can click on each one and change it to
closed, however
only one will allow me to toggle it between closed and thrown.
I think that's the same thing. There's a missing file, and code gets
confused trying to cope.
Well I created two missing upper-left files, unknown and error, and made a
new panel. Same problem. However, if I manually edit the panel file and
make the changes (upper-left and thrown where appropriate), then it displays
correctly.


But I recommend you switch to JmriDemo for playing with these panels.
That's because it's configuration file (and input menu) has a
"LocoNet Hexfile" option that starts a debugging "layout simulator"
instead of a real layout connection. Select this, quit and restart,
and I think that your sensors should be animated.
When I set it to LocoNet Hexfile the sensor change state as expected.

Robin


Locked Re: problem compiling source code

 

At 5:29 PM +0000 8/8/02, sixth_rule wrote:
i have compiled just one class JmriException.java
yet i can't compile LocoNetException.java ???

i keep getting the message can't resolve symbol
class :JmriException
location:package jmri
import jmri.JmriException

i have touached nothing but can't find the problem??

i have left all the files where they are and i don't know why it
won't compile??
To help, I think we're going to need a little more information.

How are you doing this? Are you using either the Ant or JBuilder tools described on



Or are you using plain javac? If so, in what directory are you trying to compile?

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


Locked Re: 1.0.3 control panel

Jon Miller
 

Select a different mirror site<
That did it. It went automatically to Telios and I just didn't notice!


Jon Miller
AT&SF
For me time has stopped in 1941
Digitrax DCC owner, Chief system
NMRA Life member #2623
Member SFRH&MS


Locked Re: 1.0.3 control panel

Robin Becker
 

Jon,

Select a different mirror site. I had the same problem with Telios, but
when I switched to another site it worked fine.

Robin

-----Original Message-----
From: Jon Miller [mailto:atsf@...]
Sent: Thursday, August 08, 2002 10:36 AM
To: jmriusers@...
Subject: Re: [jmriusers] 1.0.3 control panel


It came from the net? From sourceforge.net, download server and reads;

Could not read file.
Go back
aug 08, 2002 10:33

Jon Miller
AT&SF
For me time has stopped in 1941
Digitrax DCC owner, Chief system
NMRA Life member #2623
Member SFRH&MS


Yahoo! Groups Sponsor
ADVERTISEMENT



To unsubscribe from this group, send an email to:
jmriusers-unsubscribe@...



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


Locked Re: 1.0.3 control panel

Jon Miller
 

It came from the net? From sourceforge.net, download server and reads;

Could not read file.
Go back
aug 08, 2002 10:33

Jon Miller
AT&SF
For me time has stopped in 1941
Digitrax DCC owner, Chief system
NMRA Life member #2623
Member SFRH&MS