brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

Compiling Errors on Linux - ‘GTK_WIDGET’ was not declared in this scope #13004

Open core-ai-bot opened 3 years ago

core-ai-bot commented 3 years ago

Issue by nogo Friday Dec 19, 2014 at 08:41 GMT Originally opened as https://github.com/adobe/brackets/issues/10231


When I try to compile Brackets I get a compiling error that the GTK_WIDGET is not declared.

  CXX(target) out/Release/obj.target/Brackets/appshell/appshell_extensions.o
In file included from appshell/command_callbacks.h:4:0,
                 from appshell/client_handler.h:15,
                 from appshell/appshell_extensions.h:27,
                 from appshell/appshell_extensions.cpp:24:
appshell/appshell_extensions_platform.h: In function ‘void* getMenuParent(CefRefPtr<CefBrowser>)’:
appshell/appshell_extensions_platform.h:65:57: error: ‘GTK_WIDGET’ was not declared in this scope
         GTK_WIDGET(browser->GetHost()->GetWindowHandle()),
                                                         ^
appshell/appshell_extensions_platform.h:66:9: error: ‘GTK_TYPE_VBOX’ was not declared in this scope
         GTK_TYPE_VBOX);
         ^
appshell/appshell_extensions_platform.h:66:22: error: ‘gtk_widget_get_ancestor’ was not declared in this scope
         GTK_TYPE_VBOX);
                      ^
Brackets.target.mk:177: recipe for target 'out/Release/obj.target/Brackets/appshell/appshell_extensions.o' failed
make: *** [out/Release/obj.target/Brackets/appshell/appshell_extensions.o] Error 1
==> ERROR: A failure occurred in build().
core-ai-bot commented 3 years ago

Comment by 4javier Friday Dec 19, 2014 at 18:47 GMT


I second this one. Trying to build 1.1 Git tag on Archlinux x86.

core-ai-bot commented 3 years ago

Comment by ingorichter Saturday Dec 20, 2014 at 01:50 GMT


@nogo the CEF2171 transition on Linux is not yet finished. We ran into some serious issues at then end and needed to postpone the solution. In the meantime, you can build the 1.1 version with the older CEF1547 (this is what we shipped 1.1 with for Linux). There is a linux-1547 branch in the brackets-shell repo. I'm going back to the Linux issues (probably over the weekend), since I'd like to have this resolved. We have a working branch jasonsj/cef_2171_linux that reflects the current state of our effort. It's compiling, but it still doesn't shutdown properly.

core-ai-bot commented 3 years ago

Comment by nogo Saturday Dec 20, 2014 at 13:11 GMT


@4javier the git tag release-1.1 was missing at brackets-shell yesterday @ingorichter I switch the packages to branch linux-1547 and it is working at the moment. Hopefully you will find a solution. Let me know if I should try something.

core-ai-bot commented 3 years ago

Comment by 4javier Saturday Dec 20, 2014 at 14:47 GMT


@nogo I can assure you that ~24 hours ago brackets-shell tags 1.1 was already released. I have simply the same error as you.

core-ai-bot commented 3 years ago

Comment by nogo Sunday Dec 21, 2014 at 11:49 GMT


@4javier I didn't know your packages. :) Maybe we should merge our packages?

core-ai-bot commented 3 years ago

Comment by 4javier Sunday Dec 21, 2014 at 11:57 GMT


Please, talk about that on AUR, avoid OT on this board. :-)

core-ai-bot commented 3 years ago

Comment by 4javier Friday Mar 06, 2015 at 13:17 GMT


Problem still present in 1.2 tag.

core-ai-bot commented 3 years ago

Comment by peterflynn Monday Mar 09, 2015 at 07:23 GMT


Will be fixed by adobe/brackets-shell#499. Please follow that PR and/or the branch mentioned above for updates.

core-ai-bot commented 3 years ago

Comment by 4javier Monday Mar 09, 2015 at 11:00 GMT


Thanks. Do you konw if those fixes will be included in 1.3?

core-ai-bot commented 3 years ago

Comment by nethip Wednesday Mar 18, 2015 at 08:35 GMT


@4javier Our master is not yet compile ready. It is still WIP in the following branch. Right now we are having a blocker(Crash on quit) which is stopping us from merging to master. https://github.com/adobe/brackets-shell/tree/jasonsanjose/cef_2171_linux

