Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 827806

Summary: sci-geosciences/opencpn-5.6.2 - Cannot find wxWidgets
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Marc Schiffbauer <mschiff>
Status: RESOLVED FIXED    
Severity: normal CC: sci-geosciences
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
CMakeOutput.log
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
sci-geosciences:opencpn-5.2.4:20211128-195501.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-11-28 20:41:41 UTC
--     Revised GL Lib: /usr/lib64/libGL.so
-- Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES) 
-- Could not find wxWidgets webview add-on
-- Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES) 
CMake Error at CMakeLists.txt:747 (message):
  Cannot find wxWidgets, giving up.  On linux you might want to try using
  -DOCPN_FORCE_GTK3.



  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j4-20211127-222420

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.1 *
clang version 13.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.56.1 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 (amd64) [icedtea-bin-8]
*)	AdoptOpenJDK 8.312_p07 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8 
  [2]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit ad58f699c1afa10d8c02ef7ece33a1a8d7ced973
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Nov 28 19:36:45 2021 +0000

    2021-11-28 19:36:43 UTC

emerge -qpvO sci-geosciences/opencpn
[ebuild  N    ] sci-geosciences/opencpn-5.2.4  USE="-doc -lzma -opengl"
Comment 1 Toralf Förster gentoo-dev 2021-11-28 20:41:42 UTC
Created attachment 756958 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-11-28 20:41:43 UTC
Created attachment 756960 [details]
CMakeOutput.log
Comment 3 Toralf Förster gentoo-dev 2021-11-28 20:41:45 UTC
Created attachment 756962 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-11-28 20:41:46 UTC
Created attachment 756964 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-11-28 20:41:47 UTC
Created attachment 756966 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-11-28 20:41:48 UTC
Created attachment 756968 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-11-28 20:41:49 UTC
Created attachment 756970 [details]
sci-geosciences:opencpn-5.2.4:20211128-195501.log
Comment 8 Toralf Förster gentoo-dev 2021-11-28 20:41:50 UTC
Created attachment 756972 [details]
temp.tar.bz2
Comment 9 Marc Schiffbauer gentoo-dev 2021-11-29 05:08:36 UTC
Will this work when adding "-DOCPN_FORCE_GTK3" as suggested?
Comment 10 Agostino Sarubbo gentoo-dev 2022-05-18 09:25:58 UTC
ci has reproduced this issue with version 5.6.2 - Updating summary.
Comment 11 Mark 2023-05-23 19:02:37 UTC
I was having the same issue of wxwidgets not found. Adding DOCPN_FORCE_GTK3=ON does not work. But looking at the configuration file, if GTK version is >3.0 it seems to only be looking for the 3.0 versions of wxGTK. For some reason my version of wxGTK-3.0 was compiled without opengl support even though opengl is enable for most everything else. Reemerging =x11-libs/wxGTK-3.0.5.1-r1 with opengl use flag fixed the build.
Comment 12 Marc Schiffbauer gentoo-dev 2023-05-28 20:17:16 UTC
(In reply to Mark from comment #11)
> I was having the same issue of wxwidgets not found. Adding
> DOCPN_FORCE_GTK3=ON does not work. But looking at the configuration file, if
> GTK version is >3.0 it seems to only be looking for the 3.0 versions of
> wxGTK. For some reason my version of wxGTK-3.0 was compiled without opengl
> support even though opengl is enable for most everything else. Reemerging
> =x11-libs/wxGTK-3.0.5.1-r1 with opengl use flag fixed the build.

Thanks! I will add wxGTK[opengl] as dependency
Comment 13 Larry the Git Cow gentoo-dev 2023-05-28 21:01:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f9f7af8a0718c3810b47905b12ad4f45eede4cc

commit 9f9f7af8a0718c3810b47905b12ad4f45eede4cc
Author:     Marc Schiffbauer <mschiff@gentoo.org>
AuthorDate: 2023-05-28 20:59:37 +0000
Commit:     Marc Schiffbauer <mschiff@gentoo.org>
CommitDate: 2023-05-28 21:01:17 +0000

    sci-geosciences/opencpn: fix wxGTK dep
    
    Closes: https://bugs.gentoo.org/827806
    Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org>

 .../opencpn/{opencpn-5.6.2.ebuild => opencpn-5.6.2-r1.ebuild}         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 14 Mark 2023-05-30 23:17:39 UTC
(In reply to Larry the Git Cow from comment #13)
> The bug has been closed via the following commit(s):
> 
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=9f9f7af8a0718c3810b47905b12ad4f45eede4cc
> 
> commit 9f9f7af8a0718c3810b47905b12ad4f45eede4cc
> Author:     Marc Schiffbauer <mschiff@gentoo.org>
> AuthorDate: 2023-05-28 20:59:37 +0000
> Commit:     Marc Schiffbauer <mschiff@gentoo.org>
> CommitDate: 2023-05-28 21:01:17 +0000
> 
>     sci-geosciences/opencpn: fix wxGTK dep
>     
>     Closes: https://bugs.gentoo.org/827806
>     Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org>
> 
>  .../opencpn/{opencpn-5.6.2.ebuild => opencpn-5.6.2-r1.ebuild}         | 4
> ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

I'm not sure this will close the bug. It needs to find a 3.0 version of wxGTK, I had x11-libs/wxGTK-3.2.2.1-r2 installed with opengl enabled and it would not find it. reemerging x11-libs/wxGTK-3.0.5.1-r1 with opengl and it was fine.
Comment 15 Marc Schiffbauer gentoo-dev 2023-05-31 18:21:37 UTC
(In reply to Mark from comment #14)
> (In reply to Larry the Git Cow from comment #13)
> > The bug has been closed via the following commit(s):
> > 
> > https://gitweb.gentoo.org/repo/gentoo.git/commit/
> > ?id=9f9f7af8a0718c3810b47905b12ad4f45eede4cc
> > 
> > commit 9f9f7af8a0718c3810b47905b12ad4f45eede4cc
> > Author:     Marc Schiffbauer <mschiff@gentoo.org>
> > AuthorDate: 2023-05-28 20:59:37 +0000
> > Commit:     Marc Schiffbauer <mschiff@gentoo.org>
> > CommitDate: 2023-05-28 21:01:17 +0000
> > 
> >     sci-geosciences/opencpn: fix wxGTK dep
> >     
> >     Closes: https://bugs.gentoo.org/827806
> >     Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org>
> > 
> >  .../opencpn/{opencpn-5.6.2.ebuild => opencpn-5.6.2-r1.ebuild}         | 4
> > ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> I'm not sure this will close the bug. It needs to find a 3.0 version of
> wxGTK, I had x11-libs/wxGTK-3.2.2.1-r2 installed with opengl enabled and it
> would not find it. reemerging x11-libs/wxGTK-3.0.5.1-r1 with opengl and it
> was fine.


Thanks for pointing this out. I moved wxGTK dependency now from RDEPEND to BDEPEND, that should fix it.
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-31 18:32:54 UTC
Having it in BDEPEND sounds pretty suspicious. Are you really saying it doesn't link against or use wxGTK headers *at all*?