Boost Python Error
- Firehunter
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 1
02 Jan 2021 16:31 #193853
by Firehunter
Boost Python Error was created by Firehunter
I'm having a LOT of trouble trying to install a development version of LinuxCNC. I just wanted to change some things of the gmoccapy interface. Finally got glade-3 working, but I still get the error that the gladevcp catalog is missing. I understood that I need the RIP version of LinuxCNC. I followed all the steps, installed all dependencies, made some symlinks for the python boost files. But when I execute "make" in the linuxcnc-dev/src folder, it stops with the following error:
Linking milltask
g++ -o ../bin/milltask objects/emc/motion/emcmotglb.o objects/emc/task/emctask.o objects/emc/task/emccanon.o objects/emc/task/emctaskmain.o objects/emc/motion/usrmotintf.o objects/emc/motion/emcmotutil.o objects/emc/task/taskintf.o objects/emc/motion/dbuf.o objects/emc/motion/stashf.o objects/emc/rs274ngc/tool_parse.o objects/emc/task/taskmodule.o objects/emc/task/taskclass.o objects/emc/task/backtrace.o ../lib/librs274.so.0 ../lib/liblinuxcnc.a ../lib/libnml.so.0 ../lib/liblinuxcncini.so.0 ../lib/libposemath.so.0 ../lib/liblinuxcnchal.so.0 ../lib/libpyplugin.so.0 -L/home/lathe/linuxcnc-dev/lib -Wl,-rpath,/home/lathe/linuxcnc-dev/lib -lboost_python -lpython2.7
/usr/bin/ld: ../lib/libpyplugin.so.0: undefined reference to `boost::python::exec(char const*, boost::python::api::object, boost::python::api::object)'
collect2: error: ld returned 1 exit status
make: *** [emc/task/Submakefile:35: ../bin/milltask] Error 1
The OS I'm using is Linux HB575CNC 4.9.0-13-rt-amd64 #1 SMP PREEMPT RT Debian 4.9.228-1 (2020-07-05) x86_64 x86_64 x86_64 GNU/Linux.
Linking milltask
g++ -o ../bin/milltask objects/emc/motion/emcmotglb.o objects/emc/task/emctask.o objects/emc/task/emccanon.o objects/emc/task/emctaskmain.o objects/emc/motion/usrmotintf.o objects/emc/motion/emcmotutil.o objects/emc/task/taskintf.o objects/emc/motion/dbuf.o objects/emc/motion/stashf.o objects/emc/rs274ngc/tool_parse.o objects/emc/task/taskmodule.o objects/emc/task/taskclass.o objects/emc/task/backtrace.o ../lib/librs274.so.0 ../lib/liblinuxcnc.a ../lib/libnml.so.0 ../lib/liblinuxcncini.so.0 ../lib/libposemath.so.0 ../lib/liblinuxcnchal.so.0 ../lib/libpyplugin.so.0 -L/home/lathe/linuxcnc-dev/lib -Wl,-rpath,/home/lathe/linuxcnc-dev/lib -lboost_python -lpython2.7
/usr/bin/ld: ../lib/libpyplugin.so.0: undefined reference to `boost::python::exec(char const*, boost::python::api::object, boost::python::api::object)'
collect2: error: ld returned 1 exit status
make: *** [emc/task/Submakefile:35: ../bin/milltask] Error 1
The OS I'm using is Linux HB575CNC 4.9.0-13-rt-amd64 #1 SMP PREEMPT RT Debian 4.9.228-1 (2020-07-05) x86_64 x86_64 x86_64 GNU/Linux.
Please Log in or Create an account to join the conversation.
02 Jan 2021 19:28 #193879
by cmorley
Replied by cmorley on topic Boost Python Error
You don;t need development version of linuxcnc to use GLADE.
You need to direct GLADE to search in the right place to find the catalog.
You also need to use an old GTK2 version of glade
For GLADE to find the catalog one must either put a link in usr/share/glade3/catalogs to point to linuxcnc's catalog XML
or to run in terminal, export an environmental variable that points to it:
GLADE_CATALOG_PATH=/home/chris/emc/lib/python/gladevcp
export GLADE_CATALOG_PATH
You might need to export the python path too
PYTHONPATH=/home/chris/emc-dev/lib/python
(obviously your path would be different expecially if you are using an installed version.)
As far as your actual question - I'd need more info on what you did and what version of Debian and how you got linuxcnc.
Chris
You need to direct GLADE to search in the right place to find the catalog.
You also need to use an old GTK2 version of glade
For GLADE to find the catalog one must either put a link in usr/share/glade3/catalogs to point to linuxcnc's catalog XML
or to run in terminal, export an environmental variable that points to it:
GLADE_CATALOG_PATH=/home/chris/emc/lib/python/gladevcp
export GLADE_CATALOG_PATH
You might need to export the python path too
PYTHONPATH=/home/chris/emc-dev/lib/python
(obviously your path would be different expecially if you are using an installed version.)
As far as your actual question - I'd need more info on what you did and what version of Debian and how you got linuxcnc.
Chris
Please Log in or Create an account to join the conversation.
Time to create page: 0.100 seconds