Code Monkey home page Code Monkey logo

Comments (8)

greenscreenflicker avatar greenscreenflicker commented on August 22, 2024

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.

greenscreenflicker avatar greenscreenflicker commented on August 22, 2024

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.

greenscreenflicker avatar greenscreenflicker commented on August 22, 2024

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.

greenscreenflicker avatar greenscreenflicker commented on August 22, 2024

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.

greenscreenflicker avatar greenscreenflicker commented on August 22, 2024

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.

carrotIndustries avatar carrotIndustries commented on August 22, 2024

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.

rnestler avatar rnestler commented on August 22, 2024

@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.

greenscreenflicker avatar greenscreenflicker commented on August 22, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.