New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem to compile a deb package of aseba #885

Closed
CyrilleBiot opened this Issue Oct 14, 2018 · 25 comments

Comments

Projects
None yet
4 participants
@CyrilleBiot
Copy link
Contributor

CyrilleBiot commented Oct 14, 2018

I'm trying to make a debian sid amd64 package for aseba (after reading compil.linux.md)
Works fine to make the deb package enki and dashel
but I've got a problem with the compilation since the source code of aseba

ragnarok@valhalla:~/compilation/aseba/aseba$ debuild -i -us -uc -b
....
[100%] Built target aseba-test-simulator
make[2] : on quitte le répertoire « /home/ragnarok/compilation/aseba/aseba/debian/build »
make[1] : on quitte le répertoire « /home/ragnarok/compilation/aseba/aseba/debian/build »
 fakeroot debian/rules binary
install -d debian/tmp/DEBIAN
install -d debian/tmp/usr/bin
install -d debian/tmp/usr/share/doc/aseba
install -d debian/tmp/usr/share/doc/aseba/example-code
install -d debian/tmp/usr/share/doc/aseba/example-scenarios
cp changelog.md debian/tmp/usr/share/doc/aseba/changelog
cp debian/changelog debian/tmp/usr/share/doc/aseba/changelog.debian
cp debian/copyright debian/tmp/usr/share/doc/aseba
cp targets/playground/examples/*.png debian/tmp/usr/share/doc/aseba/example-scenarios
cp: impossible d'évaluer 'targets/playground/examples/*.png': Aucun fichier ou dossier de ce type
make: *** [debian/rules:27: binary-arch] Error 1
dpkg-buildpackage: erreur: fakeroot debian/rules binary subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -rfakeroot -us -uc -ui -i -b failed

Effectively, if I look the dir I see it's empty

ragnarok@valhalla:~/compilation/aseba/aseba$ ls -R debian/tmp/
debian/tmp/:
DEBIAN  usr

debian/tmp/DEBIAN:

debian/tmp/usr:
bin  share

debian/tmp/usr/bin:

debian/tmp/usr/share:
doc

debian/tmp/usr/share/doc:
aseba

debian/tmp/usr/share/doc/aseba:
changelog  changelog.debian  copyright  example-code  example-scenarios

debian/tmp/usr/share/doc/aseba/example-code:

debian/tmp/usr/share/doc/aseba/example-scenarios:

But, I don't know how to solve this problem, any help is welcome

Thx ;)
(PS sorry for my english... i'm not a pro ;)

@stephanemagnenat

This comment has been minimized.

Copy link
Member

stephanemagnenat commented Oct 15, 2018

It seems the structure refactor introduced in 23366da broke the Debian packages. @cor3ntin could you please fix that as you change the structure?

@CyrilleBiot

This comment has been minimized.

Copy link
Contributor

CyrilleBiot commented Oct 15, 2018

OK thx for having to look at my problem.
I'll wait the fix and retry later
thank you very much

@cor3ntin

This comment has been minimized.

Copy link
Collaborator

cor3ntin commented Oct 16, 2018

@crustyourmind does it work if you try to build the package from the release-1.6x branch?

@CyrilleBiot

This comment has been minimized.

Copy link
Contributor

CyrilleBiot commented Oct 16, 2018

First, thx for the help ;)
No sorry it doesn't work with this branch. I used the 1.6.9, latest download from git

git clone --recursive https://github.com/aseba-community/aseba.git

cat VERSION.txt
#Version of aseba. Must be of the form <MAJOR>.<MINOR>.<PATCH>
1.6.9
@cor3ntin

This comment has been minimized.

Copy link
Collaborator

cor3ntin commented Oct 16, 2018

do git checkout release-1.6.x after the git clone.
Let me know if that helps

@CyrilleBiot

This comment has been minimized.

Copy link
Contributor

CyrilleBiot commented Oct 16, 2018

OK If I well understand
1/ I download the source from git
2/ I go to the aseba dir and I pass your command
3/ I rebuild the package

OK I'll do that during the lunch, I'm at work at this time and I haven't got my laptop

@stephanemagnenat

This comment has been minimized.

Copy link
Member

stephanemagnenat commented Oct 16, 2018

@cor3ntin the problem in master is that the debian/rules file has not been updated with the new paths introduced in 23366da. For example, targets/playground/examples/*.png should be changed to aseba/targets/playground/examples/*.png.

@cor3ntin

This comment has been minimized.

Copy link
Collaborator

cor3ntin commented Oct 16, 2018

@stephanemagnenat Should be easy enough to fix, I will take a look!

@stephanemagnenat

This comment has been minimized.

Copy link
Member

stephanemagnenat commented Oct 16, 2018

@cor3ntin thanks!

cor3ntin added a commit that referenced this issue Oct 19, 2018

stephanemagnenat added a commit that referenced this issue Oct 19, 2018

@CyrilleBiot

This comment has been minimized.

Copy link
Contributor

CyrilleBiot commented Oct 19, 2018

thx ;) I'll try to repack for SID aseba asap

@CyrilleBiot

This comment has been minimized.

Copy link
Contributor

CyrilleBiot commented Oct 19, 2018

Is it possible to re open this issues ?
An another problem appears.
Here a extract of the out of this command debuild -i -us -uc -b

cp debian/README.Debian debian/tmp/usr/share/doc/aseba/
dpkg-shlibdeps debian/tmp/usr/bin/*
dpkg-shlibdeps: avertissement: cannot find library liblibavahi.so needed by debian/tmp/usr/bin/asebaplayground (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
dpkg-shlibdeps: avertissement: cannot find library liblibavahi.so needed by debian/tmp/usr/bin/rendervplblocks (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
dpkg-shlibdeps: avertissement: cannot find library liblibavahi.so needed by debian/tmp/usr/bin/asebastudio (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
dpkg-shlibdeps: avertissement: cannot find library liblibavahi.so needed by debian/tmp/usr/bin/asebahttp (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')
dpkg-shlibdeps: avertissement: cannot find library liblibavahi.so needed by debian/tmp/usr/bin/asebaswitch (ELF format: 'elf64-x86-64' abi: '0201003e00000000'; RPATH: '')

cannot find library liblibavahi.so -> I think there is a path name problem ( missing slash)

So I've got a aseba.deb file, but don't work...

Sorry for the trouble...

@stephanemagnenat

This comment has been minimized.

Copy link
Member

stephanemagnenat commented Oct 20, 2018

Issue re-opened. Here on Ubuntu 18.04 there is no liblibavahi.so (this name looks broken anyway). There are libavahi-MODULE.so.

@cor3ntin it looks like file CMakeModules/zeroconf.cmake has something broken in lines 8-11. Maybe we should force this library to be static, and also name it something like avahicompat in the CMake file. Could you please have a look?

@cor3ntin

This comment has been minimized.

Copy link
Collaborator

cor3ntin commented Oct 20, 2018

@stephanemagnenat I'm rather busy in the coming weeks, so I can't guarantee I'll have the time to really look at it.
A quick solution may be to add -DBUILD_SHARED_LIBS=OFF to `rules. Which is what I do at mobsya, make things much simpler for everyone.
What do you think?

@CyrilleBiot

This comment has been minimized.

Copy link
Contributor

CyrilleBiot commented Oct 20, 2018

Hi
I've modified the file debian/rule with the build option -DBUILD_SHARED_LIBS=OFF
The compilation works fine and a aseba-XX-.deb package is well created.
The installation of this package runs fine.
But asebastudio VPL crashes when we clic on an action button...

stephanemagnenat added a commit that referenced this issue Oct 21, 2018

rules
Fix the liblibavahi.so problem in debian package
( Problem to compile a deb package of aseba #885 )
@stephanemagnenat

This comment has been minimized.

Copy link
Member

stephanemagnenat commented Oct 21, 2018

thanks @cor3ntin for the suggestion and @crustyourmind for the patch.

@crustyourmind could the crash be similat to #884? @cor3ntin did you experience similar problem on your side?

@cor3ntin

This comment has been minimized.

Copy link
Collaborator

cor3ntin commented Oct 21, 2018

@stephanemagnenat no sorry - some spurious issues with tab creation thought, might be related, but probably not Mobsya/aseba@c7d7a9b

I'm in the process of modifying studio / vpl rather heavily though. if I notice crashes with back-portable fixes, I will let you know!

@CyrilleBiot

This comment has been minimized.

Copy link
Contributor

CyrilleBiot commented Oct 24, 2018

Hello
Sorry for the delay but I think something had changed on the git (no more compile.Linux.md but a aseba/docs/en/development/building.rst file).
So I've rebuild the totality of the git and the build works fine. No problem. But if I'll run asestudio, always the same error when I click on a image on the right.
I 've got this error on my term

$ /home/ragnarok/compilation/git/aseba/build/bin/asebastudio 
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
terminate called after throwing an instance of 'QUnhandledException'
  what():  std::exception
Abandon

@CyrilleBiot

This comment has been minimized.

Copy link
Contributor

CyrilleBiot commented Oct 24, 2018

A another space thing : in the main windows of asebastudio of the building, there is no more the Blocky mode ?

@CyrilleBiot

This comment has been minimized.

Copy link
Contributor

CyrilleBiot commented Oct 25, 2018

OK for the disappearing of blockly module. I've read in the reason in a another thread issue. Personally I found well that alls programs groups together ...

@CyrilleBiot

This comment has been minimized.

Copy link
Contributor

CyrilleBiot commented Oct 25, 2018

Hi I just finished to compile aseba under Linux mint 18 amd 64 better than debian SID
No problem of compilation. All executables files are in

ls /home/libres09/git/aseba/build/bin/
asebabotspeak   asebaeventlogger  asebamassloader  aseba-qt-gui  asebatargetadvertise       aseba-test-invalid-utf8   thymioupgrader  asebachallenge  asebaexec         asebamedulla     asebarec      asebatargetlist-dashelhub  aseba-test-msg            thymiovpl asebacmd        asebahttp         asebaplay        asebashell    asebatargetlist-qt         aseba-test-natives-count  thymiownetconfig asebadummynode  asebahttp2        asebaplayground  asebastudio   asebatargetlist-thread     aseba-test-simulator      thymiownetconfig-cli  asebadump       asebajoy          aseba-qt-dbus    asebaswitch   asebatest                  rendervplblocks           tst_compiler_utf8

And under mint 18 , aseba studio doesn't crash

@mbonani

This comment has been minimized.

Copy link
Member

mbonani commented Oct 25, 2018

normally blocky disapear only for OSx and windows should be there in Linux base system

@CyrilleBiot

This comment has been minimized.

Copy link
Contributor

CyrilleBiot commented Oct 25, 2018

@mbonani : no blockly is not more present in the last compilation af asebastudio
It's not really a problem, I can install http://blockly4thymio.net//index.php/essayer.html
but it was easier ama to have all this programs in a one package

@CyrilleBiot

This comment has been minimized.

Copy link
Contributor

CyrilleBiot commented Oct 26, 2018

So happy, I've found the bug ;)
I set an additional locate in /etc/locale.gen
My file contained only fr_FR.UTF-8 UTF-8.
I've added en_US. UTF-8 UTF-8 entry and regenerate the locale with the commande locale-gen
I've restarted asebastudio and no more crash.
Fix for me ;)

@CyrilleBiot

This comment has been minimized.

Copy link
Contributor

CyrilleBiot commented Oct 26, 2018

OK I think you can fix this thread. I've just finsihed to compil a debian package for debian SID amd64
You'll find it here : https://github.com/CyrilleBiot/aseba/tree/master/debian-packages
or here
https://www.cbiot.fr/aseba/
Thx for the help ;)

@stephanemagnenat

This comment has been minimized.

Copy link
Member

stephanemagnenat commented Oct 30, 2018

@CyrilleBiot I close the issue as you think it is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment