我在尝试编译GPS中的Ada代码时遇到了一些麻烦。当我将GPS包含在软件包中时,GPS缺失。我尝试使用apt-get进行安装,但确实如此,但错误仍然存在。接下来我可以做什么?我在x64 Ubuntu 12.04上运行GPS。使用glib.h在GPS(Ada IDE)中编译时出现的问题
这里的错误消息我:
gprbuild -d -P/media/LUISMUNYOZ/QUINTO/str/pendulum/pendulum_portatil/pendulum.gpr -XEXTRA=True -XOPENGL=True -XGNOME=True -XBUILD=Production print_barrier_sync.adb contrib.gpr:1:09: warning: no compiler specified for language "Xml", ignoring all its sources x86_64-pc-linux-gnu-gcc -c lw.c In file included from /media/LUISMUNYOZ/QUINTO/str/pendulum/pendulum_portatil/gtkada/testgtk/opengl/lw.c:20:0: /media/LUISMUNYOZ/QUINTO/str/pendulum/pendulum_portatil/gtkada/testgtk/opengl/lw.h:23:18: fatal error: glib.h: No such file or directory compilation terminated. gprbuild:* compilation phase failed [2012-11-21 13:24:47] process exited with status 4 (elapsed time: 02.06s) [2012-11-21 13:24:56] Could not locate executable on path: svn SVN error: […]
错误触发在这一点上:
#ifndef LW_H
#define LW_H
#include <glib.h> <------------------------------------------
#include <GL/gl.h>
#define LW_MAX_POINTS 200
#define LW_MAX_NAME_LEN 500
的文件是lw.h,这是在包GtkAda定义。我从GPS页面下载了它。
让我们看看你有麻烦的代码,你得到了错误的信息。在你这样做之前,我们无法帮助你。 –
@SimonWright对不起,我张贴从我的智能手机。我做了你所说的。感谢和问候。 – lluisu