grotius-cnc / linuxcnc

LinuxCNC controls CNC machines. It can drive milling machines, lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more.
http://linuxcnc.org/
GNU General Public License v2.0
7 stars 3 forks source link

Compile error - missing gtk.h #8

Closed joco-nz closed 10 months ago

joco-nz commented 10 months ago

Compile dependency issue. Environment is configured and proven to compile standard linuxcnc from master. Output from cmake attached.

Issue: error with missing gtk.h

cmake_out.txt

grotius-cnc commented 10 months ago

https://askubuntu.com/questions/397432/fatal-error-gtk-gtk-h-no-such-file-or-directory-using-make

In our cmake we used the gtk2 directory "usr/include/gtk-2.0" to compile classicladder for example.

I suggest this will sove it:

$ sudo apt-get install libgtk2.0-dev

joco-nz commented 10 months ago

That worked for the build. Suggest adding that to the dependency part of the make script like the other lib.

The build script finishes trying to run the axis_mm.ini sim. However that fails. I manually sourced the rip_environment script but also no joy.

tail_good_build.txt

trying_to_run.txt

grotius-cnc commented 10 months ago

Can you try to build linuxcnc the original way and start a axis gui? This would help in problem solving.

joco-nz commented 10 months ago

okay tested. This is what I did and what I found.

  1. went did a normal linuxcnc compile from src dir. Got the autogen and configure setup and the started with 'make clean' then 'make -j3'.

  2. source ../scripts/rip-environment

  3. run linuxcnc and chose axis mm. Works!

  4. make clean. cd to cmake. build_all. Buidls script tries to start axis, fails.

  5. cd back to src. make clean. make - j3

  6. cd back to cmake. build_all. Build completes and script successfully runs axis with new s-curve module.

  7. cd back to src. make clean.

  8. cd back to cmake. build_all (fails to run axis as expected). Then manually run linuxcnc from command line and select axis_mm. Error with text attached. error.txt

grotius-cnc commented 10 months ago

Thanks Joco for your research.

Compile error solved in build script, changed build system to build first lcnc original. Then overwriting the build with cmake.