Reply
Thread Tools
Posts: 34 | Thanked: 15 times | Joined on Jan 2010
#1
Hi, everyone and happy new year!!!

I,ve been triying to compile WxWidgets (wxGTK) for maemo5/N900, following this link:

http://maemogeek.blogspot.com/2007/1...-on-maemo.html

So i open scratchbox and download wxWidgets trunk:

svn checkout http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk

I renamed the folder to wxwidgets-2.9

I configured it this way:
--prefix=/opt/usr so it create its folders at /opt/usr/include/wx-2.9 /opt/usr/lib
--bindir=/usr/bin so it create wx-config wx wx-2.9 at /usr/bin/
--enable-compat26 to have retro compatibility with wxwidgets 2.6
--with-hildon to be able to use Hildon framework for Nokia 770/800/810 (and hopelly maemo5/N900)

So here is my configuration string:
./configure --prefix=/opt/usr --bindir=/usr/bin --with-hildon --enable-compat26

Here is the result:
Configured wxWidgets 2.9.2 for `arm-unknown-linux-gnu'

Which GUI toolkit should wxWidgets use? GTK+ 2 with support for GTK+ printing
Should wxWidgets be compiled into single library? no
Should wxWidgets be linked as a shared library? yes
Should wxWidgets support Unicode? yes (using UTF-8)
What level of wxWidgets compatibility should be enabled?
wxWidgets 2.6 yes
wxWidgets 2.8 yes
Which libraries should wxWidgets use?
STL no
jpeg sys
png sys
regex builtin
tiff sys
zlib sys
expat sys
libmspack no
sdl no



Its compiles without any problem
And it install aguain with no errors:

------------------------------------------------------

The installation of wxWidgets is finished. On certain
platforms (e.g. Linux) you'll now have to run ldconfig
if you installed a shared library and also modify the
LD_LIBRARY_PATH (or equivalent) environment variable.

wxWidgets comes with no guarantees and doesn't claim
to be suitable for any purpose.

Read the wxWindows Licence on licencing conditions.

------------------------------------------------------


It creates folders:
/opt/usr/include/wx-2.9
/opt/usr/lib/wx

And a bunch of libraries at: /opt/usr/lib/libwx_*
And 1 executable and to sympolic linfiles wx-config wx wx-2.9 at /usr/bin/
wxrc-2.9
wxrc -> wxrc-2.9
wx-config -> /opt/usr/lib/wx/config/gtk2-unicode-2.9

I create some simbolic links from /opt... to /usr...
ln -s /opt/usr/lib/* /usr/lib/
ln -s /opt/usr/include/wx-2.9 /usr/include/wx-2.9


So every thing seems to be ok, then i try to compile and run the example in the link.
g++ hworld.cpp `wx-config --libs` `wx-config --cxxflags` -o hworld

Compiles without problems, but when i try to run it i get:

[sbox-FREMANTLE_ARMEL: /usr/src] > run-standalone.sh ./hworld
/usr/bin/run-standalone.sh: line 2: qemu:: command not found
/usr/bin/run-standalone.sh: line 3: Cannot: command not found
04:46:10 pm: Error: Unable to initialize Hildon program



Could someone please tell me what im doing wrong?
Thanxs in advance

I,ve found this:
According to the Faq page ARMEL target should only be used for cross compiling
So i tried to package it and run it at N900 but thougth it created the package it did install no files, i tried to package it with checkinstall and dh_tools, no luck so far.

Copying manually the files to N900 and running
run-standalone.sh ./hworld
gave me this output:
Error: Unable to initialize Hildon program

Thanxs again

Last edited by pinoverclock; 2011-01-03 at 18:24. Reason: Found another way round...
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#2
You can not run (gui?)programs with the
scratchbox armel target. It is only for
cross compiling. You need to test
the program on a real device.

(or you could try madde with qemu
to create a fremantle runtime -
http://wiki.maemo.org/MADDE/Device_runtime)


nicolai

Last edited by nicolai; 2011-01-04 at 10:19.
 
Posts: 34 | Thanked: 15 times | Joined on Jan 2010
#3
Yes, that's what i did, i copied libraries to n900 (because i havent been able to create a package neither with checkinstall or dh_tools) and try to execute the example program hworld (run-standalone.sh hworld), but it failed with:
Error: Unable to initialize Hildon program
 
Reply


 
Forum Jump


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