LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-28-2021, 04:45 AM   #1
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,089

Rep: Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761
How to find proper --enable options when building wxGTK3?


When trying to build the latest dvdstyler (3.2) I found that this required upgrades of wxGTK3 (> 3.1.5) and wxsvg (> 1.5.22). Building with ponce's buildscripts for -current went fine, but dvdstyler still refused to build, complaining over a missing wxGTK3 header file (colrdlgg.h).

The source package contains the file in question (wxWidgets-3.1.5/include/wx/generic/colrdlgg.h) but for some reason it wasn't included in the .tgz package. My dirty solution was to extract the header file from the source, putting it in its proper place in the -tgz package. Then I could build dvdstyler without issues.

I realise that my solution is not the proper one. I probably need to add a --enable line to the buildscript but I have no clue to what should be enabled - maybe --enable-colourdialog or something similar. Haven't found any hints when googling.

Any ideas?
 
Old 06-28-2021, 06:52 AM   #2
kermitdafrog8
Member
 
Registered: Dec 2018
Location: Orlando, FL
Distribution: Slackware AARCH64 and X86_64
Posts: 340

Rep: Reputation: Disabled
How to find proper --enable options when building wxGTK3?

--enable-coldlg use wxColourDialog

Maybe this is what you are looking for?

Last edited by kermitdafrog8; 06-28-2021 at 07:03 AM.
 
Old 06-28-2021, 10:25 AM   #3
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,089

Original Poster
Rep: Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761
Thanks, that looked like a very promising suggestion. However, after adding
--enable-coldlg \
to the build script, the file was still missing when the package was built.
 
Old 06-28-2021, 01:26 PM   #4
joghi
Member
 
Registered: Jun 2011
Distribution: Slackware64 15.0 Slackware 14.2 Slackware64 14.2
Posts: 33

Rep: Reputation: Disabled
I'm not sure if the header for the generic dialog is still installed for linux systems for newer versions of wxWidgets. However, if you look at the code in wxVillaLib/PropDlg.cpp in lines 764 ff you see, that the generic dialog is only used if __WXMSW__ is defined. So I think you can safely delete the line #include <wx/generic/colrdlgg.h> for your Slackware build. The proper solution might be to use a patch file, e.g.
Code:
diff -Naur DVDStyler-3.2/wxVillaLib/PropDlg.cpp DVDStyler-3.2_patched/wxVillaLib/PropDlg.cpp
--- DVDStyler-3.2/wxVillaLib/PropDlg.cpp        2021-06-22 09:13:11.000000000 +0200
+++ DVDStyler-3.2_patched/wxVillaLib/PropDlg.cpp        2021-06-28 19:26:44.646851316 +0200
@@ -12,7 +12,6 @@
 #include "utils.h"
 #include <wx/fontdlg.h>
 #include <wx/colordlg.h>
-#include <wx/generic/colrdlgg.h>
 #include <wx/filedlg.h>
 #include <wx/dirdlg.h>
 #include <wx/grid.h>
@@ -29,6 +28,7 @@
 #ifdef __WXMSW__
 #include <setupapi.h>
 #include "wx/msw/private.h"
+#include <wx/generic/colrdlgg.h>
 #endif

 #include "rc/delete.png.h"
to include colrdlgg.h only, if __WXMSW__ is defined.
 
1 members found this post helpful.
Old 06-29-2021, 04:56 AM   #5
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,089

Original Poster
Rep: Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761
Thanks, much obliged! Couldn't get the patch to work (first change accepted, second rejected), but simply deleting the line
Code:
#include <wx/generic/colrdlgg.h>
did the trick, build went smooth and the program works as intended.

Causes me another headache, though. Filezilla refuses to run (or compile) on anything but a "stable" wxGTK3, i.e. version 3.0.5. Well, I can live with that for now and sort it out when the next stable wxWidget release arrives.

Last edited by kgha; 06-29-2021 at 06:41 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackrepo Won't Build wxGTK3? bilbod Slackware 4 06-21-2017 10:49 AM
cannot build wxGTK3 Francexi Linux - Software 5 09-03-2015 11:57 AM
WXGTK3 Problem GreenFireFly Slackware 4 10-28-2014 11:17 AM
Proper make options and gcc options for my particular processor CyclicFlux Linux - General 1 08-17-2012 07:49 PM
Find with -exec argument - not giving proper output..how to find... hinetvenkat Linux - Server 4 01-25-2010 06:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration