compiled: RH6.1/emc1.12-16(cvs)/linux-2.4.4/rtlinux-3.1 (steps taken)



In the hopes this might be of interest to someone here...

I have another compile report/pre-preliminary howto
This is based on cvs as of approx 12:01am on 2001-12-16
(FYI my cvs needs this date format contrary to the man page)

 ---*** I have not tested the pport output, it compiles and runs ***---

I know this code is a moving target, what parts are moving and what
parts are static???
Are there any specific "features" that I need to know about (avoid)?????

Below are my notes (I actually made them as I went along this time)
Now I don't crash the PC when I run ./emc.run
(thanks for the earlier response regarding this bug in particular in
1.1-17)
Now I can test the external HW.
:-)

This is _ALMOST_ a shell script, the login would require 'expect', but
you could login first then get coffee!

--------------------------------------------------------------------------

##### this is a comment
#>computer output looks like this (pasted)
echo 'lines without a leading "#" I expect you to type'

##### make a directory for the latest cvs sourcecode (season to taste)

mkdir /usr/src/emc-cvs.1.12-16
cd /usr/src/emc-cvs.1.12-16

#### login to the EMC anonymous cvs server

cvs -d:pserver:anonymous-at-cvs.EMC.sourceforge.net:/cvsroot/emc login

#### hit enter when prompted for password
#### I'm not sure how long you stay logged in, but it's many hours

#### the following 2 commands copy the files from cvs to the local
directory
#### the cvs commands are only 1 line each (they might wrap on your
display)

cvs -d:pserver:anonymous-at-cvs.EMC.sourceforge.net:/cvsroot/emc -z9 co -D
2001-12-16 emc

cvs -d:pserver:anonymous-at-cvs.EMC.sourceforge.net:/cvsroot/emc -z9 co -D
2001-12-16 rcslib

#### can this be done in 1 command?
###   cvs -d:pserver:anonymous-at-cvs.EMC.sourceforge.net:/cvsroot -z9 co
-D 2001-12-16 cvs

##### the following grabs a missing file from an old cvs 'release'
##### it should not hurt to execute this even after the repos is fixed

cvs -d:pserver:anonymous-at-cvs.EMC.sourceforge.net:/cvsroot/emc co -D
2001-01-17  rcslib/src/cms/ttyintf.hh

#### fix an issue with EMC_TASK_PLAN_OPEN in emctaskmain.cc
#### rename(cp) the original to something we can remember !!! like
'originalfilename.was'
#### (It opens the .ngc in tkemc window but emctaskmain has issues wit
same
#### I saw something about /tmp/post-post/post-post(redundancy: see
redundancy)

#>/tmp/post_post/post_post programs/cds.ngc outfile.nc
#>sh: /tmp/post_post/post_post: No such file or directory
#>emctask.cc 245: rs274ngc_error: Unable to open file
#>Unable to open file
#>rs274ngc_stack:          - rs274ngc_open
#>emcTaskPlanOpen(programs/cds.ngc) returned 170
#>can't open programs/cds.ngc
#>emctaskmain.cc 1994: error executing command 506:EMC_TASK_PLAN_OPEN
#>error: can't open programs/cds.ngc


##### use your favorite editor (my example is below roughly)

cp emc/src/emctask/emctask.cc emc/src/emctask/emctask.cc.was

vi emc/src/emctask/emctask.cc

#--(type '332<down arrow> to jump down to 333rd line or search('/') for
'outfile.nc')
#--(edit line to read)
#--sprintf(cmdline,"cp  %s outfile.nc",file);

##### the above line without the "#--" in the front of sprintf
##### I just guessed by the output that a cp of the original .ngc file
##### to /tmp/outfile.nc was what was supposed to happen
##### cat might have been more correct
##### I am not a "c" ist, this might work for the wrong reason
##### It took about 3-4 tries for me to get something to work
##### GetRegularExPression is a lifesaver (grep -rn outfile.nc *)

##### optional
##### diff -p(?) emc/src/emctask/emctask.cc
emc/src/emctask/emctask.cc.was >/usr/src/emc-cvs.1.12-16/emctask.cc.diff

##### do I have this backwards ?????

#### I have not looked into why I need a .a file on an ELF system
but....
#### I'm hoping this is just a 'sed' thingy (only been here a week...)
#### There is no symbolic link to the .a libtclx file (on my RH6.1
install)

ln -s /usr/lib/libtclx8.0.4.a /usr/lib/libtclx.a

#### Now we can try to run the installation/compile
#### the first step is to get the script that does everything into place

#### I call it "inst" instead of install so I type ./inst instead of
./install

cp emc/scripts/generic/installfromsource inst

./inst

#> rtlinux version?

3.1

#>
#>#   The following errors and warnings  were logged during install.
#>#
#>emcmot.c:635: warning: `positionInputDebounce' defined but not used
#>#
#>#
#>Some errors and most warnings can be ignored.
#>

##### I ignored this one, after my 1 try to fix made _lots_ of errors

cd emc
./sim.run
./emc.run

#### nuthin to it!
-------------------------------------------------------------------------------------

N'joy

Mr. F








Date Index | Thread Index | Back to archive index | Back to Mailing List Page

Problems or questions? Contact