Reply
Thread Tools
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#101
OK, I have a fix for perl and dpkg-buildpackage
Code:
alias /scratchbox/tools/bin/perl="/usr/bin/perl"
guess it would work for any scratchbox tool.

Just add to <targetname.environment>

But now another problem:
Code:
dpkg-buildpackage: warning: invalid flag in DEB_BUILD_OPTIONS: maemo-launcher,thumb,vfp
Edit, well not a fix:
Code:
dpkg-buildpackage: warning: invalid flag in DEB_BUILD_OPTIONS: maemo-launcher,thumb,vfp
Backslash found where operator expected at /usr/share/perl5/Dpkg/BuildOptions.pm line 93, near "foreach (split(/\"
dpkg-buildpackage: source package exempi
dpkg-buildpackage: source version 2.2.0-1build1
dpkg-buildpackage: source changed by Colin Watson <cjwatson@ubuntu.com>
dpkg-buildpackage: host architecture armel
 dpkg-source --before-build exempi-2.2.0
Backslash found where operator expected at /usr/share/perl5/Dpkg/BuildOptions.pm line 93, near "foreach (split(/\"
Backslash found where operator expected at /usr/share/perl5/Dpkg/BuildOptions.pm line 93, near "foreach (split(/\"
Possible unintended interpolation of @argv in string at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Possible unintended interpolation of @argv in string at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Possible unintended interpolation of @tar_ignore in string at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Variable "$copy" is not imported at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
    (Did you mean &copy instead?)
Variable "$copy" is not imported at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
    (Did you mean &copy instead?)
Variable "$copy" is not imported at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 449.
    (Did you mean &copy instead?)
dpkg-source: error: source package format '3.0 (quilt)' is not supported: Global symbol "$difffh" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$tmpdiff" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$tmpdiff" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$diff" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$tmpdiff" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$diff" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$header_from" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$analysis" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$header_from" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$diff" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$analysis" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$diff" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$diff" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$diff" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$tmpdiff" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$analysis" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$diff" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$fn" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$analysis" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$fn" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$tmpdiff" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "@argv" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "@argv" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$include_binaries" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "@tar_ignore" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$sourcepackage" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$basenamerev" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$binaryfiles" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$unwanted_binaries" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$check_binary" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$fn" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$binaryfiles" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$fn" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$include_binaries" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$binaryfiles" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$fn" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$fn" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$unwanted_binaries" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$tar_ignore_glob" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$copy" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$copy" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 377.
Global symbol "$copy" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 449.
Global symbol "$self" requires explicit package name at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 450.
syntax error at /usr/share/perl5/Dpkg/Source/Package/V2.pm line 450, near "}) "
/usr/share/perl5/Dpkg/Source/Package/V2.pm has too many errors.
Compilation failed in require at (eval 15) line 3.
    ...propagated at /scratchbox/tools/lib/perl5/5.8.4/base.pm line 85.
BEGIN failed--compilation aborted at /usr/share/perl5/Dpkg/Source/Package/V3/quilt.pm line 24.
Compilation failed in require at (eval 14) line 1.

dpkg-buildpackage: error: dpkg-source --before-build exempi-2.2.0 gave error exit status 9
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2013-10-04 at 19:08.
 

The Following 5 Users Say Thank You to marmistrz For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#102
And maybe, we can just drop sb1 and support only sb2. Then the questions are: What would be the advantages/disadvantages? How can one manually setup the sb2 targets for waemo?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following 5 Users Say Thank You to marmistrz For This Useful Post:
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#103
Originally Posted by marmistrz View Post
And maybe, we can just drop sb1 and support only sb2. Then the questions are: What would be the advantages/disadvantages? How can one manually setup the sb2 targets for waemo?
When I started maemo development (2009) I used sb2, but everybody said it should not be used. Now I'm encountered several packages from debian which I can't compile because qemu on sb1 keeps crashing. (as we all know sb1 comes with modified qemu, maybe without source code, but sb2 uses systems own qemu).

Sb2 could be the next best thing. I don't even remember how sb2 is set up, but I think it should be as light as possible and then just install everything from my repo.
 

