![]() |
Re: Technology Preview: MADDE
Quote:
Code:
mad pkg-config --list-all |
Re: Technology Preview: MADDE
Quote:
If I enter a project and type the commad "mad pkg-config --cflags gtk+-2.0", the terminal shows Code:
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/freetype2 -DMAEMO_CHANGES |
Re: Technology Preview: MADDE
Quote:
|
Re: Technology Preview: MADDE
Quote:
Could you tell me how you handled the problem then? |
Re: Technology Preview: MADDE
Are you on Windows ?
|
Re: Technology Preview: MADDE
Quote:
|
Re: Technology Preview: MADDE
Just wanted to be sure.
Anyway unzip the files here to c:\windows\system32 and then try again to compile. |
Re: Technology Preview: MADDE
I unzip the file into system32, and now the pkg-config works, but I get another message:
Code:
Package gtk+-2.0 was not found in the pkg-config search path. |
Re: Technology Preview: MADDE
That's what I thought. You're using the windows pkg-config and not the one provided by MADDE.
But I can't figure why. Try to create a new QT project, maybe the .pro files are wrong configured. You can post them here if you want. |
Re: Technology Preview: MADDE
Here is my .pro file
Code:
TARGET = MadCamera |
Re: Technology Preview: MADDE
Nope that's correct.
Can't help you on this one. Sorry :( |
Re: Technology Preview: MADDE
thx anyway. I just want to write a program using the n900 camera to capture picture. any idea for this? best to have a solution on Windows, or I have to use Ubuntu Maemo5 SDK...
|
Re: Technology Preview: MADDE
I installed madde on windows 7. If the directory with project sources is not under /home/<username> qmake generates absolute paths for include dirs, like this:
-Id:/prog/MADDE/0.6.14/sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr/include/qt4/QtCore then g++ doesn't find the header files: error: QApplication: No such file or directory If the source is under /home/username/somename qmake generates relative paths for include dirs: -I../../../sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr/include/qt4/QtCore and everything compiles fine. How does qmake decide whether to generate relative or absolute paths? I guess if it had QT_INSTALL_HEADERS builtin set to /d/prog/MADDE/0.6.14/sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr/include/qt4 instead of d:/prog/MADDE/0.6.14/sysroots/fremantle-arm-sysroot-2.2009-51-1-qt453/usr/include/qt4 everything would work regardless of where the sources are located. Does anyone have any suggestions how to solve this problem? |
Re: Technology Preview: MADDE
nochnoy:
Absolute paths should work. We'll investigate the issue. |
Re: Technology Preview: MADDE
Till then, a temporary solution would to create a symbolic link using the mklink command on Windows :
/home/username/project <--> D:\Work\dev\maemo\project Open dos command : - goto the home repertory where you install MADDE - run the mklink command, it will create a new directory for you linking to your target (eq ls -s on Unix) - you can now put your files in your target rep Ex : Code:
cd C:\Logiciels\MADDE\0.6.14\home\Calvin |
Re: Technology Preview: MADDE
Quote:
In windows, most of the madde commands are run inside MSYS environment, but for tools not compiled for MSYS the environment is lost. qmake is such a tool. MADDE pkg-config is perl program; outside MSYS the system does not regognize it as such (and if did, would not have the expected environment set up). The solution is to make wrappers for commands that should be accessible outside MSYS. Currently we have 2 of these: mad.cmd and mad-admin.cmd. FIrst try could be as follows: Copy MADDE/0.6.14/wbin/mad.cmd as MADDE/0.6.14/madbin/pkg-config.cmd and edit it to run pkg-config perl program in MSYS environment. I'll try this. For more robust and efficient implementations (or ideas of those) are gladly accepted :) EDIT: pta0007: you could try editing MADDE\0.6.14\sysroots\fremantle-arm-sysroot-2.2009-51-1-qt453\usr\share\qt4\mkspecs/features/link_pkgconfig.prf and add 'mad' in front of 'pkg-config' command and see what happens. Naturally, this voids your warranty as we do not like hassling inside sysroot ;( |
Re: Technology Preview: MADDE
Quote:
Code:
TARGET = MadCamera |
Re: Technology Preview: MADDE
Thanks. mklink helps. Just a note, replacing d:/prog with /d/prog in qmake generated makefile doesn't solve the problem, so it wouldn't help if QT_INSTALL_HEADERS builtin were set to /d/prog/MADDE/0.6.14/sysroots/... as I thought it might help. Absolute paths are problematic for gcc/g++ either way
|
Re: Technology Preview: MADDE
Quote:
|
Re: Technology Preview: MADDE
Quote:
(i.e. without the first slash) (some chars capitalized to avoid smiley conversion) |
Re: Technology Preview: MADDE
Another question: I mount host filesystem to N900 runtime, then I
mad remote -r n900 shell and I can see the host files fine. Then I sudo to root as I need to run my app as root. However, root doesn't see the mounted filesystem. Is there a proper way to overcome this limitation?.. |
Re: Technology Preview: MADDE
Quote:
devrootsh yourprog <args> I couldn't test that, because I'm home, but I have feeling that this should work. |
Re: Technology Preview: MADDE
I'd guess devrootsh has the same problem...
there is fuse mount option which allows others to see the filesystem; maybe we'll tune those options on... -o allow_root to the end of .../utfs-client ... -command line on /home/developer/bin/remote-wrapper on N900 should do the job (then umount and remount) |
Re: Technology Preview: MADDE
Quote:
Code:
cd /templatesNow the absolute paths to MADDE sysroots should work. This is such a bug that needs to be tested early, so please anyone having the same problem test this. EDIT: unfortunate line split after 'www.iki.fi' above, combine by hand. |
Re: Technology Preview: MADDE
When I run it on my windows 7 64bit laptop I get an application error on sh.exe. The application was unable to start correctly (0xc0000142).
|
Re: Technology Preview: MADDE
Ok, I've got my MADDE to work. I can compile and package my first Qt application, and I'm even able to install it on my N900 by just running the .deb file. So far so good. I have a couple of issues though:
1. The application always gets the name 'Mad Qt example' in the list of applications on my device. In App. Manager, it shows up with the correct 'package' name. Where can I change this name? I've done a search in the whole MADDE directory, but I can't seem to find this 'Mad Qt example' anywhere for me to change it... 2. I can't get my icons to show. I have the following in my .pro file and I can see that the icons do appear in the folder indicated by the .path lines on my device, but still no icons to be seen in App. Manager or in the list of apps. Code:
INSTALLS += icon64Code:
icon48.path = /usr/local/share/icons/hicolor/48x48/apps |
Re: Technology Preview: MADDE
Quote:
XSBC-Maemo-Display-Name: <APP_DISPLAY_NAME> Quote:
XB-Maemo-Icon-26: Put a base64 encoded 48x48px image here. This means "uuencode -m icon.png icon.png > icon.png.en", then paste the output here, but do not forget to put a white space at the beginning of each line containing the icon-encoded text. (See http://wiki.maemo.org/User:Jebba/Package_Building_HOWTO) Cheers! |
Re: Technology Preview: MADDE
Quote:
Code:
mad base64 icon.png | sed 's/^/ /' > icon.png.en |
Re: Technology Preview: MADDE
Quote:
of this in bugzilla. I also have windows 7 64bit laptop available (just writing this text on in) and MADDE works fine.... This is home premium, what do you have ? Anyway, you can try right-click 'MADDE Terminal' icon and remove '-rxvt' from the command line in 'properties' window. |
Re: Technology Preview: MADDE
Quote:
Just entering this and then 'mad dpkg-buildpackage' should do a debian package which makes an icon visible in application list. However, If you see just a blue box then reboot might be required (I am not sure what is the current situation; I did one program which has blue icon but I screwed my icon install path...) If you run 'dpkg-deb -c myapp...deb' you should see the following files: Code:
...Code:
[Desktop Entry]wit real icon, or with blue box. |
Re: Technology Preview: MADDE
too,
Yes, the include files absolute path problem fixed. Thank you! |
Re: Technology Preview: MADDE
Appending -o allow_root to utfs_client command does help. Thank you again!
|
Re: Technology Preview: MADDE
About qmake and pkg-config on windows.
The following oneliner written to /madbin/pkg-config.cmd will do the trick: Code:
@env.exe PERL5LIB=/madlib/perl5 /madbin/pkg-config %* |
Re: Technology Preview: MADDE
Quote:
And the following fixed my issue with the application name: Code:
XSBC-Maemo-Display-Name: <APP_DISPLAY_NAME> |
Re: Technology Preview: MADDE
Hi,
I'm having a problem when installing my Qt app built and packaged with MADDE with a dependency to Phonon. I saw this post with the following solution. Quote:
My debian/control file now looks like this: Code:
Depends: libqt4-phonon (>= 4.5), ${shlibs:Depends}, ${misc:Depends}I've also tried without the (>= 4.5) but the result is the same. The message I get when I click the .deb file on the device is: Code:
Application detailsThanks for any pointers! |
Re: Technology Preview: MADDE
When it will be installed on the device with the app manager (in catalog extra-devel for example), the depending packages will be installed automatically.
dpkg -i doesn't do that. |
Re: Technology Preview: MADDE
I have manually copied the .deb file to my device and click on it in the File Manager. This launches the Application Manager, and that's where I have the issue. Sorry that I was not clear about that.
After reading about installing packages, I've now got Phonon installed and workng in my app, thanks. I realize that the missing package does not get installed if I just launch the .deb, it has to come from a repository. |
Re: Technology Preview: MADDE
Hi, firstly I have to say thank you. Madde is good app. Now to my question. Is there any way how install qr4.6 to madde? I founded this http://labs.trolltech.com/blogs/2010...-os-x-take-ii/, but there are bad links.THX for your replies.
|
Re: Technology Preview: MADDE
Quote:
Daniel |
Re: Technology Preview: MADDE
i can't read 20 pages in english, maybe my question was ask by someone, but tell me please, now to change font size in Madde-terminal on Windows? on my FullHD 18.4'' notebook screen the letters looks like a child ants
|
| All times are GMT. The time now is 11:43. |
vBulletin® Version 3.8.8