Reply
Thread Tools
Posts: 3 | Thanked: 0 times | Joined on Nov 2009
#1
Hello Friends, I am very new in Maemo development. I am trying to set up environment for that and trying to test simple program as shown in tutorial http://maemo.org/maemo_release_docum...00000000000000

I am running under x86 environment using following command: gcc -Wall -g gtk_helloworld-1.c \
`pkg-config --cflags gtk+-2.0` -o gtk_helloworld-1 \
`pkg-config --libs gtk+-2.0`

I am getting error as: /scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-linux-gnueabi/bin/ld: skipping incompatible //usr/lib/libgtk-x11-2.0.so when searching for -lgtk-x11-2.0
/scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lgtk-x11-2.0
collect2: ld returned 1 exit status

This working well under ARMEL environment but It's not working in x86.

So please help me.

Thank you
 
Posts: 3 | Thanked: 0 times | Joined on Nov 2009
#2
If I am running second time that same command then I am getting following error:
/scratchbox/login: line 230: 4926 Segmentation fault (core dumped) /scratchbox/sbin/chroot-uid /scratchbox/users/shalin /scratchbox/tools/bin/env - _SBOX_USER_GROUPNAME="$_SBOX_USER_GROUPNAME" _SBOX_DIR="$SBOX_PATH" PATH="$PATH" SBOX_REDIRECT_FROM_DIRS="$SBOX_REDIRECT_FROM_DIRS" SBOX_REDIRECT_TO_DIRS="$SBOX_REDIRECT_TO_DIRS" SBOX_PRELOAD="$SBOX_PRELOAD" HOME="$HOME" USER="$USER" TERM="$TERM" LOGNAME="$LOGNAME" _SBOX_RESTART_FILE="$_SBOX_RESTART_FILE" /scratchbox/tools/bin/bash -l
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#3
Your command is in the wrong order to be parsed correctly.

Try this:

gcc -Wall -g gtk_helloworld-1.c \
`pkg-config --cflags --libs gtk+-2.0` \
-o gtk_helloworld-1
 
Posts: 3 | Thanked: 0 times | Joined on Nov 2009
#4
Originally Posted by lardman View Post
Your command is in the wrong order to be parsed correctly.

Try this:

gcc -Wall -g gtk_helloworld-1.c \
`pkg-config --cflags --libs gtk+-2.0` \
-o gtk_helloworld-1
Hi lardman, This command isn't working. It's showing same behavior.
 
Posts: 8 | Thanked: 0 times | Joined on Nov 2009
#5
maybe bad sdk installation?
why it uses ARM compiler for X86 target?
try to reinstall sdk, using "maemo-sdk-install-wizard_5.0.py" script from forum.nokia.com


update:
sorry, don't mention "diablo"

Last edited by mailwl; 2009-11-30 at 22:19.
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:38.