The Following 3 Users Say Thank You to AapoRantalainen For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#104
Originally Posted by AapoRantalainen View Post
When I started maemo development (2009) I used sb2, but everybody said it should not be used. Now I'm encountered several packages from debian which I can't compile because qemu on sb1 keeps crashing. (as we all know sb1 comes with modified qemu, maybe without source code, but sb2 uses systems own qemu).

Sb2 could be the next best thing. I don't even remember how sb2 is set up, but I think it should be as light as possible and then just install everything from my repo.
Do you use the maemo-sdk+?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following 3 Users Say Thank You to marmistrz For This Useful Post:
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#105
Out of interest, if not using Maemo SDK VM image, what host kernel version are you using? I've had issues with apps (mainly moc) crashing with all kernels I've tested > 3.8.10 up until 3.11.2, which now seems to be OK.
 

The Following 3 Users Say Thank You to Android_808 For This Useful Post:
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#106
Originally Posted by marmistrz View Post
Do you use the maemo-sdk+?
Not with sb1.

I found my old instructions for sb2, not sure will they work anymore: http://jammo.garage.maemo.org/crosscompiling.html (and/or is there some stupidity).

Originally Posted by Android_808 View Post
what host kernel version are you using? I've had issues with apps (mainly moc) crashing with all kernels I've tested > 3.8.10 up until 3.11.2, which now seems to be OK.
My host is running on kernel 3.2.0, which is default for Ubuntu 12.04. My another building computer is on kernel 3.8.0 (default for Ubuntu 13.04) and I haven't see these issues.
 

The Following 4 Users Say Thank You to AapoRantalainen For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#107
Originally Posted by AapoRantalainen View Post
Not with sb1.

I found my old instructions for sb2, not sure will they work anymore: http://jammo.garage.maemo.org/crosscompiling.html (and/or is there some stupidity).
So it's maemo-sdk+
Thanks a lot!
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following 4 Users Say Thank You to marmistrz For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#108
Originally Posted by AapoRantalainen View Post
I found my old instructions for sb2, not sure will they work anymore: http://jammo.garage.maemo.org/crosscompiling.html (and/or is there some stupidity
Only changed this step:
2A.
Code:
sudo maemo-sdk --mirror http://archive.debian.org/debian/ install tools lenny-2009-1
Remember to run sb2 with -e flag

How to add the thumb toolchain to sb2?

/edit: tried simply apt-getting but:
Code:
qemu: fatal: cp15 insn ee1d7f70

R00=400966c0 R01=42073ae8 R02=0000e370 R03=0d696914
R04=42073b08 R05=00000000 R06=000a1154 R07=00000000
R08=000124e0 R09=00000000 R10=40096000 R11=00000000
R12=00018fe4 R13=4006f2c0 R14=40084c78 R15=4007e890
PSR=20000010 --C- A usr32
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2013-10-15 at 16:25.
 

The Following 3 Users Say Thank You to marmistrz For This Useful Post:
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#109
Originally Posted by marmistrz View Post
Only changed this step:
2A.
Code:
sudo maemo-sdk --mirror http://archive.debian.org/debian/ install tools lenny-2009-1
I installed scratchbox2 -package from Ubuntu Precise and it didn't work at all. Then installed it from http://maemo-sdk.garage.maemo.org/download/host and got it working, at least compiling HelloWorld. I also have problem with apt-get, e.g. apt-get update.
 

The Following 3 Users Say Thank You to AapoRantalainen For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#110
to use sb2 from ubuntu repos you need to change config of waemo target to use qemu-arm instead of sb2-qemu-arm. (two appearances) Libc6 installs with this solution.

and touch /etc/ld.so.conf as its missing

Do I need to manually install libstdc++6-dev 4.7.2? Or can I use the one from the repos?

I installed it manually to be on the safe side, but now I cannot install libuuid1 - postinst fails. Can you please find out the whole process of installing the build environment
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2013-10-16 at 16:09.
 

The Following User Says Thank You to marmistrz For This Useful Post:
Reply


 
Forum Jump


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