Re: [Emc-users] Compile genhexkins.c as a executable

2007-07-27 Thread Jeff Epler
My commandline was intended for the development version of emc2.  In
version 2.1, it appears that the posemath functions are in the library
'libnml'.  In the next version, the posemath functions are split out
into a separate library.

You also need to use g++, not gcc, to link this program in any case.  I
made a mistake when I showed gcc in my link line in the earlier message.
This should clear up the errors like:
 undefined reference to `__gxx_personality_v0'
 undefined reference to `operator new(unsigned int)'

You also missed the -DMAIN in some of your commandlines, which led
to the errors like
 undefined reference to `main'

Jeff

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Compile genhexkins.c as a executable

2007-07-27 Thread jros
El jue, 26-07-2007 a las 13:40 -0500, Ray Henry escribió:
 Hi Jeff
 
 I've got a hint.  Genhexkins is the name of a kinematics definition for
 the stepper powered cable hexapod that NIST built several years ago now.
 In the original form, the matrix supplied home position for the 6
 struts.  I know that several folk have modified that matrix for
 different strut lengths and angles between but do not know if those were
 committed to changes here.

Yes puting a #define GIVEN_KINEMATICS

Stewart platform geometric values can be controled.
The changes are there.

 
 I don't have a clue how the executable genhexkins.ko would function as a
 replacement for trivkins.ko or if it would be a direct replacement for
 the loadrt command that starts trivkins.
 
Right now we are loading the provided genhekins.ko, and doing a
simulation without problems in emc2

 Rayh
 
 
Thanks

Javier

 On Thu, 2007-07-26 at 13:14 -0500, Jeff Epler wrote:
  I found that the following flags allowed me to build a binary, but I
  don't know what to do with it:
  
  running from the emc2 src directory, 
  gcc -Wl,-rpath,/usr/local/jepler/src/emc2/lib -DMAIN -I../include \
  emc/kinematics/genhexkins.c -L../lib -lposemath
  at least the -Wl,-rpath,... argument will be different depending on
  your installation of emc.
  
  Jeff
  
  -
  This SF.net email is sponsored by: Splunk Inc.
  Still grepping through log files to find problems?  Stop.
  Now Search log events and configuration files using AJAX and a browser.
  Download your FREE copy of Splunk now   http://get.splunk.com/
  ___
  Emc-users mailing list
  Emc-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/emc-users
  
 
 
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now   http://get.splunk.com/
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Compile genhexkins.c as a executable

2007-07-26 Thread jros
Hello list!.

I see that there is a main(){} in genhexkins.c. I wonder how can I
compile it to a executable file.

I want to do some offline trials before trying within emc2.

Thanks

Javier

PD: I don't have any problem to compile whole emc2 from source, and the
module genhexkins.ko is generated. But I don't know how to do

gcc -o genhexkins genhexkins.c ... -I... -L... -l

I'm, using your ubuntu based live distribution.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Compile genhexkins.c as a executable

2007-07-26 Thread Ray Henry

Hi Jeff

I've got a hint.  Genhexkins is the name of a kinematics definition for
the stepper powered cable hexapod that NIST built several years ago now.
In the original form, the matrix supplied home position for the 6
struts.  I know that several folk have modified that matrix for
different strut lengths and angles between but do not know if those were
committed to changes here.

I don't have a clue how the executable genhexkins.ko would function as a
replacement for trivkins.ko or if it would be a direct replacement for
the loadrt command that starts trivkins.

Rayh


On Thu, 2007-07-26 at 13:14 -0500, Jeff Epler wrote:
 I found that the following flags allowed me to build a binary, but I
 don't know what to do with it:
 
 running from the emc2 src directory, 
 gcc -Wl,-rpath,/usr/local/jepler/src/emc2/lib -DMAIN -I../include \
 emc/kinematics/genhexkins.c -L../lib -lposemath
 at least the -Wl,-rpath,... argument will be different depending on
 your installation of emc.
 
 Jeff
 
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now   http://get.splunk.com/
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
 


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users