core-ai-bot commented 3 years ago

Comment by artynet Sunday Apr 19, 2015 at 00:50 GMT


which is tre right branch to clone for building the stable 1.2 source code of brackets ? I checked out this branch : jasonsanjose/cef_2171_linux_quitfix. However, I get this build error about udev :

  CXX(target) out/Release/obj.target/Brackets/appshell/appshell_extensions_gtk.o
  LINK(target) out/Release/Brackets
/usr/bin/ld.bfd.real: warning: libudev.so.0, needed by Release/libcef.so, not found (try using -rpath or -rpath-link)
Release/libcef.so: undefined reference to `udev_monitor_unref'
Release/libcef.so: undefined reference to `udev_enumerate_scan_devices'
Release/libcef.so: undefined reference to `udev_new'
Release/libcef.so: undefined reference to `udev_list_entry_get_name'
Release/libcef.so: undefined reference to `udev_enumerate_get_list_entry'
Release/libcef.so: undefined reference to `udev_list_entry_get_next'
Release/libcef.so: undefined reference to `udev_device_new_from_syspath'
Release/libcef.so: undefined reference to `udev_monitor_receive_device'
Release/libcef.so: undefined reference to `udev_device_get_property_value'
Release/libcef.so: undefined reference to `udev_unref'
Release/libcef.so: undefined reference to `udev_monitor_enable_receiving'
Release/libcef.so: undefined reference to `udev_monitor_filter_add_match_subsystem_devtype'
Release/libcef.so: undefined reference to `udev_monitor_get_fd'
Release/libcef.so: undefined reference to `udev_device_get_devnode'
Release/libcef.so: undefined reference to `udev_device_get_subsystem'
Release/libcef.so: undefined reference to `udev_enumerate_unref'
Release/libcef.so: undefined reference to `udev_enumerate_new'
Release/libcef.so: undefined reference to `udev_device_get_parent_with_subsystem_devtype'
Release/libcef.so: undefined reference to `udev_monitor_new_from_netlink'
Release/libcef.so: undefined reference to `udev_device_unref'
Release/libcef.so: undefined reference to `udev_device_get_sysattr_value'
Release/libcef.so: undefined reference to `udev_enumerate_add_match_subsystem'
collect2: error: ld returned 1 exit status
make: *** [out/Release/Brackets] Error 

any hints about this ? Tnaks in advance

core-ai-bot commented 3 years ago

Comment by dacrhu Monday Apr 27, 2015 at 18:54 GMT


Can I build 1.3 on linux? I tried with jasonsanjose/cef_2171_linux and with origin/linux-1547 but do not built. Version 1.2 built with origin/linux-1547. Any idea?

core-ai-bot commented 3 years ago

Comment by dacrhu Monday Apr 27, 2015 at 19:06 GMT


Storno, I checkout bad branch, I successfully built it.

core-ai-bot commented 3 years ago

Comment by 4javier Monday Apr 27, 2015 at 21:02 GMT


On which shell branch is built linux deb version of 1.3? Still linux-1547?

core-ai-bot commented 3 years ago

Comment by ingorichter Tuesday Apr 28, 2015 at 02:40 GMT


@4javier yes.

core-ai-bot commented 3 years ago

Comment by artynet Wednesday May 06, 2015 at 11:08 GMT


Hello folks, after cloning the brackets master branch to its latest commit and the brackets-shell to the linux-1547 branch I was able to successfully build brackets on Ubuntu 14.04. However, I had to make a symlink to libuedv.so.0 to make the build working as it should :

$ sudo ln -s /usr/lib/x86_64-linux-gnu/libudev.so /usr/local/lib/libudev.so.0
$ sudo ldconfig

then I run the usual steps to build brackets from source inside the brackets-shell folder :

$ npm install
$ grunt setup
$ grunt build

The next step is to build the linux installer, I'll let you now as it proceeds..

core-ai-bot commented 3 years ago

Comment by 4javier Thursday May 07, 2015 at 11:41 GMT


@artynet It's an old problem due to CEF built against libudev.so.0. Brackets devs cannot do anything about it, just hope that next CEF release they will be using will be built against libudev.so.

core-ai-bot commented 3 years ago

Comment by 4javier Tuesday Feb 02, 2016 at 20:55 GMT


brackets-shell 1.5: bug still present...