Comments (20)
I never had this error, maybe the problem is in wxgtk-3.0.0. I've found this thread where the issue seems similar: http://forums.wxwidgets.org/viewtopic.php?t=37593&p=153082
Be sure to to a "make clean", then try to do a "./configure --with-gtk=2", then "make" and "make install" to force the use of GTK+2 instead of GTK+3... But it's quite strange, I've successfully built GD on Ubuntu with GTK+3.
from gdevelop.
Try to build Game Develop using WxWidgets 3.0.1.
from gdevelop.
It should be fixed with GTK3 and wxWidgets 3.0.1, I'm closing the issue, re-open another one if still facing a similar issue :)
from gdevelop.
today I tried building GD on fedora-20-x86_64 and I have the same error, what is the solution ?
using wxWidgets-3.0.1
from gdevelop.
Could you paste here the errors messages ?
First, you could check if wxWidgets is built to be used with GTK3 (as GD is now referring explicitly to GTK3, such error will arise if wxWidgets is built using GTK2) (and so my previous messages were probably wrong, when I said to use --with-gtk=2! On the contrary, GTK3 should always be used).
I reopen the issue so that we can try to find a solution. 😃
from gdevelop.
today I tried to build it again after building wxwidgets with ./configure --with-gtk=2 and it gave me the same error, and it looks like it still includes gtk3 !
[ 7%] Building CXX object Core/CMakeFiles/GDCore.dir/GDCore/IDE/Dialogs/LayoutEditorCanvas/LayoutEditorCanvas.cpp.o
In file included from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:30:0,
from /usr/include/gtk-3.0/gdk/gdk.h:32,
from /usr/include/gtk-3.0/gdk/gdkx.h:28,
from /mnt/4/Downloads/Linux/GameDevelopment/GameDevelop/GD/Core/GDCore/IDE/Dialogs/LayoutEditorCanvas/LayoutEditorCanvas.cpp:37:
/usr/include/gtk-3.0/gdk/gdktypes.h:127:39: error: conflicting declaration ‘typedef struct _GdkWindow GdkWindow’
typedef struct _GdkWindow GdkWindow;
^
In file included from /usr/local/include/wx-3.0/wx/event.h:14:0,
from /usr/local/include/wx-3.0/wx/window.h:18,
from /usr/local/include/wx-3.0/wx/panel.h:19,
from /mnt/4/Downloads/Linux/GameDevelopment/GameDevelop/GD/Core/GDCore/IDE/Dialogs/LayoutEditorCanvas/LayoutEditorCanvas.h:10,
from /mnt/4/Downloads/Linux/GameDevelopment/GameDevelop/GD/Core/GDCore/IDE/Dialogs/LayoutEditorCanvas/LayoutEditorCanvas.cpp:7:
/usr/local/include/wx-3.0/wx/defs.h:3414:33: error: ‘GdkWindow’ has a previous declaration as ‘typedef struct _GdkDrawable GdkWindow’
typedef struct _GdkDrawable GdkWindow;
^
make[2]: *** [Core/CMakeFiles/GDCore.dir/GDCore/IDE/Dialogs/LayoutEditorCanvas/LayoutEditorCanvas.cpp.o] Error 1
make[1]: *** [Core/CMakeFiles/GDCore.dir/all] Error 2
from gdevelop.
Yes, as I said in my previous comment GTK3 is always included and used by GD. So wxWidgets has to use it: try to compile wxWidgets with ./configure --with-gtk=3
😉
from gdevelop.
I've already built GD on Arch Linux x64 and I needed some special config for wxwidgets as GCC 4.9.0/1 has a bug with wxwidgets : you should add -fno-strict-aliasing to the CXXFLAGS when using ./configure
from gdevelop.
So the commandline to use to build wxWidgets should be ./configure CXXFLAGS="-fno-strict-aliasing" --with-gtk=3
(@victorlevasseur, correct me if I make a mistake :))
from gdevelop.
Yes, but I don't remember if that fixed this error and no another one.
from gdevelop.
[4ian]
well, building wxwidgets with
./configure --enable-ribbon --enable-webview --with-gtk-3
successfully builds. using gcc 4.8
thanks for your help.
[victorlevasseur]
using 4.8 gcc, so no need for -fno-strict-aliasing CXXFLAGS, thanks
from gdevelop.
something weird though, the web export only works with firefox, but not chrome, any one know why ?
from gdevelop.
Excellent!! I close the issue.
For the web export, exported files should be sent to a web server otherwise Chrome disallow the loading of local files. :) (When previewing, GD creates a mini web server so that it works with any browser).
Do you think you would be able to create a package for Archlinux ?
from gdevelop.
You want me to create an rpm for Archlinux you mean ?
from gdevelop.
I totally forgot about chrome not loading files without a web server, thanks
from gdevelop.
@4ian you should add a note in the doc to say that you cant use GCC 4.9.
from gdevelop.
@FocusGFX Yes, if you have some spare time, you could create a rpm 😄 (or better, a script that is used to create it, like a PKGBUILD script).
@victorlevasseur Is the error with GCC 4.9 only related to wxWidgets?
from gdevelop.
[4ian]
actually, I'm in a middle of a project right now, but I guess I'll finish it by tomorrow or the day after.
when I'm done with it I'll create the rpm.
from gdevelop.
@FocusGFX Thanks, let me know if you get something working or need help! 😃
from gdevelop.
Oops
I will no use hashtags in next comments for avoid to create references.
from gdevelop.
Related Issues (20)
- Tiled Sprite Randomization Feature (Randomized Rotation and Offset combined with blending) a la Construct 3's r321 update. HOT 2
- Limitation in Physics Engine Speed HOT 1
- Simpler way to center origin sprite point HOT 3
- Add sorting for assets bin HOT 1
- Snapping objects in editor
- Corrupted value in Scene editor's tooltip right after instance deletion HOT 1
- Fullscreen Detection broken HOT 4
- Adding the ability to specify Cordova and NPM plugin parameters in extension dependencies HOT 1
- Platformer Deacceleration shows the wrong tooltip HOT 1
- High-Speed Collision Detection Limitation HOT 3
- Crash while using an editor
- Toggle switches don't work in 5.3.196 HOT 2
- User Interface Sound Effects
- "Preload as" toggles for audio files in the Resources Panel do not behave the same as the "Preload as" event actions. HOT 1
- Crash while using an editor
- Crash while using an editor
- Electron 18.x.y has reached end-of-support
- Text related actions and conditions suggest objects that are not concerned
- [5-5.3.200 bug] (PLATFORMER OBJECT) is on platform (PLATFORM OBJECT) condition no longer works HOT 1
- Top-down Tanks Redux - Kenney
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 gdevelop.