我在嘗試編譯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