unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Need help for updating Qt to 5.12 - cmake link issue
@ 2019-10-30 15:56 Hartmut Goebel
  2019-10-31 16:34 ` Efraim Flashner
  0 siblings, 1 reply; 3+ messages in thread
From: Hartmut Goebel @ 2019-10-30 15:56 UTC (permalink / raw)
  To: Guix-devel

Hi,

I'm stuck on updating QT to 5.12, which is q prerequisite for updating
KDE Framworks to a recent version.

For some of the packages - most of which seem to be rather new to Qt -
build fails since the linker does not find some libraries, e.g when
building qtgamepad:

g++: error: /gnu/store/…-qtgamepad-5.12.5/lib/libQt5Core.so: No such
file or directory

As you can see, this is libQt5core, but the linker want to load it from
the current packages output.

This kind of issues do not occur with most of the "older" packages. I
already tried to find some place to hook in - without success. Any hints?

Here is the package definition for the case one want to reproduce this.

(define-public qtgamepad
  (package (inherit qtsvg)
    (name "qtgamepad")
    (version "5.12.5")
    (source (origin
             (method url-fetch)
             (uri (string-append
"https://download.qt.io/official_releases/qt/"
                                 (version-major+minor version) "/" version
                                 "/submodules/" name "-everywhere-src-"
                                 version ".tar.xz"))
             (sha256
              (base32
               "0czdmmbjc6zpj213pwwgjh0h2awzmrgkqy5gl5a5vk7p8wfz126y"))))
    (arguments
     (substitute-keyword-arguments (package-arguments qtsvg)
       ((#:phases phases)
        `(modify-phases ,phases
           (add-after 'configure 'fail
             (lambda* (#:key outputs #:allow-other-keys)
               #t))))
       ((#:tests? _ #f) #f)))           ; TODO: Enable the tests
    (native-inputs
     `(("perl" ,perl)))
    (inputs
     `(("sdl2" ,sdl2)
       ("qtbase" ,qtbase)))
    (synopsis "x")
    (description "")))

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Need help for updating Qt to 5.12 - cmake link issue
  2019-10-30 15:56 Need help for updating Qt to 5.12 - cmake link issue Hartmut Goebel
@ 2019-10-31 16:34 ` Efraim Flashner
  2019-11-01  9:39   ` Hartmut Goebel
  0 siblings, 1 reply; 3+ messages in thread
From: Efraim Flashner @ 2019-10-31 16:34 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: Guix-devel

[-- Attachment #1: Type: text/plain, Size: 2900 bytes --]

On Wed, Oct 30, 2019 at 04:56:21PM +0100, Hartmut Goebel wrote:
> Hi,
> 
> I'm stuck on updating QT to 5.12, which is q prerequisite for updating
> KDE Framworks to a recent version.
> 

Qt is upgraded to 5.12 on staging :)

> For some of the packages - most of which seem to be rather new to Qt -
> build fails since the linker does not find some libraries, e.g when
> building qtgamepad:
> 

There's also qtwayland and 3 others.

> g++: error: /gnu/store/…-qtgamepad-5.12.5/lib/libQt5Core.so: No such
> file or directory
> 
> As you can see, this is libQt5core, but the linker want to load it from
> the current packages output.

I think Nix does it by patching qtbase to tell everything to use either
NIX variables or absolute paths
https://github.com/NixOS/nixpkgs/tree/e36c7e61c39bb78ab6bf0b0894ed418af4ab5f03/pkgs/development/libraries/qt-5/5.12

> 
> This kind of issues do not occur with most of the "older" packages. I
> already tried to find some place to hook in - without success. Any hints?
> 
> Here is the package definition for the case one want to reproduce this.
> 
> (define-public qtgamepad
>   (package (inherit qtsvg)
>     (name "qtgamepad")
>     (version "5.12.5")
>     (source (origin
>              (method url-fetch)
>              (uri (string-append
> "https://download.qt.io/official_releases/qt/"
>                                  (version-major+minor version) "/" version
>                                  "/submodules/" name "-everywhere-src-"
>                                  version ".tar.xz"))
>              (sha256
>               (base32
>                "0czdmmbjc6zpj213pwwgjh0h2awzmrgkqy5gl5a5vk7p8wfz126y"))))
>     (arguments
>      (substitute-keyword-arguments (package-arguments qtsvg)
>        ((#:phases phases)
>         `(modify-phases ,phases
>            (add-after 'configure 'fail
>              (lambda* (#:key outputs #:allow-other-keys)
>                #t))))
>        ((#:tests? _ #f) #f)))           ; TODO: Enable the tests
>     (native-inputs
>      `(("perl" ,perl)))
>     (inputs
>      `(("sdl2" ,sdl2)
>        ("qtbase" ,qtbase)))
>     (synopsis "x")
>     (description "")))
> 
> -- 
> Regards
> Hartmut Goebel
> 
> | Hartmut Goebel          | h.goebel@crazy-compilers.com               |
> | www.crazy-compilers.com | compilers which you thought are impossible |
> 
> 

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Need help for updating Qt to 5.12 - cmake link issue
  2019-10-31 16:34 ` Efraim Flashner
@ 2019-11-01  9:39   ` Hartmut Goebel
  0 siblings, 0 replies; 3+ messages in thread
From: Hartmut Goebel @ 2019-11-01  9:39 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: Guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 362 bytes --]

Am 31.10.19 um 17:34 schrieb Efraim Flashner:
> Qt is upgraded to 5.12 on staging :)

Good to know, so I can save my time on this. I should have had a look at
staging :-)

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-01  9:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-30 15:56 Need help for updating Qt to 5.12 - cmake link issue Hartmut Goebel
2019-10-31 16:34 ` Efraim Flashner
2019-11-01  9:39   ` Hartmut Goebel

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).