Welcome! Log In Create A New Profile

Advanced

repsnapper make error on Ubuntu 10.04

Posted by khalid.a.abdulla 
repsnapper make error on Ubuntu 10.04
December 04, 2011 03:59AM
Hi,

I have (or at least think I have) install all the dependencies; and the
./autogen.sh
appeared to run without reporting any problems and produced the Makefile.

However, when running make, which I did using
sudo make

I get the following errors, and no repsnapper executable is produced:

$ sudo make
make all-recursive
make[1]: Entering directory /home/khalid/Projects/repRap/repsnap2/repsnapper'
Making all in po
make[2]: Entering directory/home/khalid/Projects/repRap/repsnap2/repsnapper/po'
file=echo en_GB | sed 's,.*/,,'.gmo \
&& rm -f $file && /usr/bin/msgfmt -o $file en_GB.po
file=echo de_DE | sed 's,.*/,,'.gmo \
&& rm -f $file && /usr/bin/msgfmt -o $file de_DE.po
make[2]: Leaving directory /home/khalid/Projects/repRap/repsnap2/repsnapper/po'
make[2]: Entering directory/home/khalid/Projects/repRap/repsnap2/repsnapper'
CC libraries/libreprap/libreprap_la-comms.lo
CC libraries/libreprap/libreprap_la-fived.lo
CC libraries/libreprap/libreprap_la-serial.lo
CC libraries/libreprap/libreprap_la-tonokip.lo
CC libraries/libreprap/libreprap_la-util.lo
CCLD libreprap.la
CXX libraries/polylib/libpolylib_la-GeometryBase.lo
CXX libraries/polylib/libpolylib_la-Polygon2f.lo
CXXLD libpolylib.la
CXX src/repsnapper-model.o
CXX src/repsnapper-model2.o
CXX src/repsnapper-view.o
src/view.cpp: In member function ‘bool View::key_pressed_event(GdkEventKey)’:
src/view.cpp:582: error: ‘GDK_KEY_Tab’ was not declared in this scope
src/view.cpp:599: error: ‘GDK_KEY_Escape’ was not declared in this scope
src/view.cpp:605: error: ‘GDK_KEY_Delete’ was not declared in this scope
src/view.cpp:606: error: ‘GDK_KEY_KP_Delete’ was not declared in this scope
src/view.cpp:609: error: ‘GDK_KEY_Up’ was not declared in this scope
src/view.cpp:609: error: ‘GDK_KEY_KP_Up’ was not declared in this scope
src/view.cpp:611: error: ‘GDK_KEY_Down’ was not declared in this scope
src/view.cpp:611: error: ‘GDK_KEY_KP_Down’ was not declared in this scope
src/view.cpp:613: error: ‘GDK_KEY_Left’ was not declared in this scope
src/view.cpp:613: error: ‘GDK_KEY_KP_Left’ was not declared in this scope
src/view.cpp:615: error: ‘GDK_KEY_Right’ was not declared in this scope
src/view.cpp:615: error: ‘GDK_KEY_KP_Right’ was not declared in this scope
make[2]: ** [src/repsnapper-view.o] Error 1
make[2]: Leaving directory /home/khalid/Projects/repRap/repsnap2/repsnapper'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory/home/khalid/Projects/repRap/repsnap2/repsnapper'
make: *** [all] Error 2

I originally tried this on my 64-bit desktop, but have also tried it on my 32-bit laptop (both running Ubuntu 10.04) and got exactly the same error so I think I must be missing something in the compile or installation process.

I have tried googling and searching in this and other forums for the key terms in the error but not had any luck. Anyone had these error messages before or understand them?

Many thanks,

- Khalid
Re: repsnapper make error on Ubuntu 10.04
December 05, 2011 05:24AM
Where did you get the source from ? So we can try and reproduce your problem.

I have compiled and am using repsnapper on that very same Ubuntu 10.04 version, 64bits.
Re: repsnapper make error on Ubuntu 10.04
December 05, 2011 08:36AM
khalid.a.abdulla Wrote:
-------------------------------------------------------
> Hi,
>
> [...]
> CXX src/repsnapper-view.o
> src/view.cpp: In member function ‘bool
> View::key_pressed_event(GdkEventKey)’:
> src/view.cpp:582: error: ‘GDK_KEY_Tab’ was not
> declared in this scope[...]

Hi,

Same here on a Debian Squeeze with last git version.

Installed package concerning GTK+:
ii libgtk2.0-0 2.20.1-2 The GTK+ graphical user interface library
ii libgtk2.0-bin 2.20.1-2 The programs for the GTK+ graphical user interface library
ii libgtk2.0-common 2.20.1-2 Common files for the GTK+ graphical user interface library
ii libgtk2.0-dev 2.20.1-2 Development files for the GTK+ library

It seems GDK_KEY_* was introduced in the 2.22 release...

Still have to investigate.

regards,
Loïc
Sorry, only registered users may post in this forum.

Click here to login