Comments (8)
Do I have the wrong GTK version installed? GTKFILECHOOSERNATIVE seems not to be supported.
` GtkFileChooserNative *native = gtk_file_chooser_native_new ("Save PDF",
GTK_WINDOW(main_window->gobj()),
GTK_FILE_CHOOSER_ACTION_SAVE,
"_Open",
"_Cancel");
auto chooser = Glib::wrap(GTK_FILE_CHOOSER(native));
chooser->set_do_overwrite_confirmation(true);
if(last_pdf_filename.size()) {
chooser->set_filename(last_pdf_filename);
}
else {
chooser->set_current_name("schematic.pdf");
}
if(gtk_native_dialog_run (GTK_NATIVE_DIALOG (native))==GTK_RESPONSE_ACCEPT) {
std::string fn = chooser->get_filename();
last_pdf_filename = fn;
export_pdf(fn, *core.c->get_schematic(), core.r);
}`
from horizon.
Next thing:
dialogs/dialogs.cpp:364:47: error: converting to ‘std::tuple<bool, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, long int, double>’ from initializer list would use explicit constructor ‘constexpr std::tuple< >::tuple(_UElements&& ...) [with _UElements = {bool, std::__cxx11::basic_string<char, std::char_traits, std::allocator >&, int&, long int&, double&}; = void; _Elements = {bool, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, long int, double}]’
return {true, filename, layer, width, scale};
^
dialogs/dialogs.cpp:367:48: error: converting to ‘std::tuple<bool, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, long int, double>’ from initializer list would use explicit constructor ‘constexpr std::tuple< >::tuple(_UElements&& ...) [with _UElements = {bool, std::__cxx11::basic_string<char, std::char_traits, std::allocator >&, int&, long int&, double&}; = void; _Elements = {bool, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, int, long int, double}]’
return {false, filename, layer, width, scale};
from horizon.
next:
property_panels/property_panel.cpp: In static member function ‘static horizon::PropertyPanel* horizon::PropertyPanel::create(horizon::ObjectType, horizon::Core*, horizon::PropertyPanels*)’:
property_panels/property_panel.cpp:121:49: error: no matching function for call to ‘Gtk::Builder::get_widget_derived(const char [14], horizon::PropertyPanel*&, horizon::ObjectType&, horizon::Core*&)’
x->get_widget_derived("PropertyPanel", w, t, c);
from horizon.
Same issue in another file.
imp/rules/rules_window.cpp:402:47: error: no matching function for call to ‘Gtk::Builder::get_widget_derived(const char [7], horizon::RulesWindow*&, horizon::CanvasGL*&, horizon::Rules*&, horizon::Core*&)’
from horizon.
imp/fab_output_window.cpp:75:4: error: ‘GtkFileChooserNative’ was not declared in this scope
GtkFileChooserNative native = gtk_file_chooser_native_new ("Select output directory",
^
imp/fab_output_window.cpp:75:26: error: ‘native’ was not declared in this scope
GtkFileChooserNative native = gtk_file_chooser_native_new ("Select output directory",
^
imp/fab_output_window.cpp:79:14: error: ‘gtk_file_chooser_native_new’ was not declared in this scope
"_Cancel");
^
imp/fab_output_window.cpp:84:55: error: ‘GTK_NATIVE_DIALOG’ was not declared in this scope
if(gtk_native_dialog_run (GTK_NATIVE_DIALOG (native))==GTK_RESPONSE_ACCEPT) {
^
imp/fab_output_window.cpp:84:56: error: ‘gtk_native_dialog_run’ was not declared in this scope
if(gtk_native_dialog_run (GTK_NATIVE_DIALOG (native))==GTK_RESPONSE_ACCEPT) {
^
imp/fab_output_window.cpp: In static member function ‘static horizon::FabOutputWindow horizon::FabOutputWindow::create(Gtk::Window, horizon::Board*, horizon::FabOutputSettings*)’:
imp/fab_output_window.cpp:156:42: error: no matching function for call to ‘Gtk::Builder::get_widget_derived(const char [7], horizon::FabOutputWindow*&, horizon::Board*&, horizon::FabOutputSettings*&)’
x->get_widget_derived("window", w, b, s);
from horizon.
Which ubuntu version are you using? GtkFileChooserNative requires at least Gtk 3.20, i.e. at least ubuntu 17.04. The other errors are probably due too an older version of gcc not being as smart as I'm hoping for. Since the next LTS is only a few months away, fixing these issues isn't worthwhile from my point. I'm happy to accept patches though.
from horizon.
@carrotIndustries Maybe we should link in the README to the build instructions in the wiki. Also maybe state in the wiki on which distro you develop (i.e. the one that will always work) and which minimal Ubuntu version is required.
from horizon.
@carrotIndustries @rnestler I'm using Ubuntu 16.04 LTS.
GTK version is 3.18.9-1ubuntu3.3 - so thats why its not supported
GCC version is gcc version 5.4.0 20160609
From my personal perspective the systems setup isn't too old. However, when the new LTS is there i will setup a new PC, so then I can try your software. Would have loved to try it right now, but anway...
From my personal point you can close this issue, as the build instructions have been updated.
from horizon.
Related Issues (20)
- RFC/RFE: integrate transmission line simulator from AlterPCB?
- 3rd_party/alphanum/alphanum.hpp:298:38: error: no template named 'binary_function' in namespace 'std'; did you mean '__binary_function'? HOT 4
- Arc-and-line drawing can't make polygon/outline rendered in 3D view. HOT 6
- Feature request: Add rule in symbol editor to check for junctions with no connections
- build fails on opensuse tumbleweed HOT 9
- Feature request: get-polygon, or, polygons as arguments to expand-polygon HOT 2
- Feature request: Schematic net label "in-line" rendering HOT 1
- "unknown error" when trying to generate fabrication output HOT 18
- Feature request: placing symbols without a part assigned HOT 1
- Feature request: add an option to make all 3D views use orthographic projection by default HOT 2
- Board Editor and Pool Manager crash, possible project pool corruption HOT 4
- Wrong usage of Board Editor CLI leads to SIGABRT instead of error message HOT 1
- Plane of a deleted Net will crash the Board Editor HOT 2
- Segfault while running checks after updating planes with 6 inner layers HOT 1
- Segfault while deleting things HOT 1
- Not all rules are checked on fab output HOT 3
- Footprint generator generates incorrect pitch HOT 4
- Feature request: Make selection in schematic somehow work with unplaced board components HOT 1
- Python module cannot open top schematic if `pool/*.db*` is missing
- Feature Request: Overriding metadata like `date` and `rev` using the Python module
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from horizon.