Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile #120

Open
antoyo opened this issue Apr 21, 2015 · 2 comments
Open

Cannot compile #120

antoyo opened this issue Apr 21, 2015 · 2 comments

Comments

@antoyo
Copy link

antoyo commented Apr 21, 2015

Hello.
I tried to compile qtmozembed without any success.
First of all, are there any build instructions (with prerequisites)?
I tried to build gecko-dev first, but I got build error and then compile errors.

The build error caused this error at compile time:

../../dist/system_wrappers/gtk/gtk.h:3.26: fatal error: gtk/gtk.h: no
such file or directory
#include_next <gtk/gtk.h>

I've fixed it by adding this line in /gecko-dev/embedding/embedlite/moz.build:

CXXFLAGS += CONFIG['TK_CFLAGS']

Then, I get the following error:

Unified_c_media_libvorbis0.o
In file included from
/path/to/Source/mozembed/gecko-dev/embedding/embedlite/embedthread/EmbedLiteCompositorParent.cpp:8:0:
/path/to/Source/mozembed/gecko-dev/embedding/embedlite/embedthread/EmbedLiteCompositorParent.h:19:7: error: cannot derive from ‘final’ base ‘mozilla::layers::CompositorParent’ in derived type ‘mozilla::embedlite::EmbedLiteCompositorParent’
class EmbedLiteCompositorParent : public mozilla::layers::CompositorParent
In the directory  /path/to/Source/mozembed/gecko-dev/obj-x86_64-unknown-linux-gnu/embedding/embedlite

If I remove the MOZ_FINAL, I get other errors.

What can I do to fix all the issues?

I tried to build gecko-dev since I get the following error when I try to compile qtmozembed:

fatal error: mozilla-config: no such file or directory

but I don't know if I am on the right track.

I tried on both ArchLinux and Linux Mint Debian Edition.

By the way, is there any 64-bit binary for Linux for this library?
And is this library stable?

Thanks for your help.

@romaxa
Copy link
Collaborator

romaxa commented Apr 22, 2015

Check please these instructions please:
https://wiki.mozilla.org/Embedding/IPCLiteAPI#Development_Build_instructions
:

Also make sure you have dependencies installed:
https://github.com/tmeshkova/xulrunner-package/blob/master/dependencies

Br, Oleg

On Tue, Apr 21, 2015 at 1:30 PM, antoyo [email protected] wrote:

Hello.
I tried to compile qtmozembed without any success.
First of all, are there any build instructions (with prerequisites)?
I tried to build gecko-dev https://github.com/tmeshkova/gecko-dev
first, but I got build error and then compile errors.

The build error caused this error at compile time:

../../dist/system_wrappers/gtk/gtk.h:3.26: fatal error: gtk/gtk.h: no
such file or directory
#include_next <gtk/gtk.h>

I've fixed it by adding this line in
/gecko-dev/embedding/embedlite/moz.build:

CXXFLAGS += CONFIG['TK_CFLAGS']

Then, I get the following error:

Unified_c_media_libvorbis0.o
In file included from
/path/to/Source/mozembed/gecko-dev/embedding/embedlite/embedthread/EmbedLiteCompositorParent.cpp:8:0:
/path/to/Source/mozembed/gecko-dev/embedding/embedlite/embedthread/EmbedLiteCompositorParent.h:19:7: error: cannot derive from ‘final’ base ‘mozilla::layers::CompositorParent’ in derived type ‘mozilla::embedlite::EmbedLiteCompositorParent’
class EmbedLiteCompositorParent : public mozilla::layers::CompositorParent
In the directory /path/to/Source/mozembed/gecko-dev/obj-x86_64-unknown-linux-gnu/embedding/embedlite

If I remove the MOZ_FINAL, I get other errors.

What can I do to fix all the issues?

I tried to build gecko-dev since I get the following error when I try to
compile qtmozembed:

fatal error: mozilla-config: no such file or directory

but I don't know if I am on the right track.

I tried on both ArchLinux and Linux Mint Debian Edition.

By the way, is there any 64-bit binary for Linux for this library?
And is this library stable?

Thanks for your help.


Reply to this email directly or view it on GitHub
#120.

@antoyo
Copy link
Author

antoyo commented Apr 22, 2015

If I follow these instructions, I get the following error:

 0:47.22 In file included from ../../../dist/include/nsISupportsUtils.h:14:0,
 0:47.22                  from ../../../dist/include/nsISupports.h:123,
 0:47.22                  from ../../../dist/include/nsINetworkLinkService.h:10,
 0:47.22                  from /path/to/Source/xulrunner-package/mozilla-central/netwerk/system/qt/nsQtNetworkLinkService.h:8,
 0:47.22                  from /path/to/Source/xulrunner-package/mozilla-central/netwerk/system/qt/nsQtNetworkLinkService.cpp:6:
 0:47.22 /path/to/Source/xulrunner-package/mozilla-central/netwerk/system/qt/nsQtNetworkLinkService.cpp: In member function ‘virtual MozExternalRefCountType nsQtNetworkLinkService::AddRef()’:
 0:47.22 ../../../dist/include/nsISupportsImpl.h:91:3: erreur: static assertion failed: Reference-counted class nsQtNetworkLinkService should not have a public destructor. Try to make this class's destructor non-public. If that is really not possible, you can whitelist this class by providing a HasDangerousPublicDestructor specialization for it.
 0:47.22    static_assert(!MOZ_IS_DESTRUCTIBLE(X) || \
 0:47.22    ^
 0:47.22 ../../../dist/include/nsISupportsImpl.h:572:3: note: in expansion of macro ‘MOZ_ASSERT_TYPE_OK_FOR_REFCOUNTING’
 0:47.22    MOZ_ASSERT_TYPE_OK_FOR_REFCOUNTING(_class)                                  \
 0:47.22    ^
 0:47.22 ../../../dist/include/nsISupportsImpl.h:1038:3: note: in expansion of macro ‘NS_IMPL_ADDREF’
 0:47.22    NS_IMPL_ADDREF(aClass)                                                      \
 0:47.22    ^
 0:47.22 /path/to/Source/xulrunner-package/mozilla-central/netwerk/system/qt/nsQtNetworkLinkService.cpp:14:1: note: in expansion of macro ‘NS_IMPL_ISUPPORTS’
 0:47.22  NS_IMPL_ISUPPORTS(nsQtNetworkLinkService,
 0:47.22  ^
 0:47.76 
 0:47.76 In the directory  /path/to/Source/xulrunner-package/objdir-desktop/netwerk/system/qt

What can I do to fix this issue?
Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants