Don't ask me exactly why, but with these changes I now seem to be able
to build on 64-bit Ubuntu 11.10:


anders@anders-i7:~/Desktop/emc2-dev$ git diff
diff --git a/src/emc/sai/Submakefile b/src/emc/sai/Submakefile
index 5edf0d9..d5e6a7d 100644
--- a/src/emc/sai/Submakefile
+++ b/src/emc/sai/Submakefile
@@ -7,6 +7,6 @@ USERSRCS += $(SAISRCS)
 # cludge around linking issue in taskclass
 $(call TOOBJSDEPS,$(SAISRCS)) : EXTRAFLAGS=-Dinterp_new=interp
 ../bin/rs274: $(call TOOBJS, $(SAISRCS)) ../lib/librs274.so.0
../lib/libemc.a ../lib/libnml.so.0 \
-       ../lib/libemchal.so.0
+       ../lib/libemchal.so.0 ../lib/libemcini.so.0 ../lib/libpyplugin.so.0
        $(ECHO) Linking $(notdir $@)
-       $(Q)$(CXX) $(LDFLAGS) -o $@ $^ $(ULFLAGS) -l$(LIBPYTHON)
+       $(Q)$(CXX) $(LDFLAGS) -o $@ $^ $(ULFLAGS) $(BOOST_PYTHON_LIBS)
-l$(LIBPYTHON)
diff --git a/src/emc/task/Submakefile b/src/emc/task/Submakefile
index d74bc44..330647d 100644
--- a/src/emc/task/Submakefile
+++ b/src/emc/task/Submakefile
@@ -29,9 +29,9 @@ USERSRCS += $(MILLTASKSRCS)

 #LDFLAGS +=

-../bin/milltask: $(call TOOBJS, $(MILLTASKSRCS)) ../lib/librs274.so.0
../lib/libemc.a ../lib/libnml.
+../bin/milltask: $(call TOOBJS, $(MILLTASKSRCS)) ../lib/librs274.so.0
../lib/libemc.a ../lib/libnml.


        $(ECHO) Linking $(notdir $@)
-       $(CXX) $(LDFLAGS) -o $@ $^
+       $(CXX) -o $@ $^ $(LDFLAGS) $(BOOST_PYTHON_LIBS) -l$(LIBPYTHON)
 TARGETS += ../bin/milltask
diff --git a/src/hal/user_comps/Submakefile b/src/hal/user_comps/Submakefile
index c375acf..4e7b278 100644
--- a/src/hal/user_comps/Submakefile
+++ b/src/hal/user_comps/Submakefile
@@ -18,7 +18,7 @@ USERSRCS += $(MODBUSSRCS)

 ../bin/gs2_vfd: $(call TOOBJS, $(MODBUSSRCS)) ../lib/libemchal.so.0
        $(ECHO) Linking $(notdir $@)
-       $(Q)$(CC) $(LDFLAGS) $(MODBUSLDFLAGS) -o $@ $^
+       $(Q)$(CC) -o $@ $^ $(LDFLAGS) $(MODBUSLDFLAGS)
 TARGETS += ../bin/gs2_vfd

 ifeq ($(HIDRAW_H_USABLE),yes)



On Sat, Nov 19, 2011 at 8:21 PM, Anders Wallin
<anders.e.e.wal...@gmail.com> wrote:
> Hi all,
> I want a simulator-build for playing around with emc2 on 64-bit ubuntu 11.10.
> Following the instructions on the wiki I do:
> $ git clone git://git.linuxcnc.org/git/emc2.git emc2-dev
> $ cd emc2-dev
> $ cd debian
> $ ./configure sim
> $ cd ..
> $ dpkg-checkbuilddeps
>
> I've installed everything that dpkg-checkbuilddeps suggests, but it
> also suggests tk8.4 and tcl8.4, and installing those seem to create
> conflicts with tk8.5 and tcl8.5 which I already have. Then:
>
> $ cd src
> $ ./autogen.sh
> $ ./configure --enable-simulator
> $ make
>
> and I get linking errors:
> Linking gs2_vfd
> objects/hal/user_comps/modbus.o: In function `modbus_connect_rtu':
> /emc2-dev/src/hal/user_comps/modbus.c:945: undefined reference to `g_print'
>
>
> I looked in the 'configure' script around line 4194 for how glib is detected.
> On my system I get
> $ pkg-config glib-2.0 --modversion
> 2.30.0
> pkg-config glib-2.0 --cflags
> -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
> $ pkg-config glib-2.0 --libs
> -lglib-2.0
>
>
> Help!
>
> Anders
>

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to