Re: Linphone
Hello Guix! >> At this point for linphoneqt a.k.a linphone-desktop, I am facing following >> issues. >> >> When I build *without* `-DENABLE_DBUS=YES`and run the program, I get: >> >> QSocketNotifier: Socket notifiers cannot be enabled or disabled from another >> thread >> QMutex: destroying locked mutex >> >> When I build *with* `-DENABLE_DBUS=YES` and run the program, I get: >> >> Segmentation Fault (Core Dumped) >> >> I think the following patch is relevant, but when I use it, doesn't get >> successfully patched during >> the build. >> >> https://gitlab.linphone.org/BC/public/linphone-desktop/commit/9cf08623e3092fa19366e5c07fbe06898a59f0 >> 9.diff >> >> Any ideas on how to fix this situation? Package definitions are available at >> https://issues.guix.gnu.org/issue/40264. Latest revision for this program is >> '14-add-linphoneqt-v3'. > > So I fixed "QSocketNotifier" error in version 4 patch (14-add-linphoneqt-v4). > I still don't know > how to fix "QMutex" error. I have now fixed "QMutex" error in the version 6 patch (14-add-linphoneqt-v6). Regards, RG.
Re: Linphone
Hello Guix! LINPHONE WORKS! \o/ Now we have a working client. It is a Legacy GTK version (linphone/liblinphone). I am still working on Qt version (linphoneqt/linphone-desktop). Please test the client and let me know if there is any issue. The latest revision patch is "13-add-linphone-v3" at https://issues.guix.gnu.org/issue/40264. Thank you! Regards, RG.
Re: Linphone
Hello Guix! > At this point for linphoneqt a.k.a linphone-desktop, I am facing following > issues. > > When I build *without* `-DENABLE_DBUS=YES`and run the program, I get: > > QSocketNotifier: Socket notifiers cannot be enabled or disabled from another > thread > QMutex: destroying locked mutex > > When I build *with* `-DENABLE_DBUS=YES` and run the program, I get: > > Segmentation Fault (Core Dumped) > > I think the following patch is relevant, but when I use it, doesn't get > successfully patched during > the build. > > https://gitlab.linphone.org/BC/public/linphone-desktop/commit/9cf08623e3092fa19366e5c07fbe06898a59f0 > 9.diff > > Any ideas on how to fix this situation? Package definitions are available at > https://issues.guix.gnu.org/issue/40264. Latest revision for this program is > '14-add-linphoneqt-v3'. So I fixed "QSocketNotifier" error in version 4 patch (14-add-linphoneqt-v4). I still don't know how to fix "QMutex" error. Regards, RG.
Re: Linphone
Hello Guix! At this point for linphoneqt a.k.a linphone-desktop, I am facing following issues. When I build *without* `-DENABLE_DBUS=YES`and run the program, I get: QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread QMutex: destroying locked mutex When I build *with* `-DENABLE_DBUS=YES` and run the program, I get: Segmentation Fault (Core Dumped) I think the following patch is relevant, but when I use it, doesn't get successfully patched during the build. https://gitlab.linphone.org/BC/public/linphone-desktop/commit/9cf08623e3092fa19366e5c07fbe06898a59f039.diff Any ideas on how to fix this situation? Package definitions are available at https://issues.guix.gnu.org/issue/40264. Latest revision for this program is '14-add-linphoneqt-v3'. Thank you! Regards, RG.
Re: Linphone
Hello Guix! I have finished packaging all the linphone project's packages. \o/ PATCH: https://issues.guix.gnu.org/issue/40264 SOURCE: https://cloud.disroot.org/f/94900047 There will be no new patches and only revision patches. :-) Regards, RG.
Re: Linphone
Maxim and Ricardo! >>> Did Ricardo's suggestion help? I'm interested in Linphone on Guix! The >>> more VoIP options we have on the table in the times we're in, the better >>> :-). If you have more issues, do reach out, and I'll see if I can lend a >>> hand. >> >> Danny's idea fixed it. It was a typo inside the source code. >> >> Sure, I will keep you posted. I have started to send my Linphone patches >> (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40264). I will ping you if I >> gett stuck with >> something. :-) >>> I ran into trouble with belle-sip. Would you be able to help with >>> that? I have attached the package definition of belle-sip, along with >>> libantlr3c patch, with this email. >> >> You forgot to tell us what the trouble is. > > Sorry about that, I was not sure how to describe what I saw. There was > multiple red error messages > during the build. They were related to some kind of parsing. Here is the > build log > https://bin.disroot.org/?8c6d055dbf3a35fe#CGYyfsJeSVA6NJTsqcVXiTf8jtHdbJhpJmTXwKeKFgTP I fixed the issue. I had to make antlr3-3.3 variable public and use it. :-) Regards, RG.
Re: Linphone
Hi Ricardo! >> Did Ricardo's suggestion help? I'm interested in Linphone on Guix! The >> more VoIP options we have on the table in the times we're in, the better >> :-). If you have more issues, do reach out, and I'll see if I can lend a >> hand. >>> Danny's idea fixed it. It was a typo inside the source code. >>> >>> Sure, I will keep you posted. I have started to send my Linphone patches >>> (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40264). I will ping you if I >>> gett stuck with >>> something. :-) >> >> I ran into trouble with belle-sip. Would you be able to help with >> that? I have attached the package definition of belle-sip, along with >> libantlr3c patch, with this email. > > You forgot to tell us what the trouble is. Sorry about that, I was not sure how to describe what I saw. There was multiple red error messages during the build. They were related to some kind of parsing. Here is the build log https://bin.disroot.org/?8c6d055dbf3a35fe#CGYyfsJeSVA6NJTsqcVXiTf8jtHdbJhpJmTXwKeKFgTP Regards, RG.
Re: Linphone
Raghav Gururajan writes: > Hi Maxim! > >>> Did Ricardo's suggestion help? I'm interested in Linphone on Guix! The >>> more VoIP options we have on the table in the times we're in, the better >>> :-). If you have more issues, do reach out, and I'll see if I can lend a >>> hand. >> >> Danny's idea fixed it. It was a typo inside the source code. >> >> Sure, I will keep you posted. I have started to send my Linphone patches >> (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40264). I will ping you if I >> gett stuck with >> something. :-) > > I ran into trouble with belle-sip. Would you be able to help with > that? I have attached the package definition of belle-sip, along with > libantlr3c patch, with this email. You forgot to tell us what the trouble is. -- Ricardo
Re: Linphone
Hi Maxim! >> Did Ricardo's suggestion help? I'm interested in Linphone on Guix! The >> more VoIP options we have on the table in the times we're in, the better >> :-). If you have more issues, do reach out, and I'll see if I can lend a >> hand. > > Danny's idea fixed it. It was a typo inside the source code. > > Sure, I will keep you posted. I have started to send my Linphone patches > (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40264). I will ping you if I > gett stuck with > something. :-) I ran into trouble with belle-sip. Would you be able to help with that? I have attached the package definition of belle-sip, along with libantlr3c patch, with this email. Regards, RG. belle-sip.scm Description: Binary data libantlr3c.patch Description: Binary data
Re: Linphone
Hi Maxim! > Did Ricardo's suggestion help? I'm interested in Linphone on Guix! The > more VoIP options we have on the table in the times we're in, the better > :-). If you have more issues, do reach out, and I'll see if I can lend a > hand. Danny's idea fixed it. It was a typo inside the source code. Sure, I will keep you posted. I have started to send my Linphone patches (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40264). I will ping you if I gett stuck with something. :-) > Thank you for working on it! My pleasure :-) Regards, RG.
Re: Linphone
So I was able to fix all the "Qt[...].cmake not found error by adding required inputs. But during build I get lot of errors related to Qt. I am not able to understand what those are. BUILD LOG: https://bin.disroot.org/?79c1cc2131f7235f#HHS3xWeLCKd98L1fqZB6xEwnkPQWqyJXpoemhwppzRNV NEW DIFF: https://bin.disroot.org/?5c92968202a11fe5#5TrosGgDg5i5ZPve4VXr452wTrNHXaiHo146uc7gzZXP
Re: Linphone
Hi Danny! > I don't know. It sounds like the versions of the linphone modules are not > compatible. > Please ask upstream about it (for example file a bug report with them). It appears half of the errors were related to C++ standard. When I used ("gcc" ,gcc-5) as native-inputs, the number of errors, reduced to half.
Re: Linphone
Hi Raghav, > So I was able to fix all the "Qt[...].cmake not found error by adding > required inputs. But during build I get lot of errors related to Qt. I am not > able to understand what those are. They all contain some king of flags. I don't know. It sounds like the versions of the linphone modules are not compatible. Please ask upstream about it (for example file a bug report with them). pgpVGWfBYDWUl.pgp Description: OpenPGP digital signature
Re: Linphone
So I was able to fix all the "Qt[...].cmake not found error by adding required inputs. But during build I get lot of errors related to Qt. I am not able to understand what those are. They all contain some king of flags. Here is a new of my project. https://bin.disroot.org/?5c92968202a11fe5#5TrosGgDg5i5ZPve4VXr452wTrNHXaiHo146uc7gzZXP Regards, RG.
Re: Linphone
Hi Danny! > I tried > > (arguments > `(#:configure-flags > (list "-DENABLE_DBUS=YES" > "-DENABLE_UPDATE_CHECK=YES") > #:phases > (modify-phases %standard-phases > (add-after 'unpack 'patch > (lambda _ > (substitute* "CMakeLists.txt" > (("find_package[(]BcToolbox REQUIRED[)]") > "find_package(bctoolbox REQUIRED)") > (("find_package[(]Belcard REQUIRED[)]") > "find_package(belcard REQUIRED)")) > #t) > > in linphone-desktop's package description and the error message changed. Thanks so much. It did change the error :-). Btw, when I was researching code base, I came across this technique. Will it be relevant? ("BCTOOLBOX_INCLUDE_DIRS=-lbctoolbox" ,(string-append "BCTOOLBOX_CFLAGS=-I" (assoc-ref %build-inputs "bctoolbox") "/include"))
Re: Linphone
Hi Raghav, I tried (arguments `(#:configure-flags (list "-DENABLE_DBUS=YES" "-DENABLE_UPDATE_CHECK=YES") #:phases (modify-phases %standard-phases (add-after 'unpack 'patch (lambda _ (substitute* "CMakeLists.txt" (("find_package[(]BcToolbox REQUIRED[)]") "find_package(bctoolbox REQUIRED)") (("find_package[(]Belcard REQUIRED[)]") "find_package(belcard REQUIRED)")) #t) in linphone-desktop's package description and the error message changed. pgpiCJYa8MhrE.pgp Description: OpenPGP digital signature
Re: Linphone
Hi Ricardo! > Does bctoolbox install a pc file? bctoolbox source tarball does have bctoolbox.pc.in file. But adding pkg-config as native-inputs for linphone-desktop did not work. Should I be doing adding something else?
Re: Linphone
Raghav Gururajan writes: > Hi Ricardo! > >> Please try adding pkg-config to the native-inputs. > > I tried it, but didn't work. > >> If this still doesn’t work check the output of bctoolbox: does it >> install a pkg-config file? If it does: does the file mention any >> libraries that must be propagated? > > I believe the build script doesn't use pkg-config. :/ Does bctoolbox install a pc file? Cmake often uses pkg-config for finding packages. -- Ricardo
Re: Linphone
Hi Danny! > ... and I checked ./cmake/BcToolboxConfig.cmake.in in bctoolbox and that does > look okay. > > But they have a renamer in CMakeLists.txt and that checks > > set(EXPORT_TARGETS_NAME "bctoolbox") > > So probably you could specify that one. No idea why it exists and is different > from the original name. I see. How do I specify that in the package-definition of linnphone-desktop? I tried "-DEXPORT_TARGETS_NAME=bctoolbox" as configure-flag, but did not work. Regards, RG.
Re: Linphone
Hi Danny! > So I checked that directory and it indeed does not have that file. > > But it does have > /gnu/store/m92m6bg0xcl28djxg8h97sszf3gdl42r-bctoolbox-4.3.1/share/bctoolbox/cmake/bctoolboxConfig.cm > ke > -- note the different case of the name. Thanks so much for spotting this. > So I'd say either linphone-desktop or bctoolbox has the case wrong in some > cmake file. I believe it is linphone-desktop and not bctoolbox. Because other Belledone-Communications packages has bctoolboox as required dependency and they all work fine. So I think the issue is with linphone-desktop. > linphone-desktop has the following line: > > ./CMakeLists.txt: include("${EP_bctoolbox_CONFIG_DIR}/BcToolboxConfig.cmake") > > ... and that line is not going to work as-is. Yeah, that's true. Is there a way to patch this, with-in package definition? Could you help me with the syntax? Thank you! Regards, RG.
Re: Linphone
Hi Ricardo! > Please try adding pkg-config to the native-inputs. I tried it, but didn't work. > If this still doesn’t work check the output of bctoolbox: does it > install a pkg-config file? If it does: does the file mention any > libraries that must be propagated? I believe the build script doesn't use pkg-config. :/ Regards, RG.
Re: Linphone
On Wed, 25 Mar 2020 23:29:50 +0100 Danny Milosavljevic wrote: > linphone-desktop has the following line: > > ./CMakeLists.txt: include("${EP_bctoolbox_CONFIG_DIR}/BcToolboxConfig.cmake") > > ... and that line is not going to work as-is. ... and I checked ./cmake/BcToolboxConfig.cmake.in in bctoolbox and that does look okay. But they have a renamer in CMakeLists.txt and that checks set(EXPORT_TARGETS_NAME "bctoolbox") So probably you could specify that one. No idea why it exists and is different from the original name. It might make sense to ask them about it. pgpULPfaWl0Q7.pgp Description: OpenPGP digital signature
Re: Linphone
Hi Raghav, I get a nondeterministic build failure in libdecaf: cd /tmp/guix-build-libdecaf-1.0.drv-0/build/src/generator/curve25519 && /gnu/store/iaqmwj2290z5nnrk69bss6r0d9lpr8cs-python2-2.7.16/bin/python2.7 /tmp/guix-build-libdecaf-1.0.drv-0/source/src/generator/template.py --per=field --guard=p25519/f_field.h --item=p25519 -o /tmp/guix-build-libdecaf-1.0.drv-0/build/src/GENERATED/c/p25519/f_field.h /tmp/guix-build-libdecaf-1.0.drv-0/source/src/per_field/f_field.tmpl.h Traceback (most recent call last): File "/tmp/guix-build-libdecaf-1.0.drv-0/source/src/generator/template.py", line 92, in os.makedirs(os.path.dirname(outname)) File "/gnu/store/iaqmwj2290z5nnrk69bss6r0d9lpr8cs-python2-2.7.16/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 17] File exists: '/tmp/guix-build-libdecaf-1.0.drv-0/build/src/GENERATED/c/p25519' It might not support parallel builds properly. The next attempt did work (without changing anything). pgpDitYxC_Wx8.pgp Description: OpenPGP digital signature
Re: Linphone
Similar problem https://github.com/BelledonneCommunications/linphone-iphone/issues/399 pgpPMnaTjttuF.pgp Description: OpenPGP digital signature
Re: Linphone
Hi, I tried guix build -K linphone-desktop then waited until it told me the build directory (which was /tmp/guix-build-linux-libre-5.5.10.drv-0), then $ which strace $ cd /tmp/guix-build-linux-libre-5.5.10.drv-0 $ source environment-variables $ cd source $ .strace -f cmake . 2>&1 |grep -i bctoolbox |grep -i cmake It says, among other things, that it can't open /gnu/store/m92m6bg0xcl28djxg8h97sszf3gdl42r-bctoolbox-4.3.1/share/bctoolbox/cmake/BcToolboxConfig.cmake . So I checked that directory and it indeed does not have that file. But it does have /gnu/store/m92m6bg0xcl28djxg8h97sszf3gdl42r-bctoolbox-4.3.1/share/bctoolbox/cmake/bctoolboxConfig.cmake -- note the different case of the name. So I'd say either linphone-desktop or bctoolbox has the case wrong in some cmake file. linphone-desktop has the following line: ./CMakeLists.txt: include("${EP_bctoolbox_CONFIG_DIR}/BcToolboxConfig.cmake") ... and that line is not going to work as-is. pgpRPzD6X89QU.pgp Description: OpenPGP digital signature
Re: Linphone
Hi, > For past week, I have been working on packaging Linphone. I have > successfully packaged all the required dependencies, including > liblinphone. Here is the whole diff of my project: Very nice! > For the final package, linphone-desktop, I am having some trouble. Here is > the error I get: > > https://bin.disroot.org/?f9419716e5815c6c#DEtwGGt2mSM4UuYnDn7pd4BHvD5KWNXTWMYaHUCvidvA > > I tried (#configure-flags (list (string-append "-DBcToolbox_DIR=" (assoc-ref > %build-inputs "bctoolbox". But it did not work. The error says By not providing "FindBcToolbox.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "BcToolbox", but CMake did not find one. So there is no FindBcToolbox.cmake file, which would tell CMake how to find the package. There also is no pkg-config file (a file ending on .pc) — or perhaps there is but you are not using pkg-config. Please try adding pkg-config to the native-inputs. If this still doesn’t work check the output of bctoolbox: does it install a pkg-config file? If it does: does the file mention any libraries that must be propagated? -- Ricardo
Linphone
Hello Folks! For past week, I have been working on packaging Linphone. I have successfully packaged all the required dependencies, including liblinphone. Here is the whole diff of my project: https://bin.disroot.org/?2526ad4c662035f3#DRxApUqk2XhFf23dH2EPAQ9Xeqn1DBE5dkCxeBxoQ8QB For the final package, linphone-desktop, I am having some trouble. Here is the error I get: https://bin.disroot.org/?f9419716e5815c6c#DEtwGGt2mSM4UuYnDn7pd4BHvD5KWNXTWMYaHUCvidvA I tried (#configure-flags (list (string-append "-DBcToolbox_DIR=" (assoc-ref %build-inputs "bctoolbox". But it did not work. Any thoughts please? Regards, RG.