compiling without xemc

More
26 Mar 2011 12:15 #8103 by david_r
Hi,

is it possible to compile EMC2 without xemc?

./configure --enable-run-in-place --enable-simulator --with-tkConfig=/usr/lib64/tkConfig.sh ... works OK

When trying to compile it complains:

Linking xemc
/usr/bin/ld: objects/emc/usr_intf/xemc.o: undefined reference to symbol 'XtAddCallback'
/usr/bin/ld: note: 'XtAddCallback' is defined in DSO /usr/lib64/libXt.so.6 so try adding it to the linker command line
/usr/lib64/libXt.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [../bin/xemc] Error 1

I don't need xemc, OS is Fedora 14.

Thanks,
David

Please Log in or Create an account to join the conversation.

More
28 Mar 2011 11:16 #8187 by andypugh
Replied by andypugh on topic Re:compiling without xemc
I suspect it it probably possible, but I am not sure how easy.
I found this discussion from back when it was introduced:
www.linuxcnc.org/irc/irc.freenode.net:66...devel/2006-04-16.txt
Perhaps it is time to accept that things have moved on since 2006.

You might try commenting out XEMC and TKEMC in the makefiles?

Please Log in or Create an account to join the conversation.

More
29 Mar 2011 07:23 #8245 by david_r
Replied by david_r on topic Re:compiling without xemc
Commenting xemc out helped, but there are other issues with other libraries now. I believe I'll have to take another approach.

David

Please Log in or Create an account to join the conversation.

More
29 Mar 2011 13:10 #8256 by alex_joni
Replied by alex_joni on topic Re:compiling without xemc
try adding '--without-x' to the configure line

Please Log in or Create an account to join the conversation.

More
29 Mar 2011 19:12 #8262 by david_r
Replied by david_r on topic Re:compiling without xemc
--without-x and commenting xemc out, both helped to move a bit further, but now it stops here:

/usr/bin/ld: objects/emc/sai/saicanon.o: undefined reference to symbol 'sqrt@@GLIBC_2.2.5'
/usr/bin/ld: note: 'sqrt@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status


On older versions of Fedora compiling went OK but on FC14 I have this problems. It seems that the problem is something to do with FC14 libraries.

Please Log in or Create an account to join the conversation.

More
22 Jun 2011 15:43 - 22 Jun 2011 15:55 #10772 by nosense
Replied by nosense on topic Re:compiling without xemc
I have same problem with compiling on testing release of Debian. It appears to be related with new gcc configurations in new distros. See lists.debian.org/debian-devel-announce/2011/02/msg00011.html and wiki.ubuntu.com/NattyNarwhal/ToolchainTransition. I was trying to fix affected source code, but was unsucessful (I am not very skilled coder). Compilation will probably fail on many other new distros including Ubuntu 11.04 and the compilation config files (e.g. Makefile) would need to get fixed.
Last edit: 22 Jun 2011 15:55 by nosense.

Please Log in or Create an account to join the conversation.

Time to create page: 1.053 seconds
Powered by Kunena Forum