Author Topic: Cross Compiling with Mingw32...with errors  (Read 15591 times)

Offline ggpr

  • Multiple posting newcomer
  • *
  • Posts: 13
Cross Compiling with Mingw32...with errors
« on: March 12, 2008, 02:10:15 pm »
Cross compiling works with the simple example(hello world message box), but I want to cross-compile with wxwidgets
(using a very simple program based on wizard-frames)
I'm using codeblocks 8.02
wxwidgets 2.8.7 for my compiled stuff
wxwidgets 2.8.x for other stuff

I currently get
/usr/include/wx-2.8/wx/defs.h|2806|error: conflicting declaration 'typedef struct GtkWidget*WXWidget'|
/usr/include/wx-2.8/wx/defs.h|2597|error: 'WXWidget' has a previous declaration as `typedef void*WXWidget'|
/usr/include/wx-2.8/wx/defs.h|2806|error: declaration of `typedef struct GtkWidget*WXWidget'|
/usr/include/wx-2.8/wx/defs.h|2597|error: conflicts with previous declaration `typedef void*WXWidget'|
/usr/include/wx-2.8/wx/defs.h|2806|error: declaration of `typedef struct GtkWidget*WXWidget'|
/usr/include/wx-2.8/wx/defs.h|2597|error: conflicts with previous declaration `typedef void*WXWidget'|
/usr/include/wx-2.8/wx/filefn.h|388|error: zero width for bit-field `wxAssert_389::BadFileSizeType'|
||=== Build finished: 7 errors, 0 warnings ===|

I currently get when I rename that wx-2.8 to 2x-2.8.old to force gathering from another location
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/defs.h|2806|error: conflicting declaration 'typedef struct GtkWidget*WXWidget'|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/defs.h|2597|error: 'WXWidget' has a previous declaration as `typedef void*WXWidget'|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/defs.h|2806|error: declaration of `typedef struct GtkWidget*WXWidget'|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/defs.h|2597|error: conflicts with previous declaration `typedef void*WXWidget'|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/defs.h|2806|error: declaration of `typedef struct GtkWidget*WXWidget'|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/defs.h|2597|error: conflicts with previous declaration `typedef void*WXWidget'|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/cursor.h|24|wx/gtk/cursor.h: No such file or directory|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/filefn.h|388|error: zero width for bit-field `wxAssert_389::BadFileSizeType'|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/cursor.h||In destructor `wxBusyCursorSuspender::~wxBusyCursorSuspender()':|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/cursor.h|74|error: invalid use of undefined type `const struct wxCursor'|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/gdicmn.h|33|error: forward declaration of `const struct wxCursor'|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h|921|error: field `m_cursor' has incomplete type|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h||In constructor `wxSetCursorEvent::wxSetCursorEvent(wxCoord, wxCoord)':|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h|900|error: class `wxSetCursorEvent' does not have any field named `m_cursor'|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h|907|error: class `wxSetCursorEvent' does not have any field named `m_cursor'|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h|907|error: 'const class wxSetCursorEvent' has no member named 'm_cursor'|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h||In member function `void wxSetCursorEvent::SetCursor(const wxCursor&)':|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h|913|error: `m_cursor' was not declared in this scope|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h||In member function `const wxCursor& wxSetCursorEvent::GetCursor() const':|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h|914|error: `m_cursor' was not declared in this scope|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h||In member function `bool wxSetCursorEvent::HasCursor() const':|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h|915|error: `m_cursor' was not declared in this scope|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/app.h|570|wx/gtk/app.h: No such file or directory|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/app.h||In constructor `wxAppInitializer::wxAppInitializer(wxAppConsole*(*)())':|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/app.h|630|error: `wxApp' has not been declared|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/app.h|630|error: `SetInitializerFunction' was not declared in this scope|
/home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.h|16|error: expected class-name before '{' token|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/font.h|233|wx/gtk/font.h: No such file or directory|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/colour.h|135|wx/gtk/colour.h: No such file or directory|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/region.h|224|wx/gtk/region.h: No such file or directory|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/region.h||In member function `bool wxRegionBase::Intersect(const wxRect&)':|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/region.h|251|error: invalid use of undefined type `struct wxRegion'|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/gdicmn.h|38|error: forward declaration of `struct wxRegion'|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/region.h||In member function `bool wxRegionBase::Subtract(const wxRect&)':|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/region.h|256|error: invalid use of undefined type `struct wxRegion'|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/gdicmn.h|38|error: forward declaration of `struct wxRegion'|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/region.h||In member function `bool wxRegionBase::Xor(const wxRect&)':|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/region.h|261|error: invalid use of undefined type `struct wxRegion'|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/gdicmn.h|38|error: forward declaration of `struct wxRegion'|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/palette.h|40|wx/generic/paletteg.h: No such file or directory|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/accel.h|155|wx/gtk/accel.h: No such file or directory|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h|82|error: field `font' has incomplete type|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h|85|error: field `colFg' has incomplete type|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h|89|error: field `colBg' has incomplete type|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h|1196|error: field `m_cursor' has incomplete type|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h|1197|error: field `m_font' has incomplete type|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h|1198|error: field `m_backgroundColour' has incomplete type|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h|1199|error: field `m_foregroundColour' has incomplete type|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h|1206|error: field `m_updateRegion' has incomplete type|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h|1211|error: field `m_acceleratorTable' has incomplete type|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h|1259|error: field `m_palette' has incomplete type|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h||In member function `virtual void wxWindowBase::SetAcceleratorTable(const wxAcceleratorTable&)':|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h|657|error: `m_acceleratorTable' was not declared in this scope|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h||In member function `wxAcceleratorTable* wxWindowBase::GetAcceleratorTable()':|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h|659|error: `m_acceleratorTable' was not declared in this scope|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h||In member function `const wxRegion& wxWindowBase::GetUpdateRegion() const':|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h|748|error: `m_updateRegion' was not declared in this scope|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h||In member function `wxRegion& wxWindowBase::GetUpdateRegion()':|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h|749|error: `m_updateRegion' was not declared in this scope|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h||In member function `const wxCursor& wxWindowBase::GetCursor() const':|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h|837|error: `m_cursor' was not declared in this scope|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h||In member function `wxPalette wxWindowBase::GetPalette() const':|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h|1114|error: return type `struct wxPalette' is incomplete|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h|1114|error: `m_palette' was not declared in this scope|
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h|1452|wx/gtk/window.h: No such file or directory|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|


Ive tried compiling and installing my own wx.
Ive also been suing symlinks to get to my wxwidgets but it still comes back with the same errors as conflict declaration etc...
not exactly sure whats what anymore...I now have a:
/usr/i586-mingw32msvc     - which I think was created by the steps given in the forum (and can cross compile console applications)
/usr/local/i586-mingw32     - which I think is my own creation
/usr/include/wx-2.8             - no idea...I think magic or was always there

Ive tried renaming a few directories to force the compiler to find files in other directories, but I get a lot more errors when I do that and this current solution looks closest to working.
Ive read people saying it could be __WXMSW__ not being declared (but it is)
Ive read people saying its because I need to point to the proper wx-config file (Ive looked and have never found one for w32, even on my xp install, and I don't see where codeblocks is referring to that for the MingW32 Compiler target set by example in forum)

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Cross Compiling with Mingw32...with errors
« Reply #1 on: March 12, 2008, 02:24:23 pm »
Have you read my posting under general ? http://forums.codeblocks.org/index.php/topic,7978.0.html
There is (more or less) step-by-step instruction to setup a cross-compiler for C::B using a precompiled wxWidgets-binary for debian, but it should also work (more or less similar) with self-compiled wxWidgets.

My server is down at the moment, surely until this evening (CET), so no downloads are possible.

Can you post the full command-line of "Build Log" after switching to "Settings -> Compiler and Debugger ... -> Global Compiler Settings -> <your cross-compiler> -> Other Settings (right-most tab) -> Compiler Logging".


Offline ggpr

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: Cross Compiling with Mingw32...with errors
« Reply #2 on: March 12, 2008, 10:51:47 pm »
I followed your tutorial (not your deb packages though as you have stated) and received the same errors.

Thanks for showing me the full command thing...I can see the __WXGTK__ and -pthread.  I should figure out where those are coming from as I don't think they should be there.

Log:
-------------- Build: WinRelease in test2 ---------------

i586-mingw32msvc-g++ -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -Wall  -g     -c /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp -o .objs/test2App.o
i586-mingw32msvc-g++: unrecognized option `-pthread'
In file included from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h:15,
                 from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/app.h:20,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.h:13,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:10:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/defs.h:2806: error: conflicting declaration 'typedef struct GtkWidget*WXWidget'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/defs.h:2597: error: 'WXWidget' has a previous declaration as `typedef void*WXWidget'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/defs.h:2806: error: declaration of `typedef struct GtkWidget*WXWidget'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/defs.h:2597: error: conflicts with previous declaration `typedef void*WXWidget'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/defs.h:2806: error: declaration of `typedef struct GtkWidget*WXWidget'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/defs.h:2597: error: conflicts with previous declaration `typedef void*WXWidget'
In file included from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h:22,
                 from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/app.h:20,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.h:13,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:10:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/cursor.h:24:31: wx/gtk/cursor.h: No such file or directory
In file included from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/utils.h:21,
                 from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/cursor.h:41,
                 from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h:22,
                 from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/app.h:20,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.h:13,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:10:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/filefn.h:388: error: zero width for bit-field `wxAssert_389::BadFileSizeType'
In file included from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h:22,
                 from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/app.h:20,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.h:13,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:10:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/cursor.h: In destructor `wxBusyCursorSuspender::~wxBusyCursorSuspender()':
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/cursor.h:74: error: invalid use of undefined type `const struct wxCursor'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/gdicmn.h:33: error: forward declaration of `const struct wxCursor'
In file included from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/app.h:20,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.h:13,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:10:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h: At global scope:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h:921: error: field `m_cursor' has incomplete type
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h: In constructor `wxSetCursorEvent::wxSetCursorEvent(wxCoord, wxCoord)':
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h:900: error: class `wxSetCursorEvent' does not have any field named `m_cursor'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h: In copy constructor `wxSetCursorEvent::wxSetCursorEvent(const wxSetCursorEvent&)':
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h:907: error: class `wxSetCursorEvent' does not have any field named `m_cursor'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h:907: error: 'const class wxSetCursorEvent' has no member named 'm_cursor'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h: In member function `void wxSetCursorEvent::SetCursor(const wxCursor&)':
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h:913: error: `m_cursor' was not declared in this scope
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h: In member function `const wxCursor& wxSetCursorEvent::GetCursor() const':
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h:914: error: `m_cursor' was not declared in this scope
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h: In member function `bool wxSetCursorEvent::HasCursor() const':
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h:915: error: `m_cursor' was not declared in this scope
In file included from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.h:13,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:10:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/app.h:570:32: wx/gtk/app.h: No such file or directory
In file included from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.h:13,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:10:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/app.h: In constructor `wxAppInitializer::wxAppInitializer(wxAppConsole*(*)())':
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/app.h:630: error: `wxApp' has not been declared
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/app.h:630: error: `SetInitializerFunction' was not declared in this scope
In file included from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:10:
/home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.h: At global scope:
/home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.h:16: error: expected class-name before '{' token
In file included from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:24,
                 from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/menu.h:24,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2Main.h:14,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:13:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/font.h:233:29: wx/gtk/font.h: No such file or directory
In file included from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:25,
                 from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/menu.h:24,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2Main.h:14,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:13:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/colour.h:135:31: wx/gtk/colour.h: No such file or directory
In file included from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:26,
                 from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/menu.h:24,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2Main.h:14,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:13:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/region.h:224:31: wx/gtk/region.h: No such file or directory
In file included from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:26,
                 from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/menu.h:24,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2Main.h:14,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:13:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/region.h: In member function `bool wxRegionBase::Intersect(const wxRect&)':
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/region.h:251: error: invalid use of undefined type `struct wxRegion'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/gdicmn.h:38: error: forward declaration of `struct wxRegion'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/region.h: In member function `bool wxRegionBase::Subtract(const wxRect&)':
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/region.h:256: error: invalid use of undefined type `struct wxRegion'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/gdicmn.h:38: error: forward declaration of `struct wxRegion'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/region.h: In member function `bool wxRegionBase::Xor(const wxRect&)':
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/region.h:261: error: invalid use of undefined type `struct wxRegion'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/gdicmn.h:38: error: forward declaration of `struct wxRegion'
In file included from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:33,
                 from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/menu.h:24,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2Main.h:14,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:13:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/palette.h:40:37: wx/generic/paletteg.h: No such file or directory
In file included from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:37,
                 from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/menu.h:24,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2Main.h:14,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:13:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/accel.h:155:30: wx/gtk/accel.h: No such file or directory
In file included from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/menu.h:24,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2Main.h:14,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:13:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h: At global scope:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:82: error: field `font' has incomplete type
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:85: error: field `colFg' has incomplete type
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:89: error: field `colBg' has incomplete type
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:1196: error: field `m_cursor' has incomplete type
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:1197: error: field `m_font' has incomplete type
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:1198: error: field `m_backgroundColour' has incomplete type
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:1199: error: field `m_foregroundColour' has incomplete type
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:1206: error: field `m_updateRegion' has incomplete type
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:1211: error: field `m_acceleratorTable' has incomplete type
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:1259: error: field `m_palette' has incomplete type
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h: In member function `virtual void wxWindowBase::SetAcceleratorTable(const wxAcceleratorTable&)':
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:657: error: `m_acceleratorTable' was not declared in this scope
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h: In member function `wxAcceleratorTable* wxWindowBase::GetAcceleratorTable()':
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:659: error: `m_acceleratorTable' was not declared in this scope
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h: In member function `const wxRegion& wxWindowBase::GetUpdateRegion() const':
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:748: error: `m_updateRegion' was not declared in this scope
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h: In member function `wxRegion& wxWindowBase::GetUpdateRegion()':
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:749: error: `m_updateRegion' was not declared in this scope
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h: In member function `const wxCursor& wxWindowBase::GetCursor() const':
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:837: error: `m_cursor' was not declared in this scope
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h: In member function `wxPalette wxWindowBase::GetPalette() const':
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:1114: error: return type `struct wxPalette' is incomplete
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:1114: error: `m_palette' was not declared in this scope
In file included from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/menu.h:24,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2Main.h:14,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:13:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/window.h:1452:31: wx/gtk/window.h: No such file or directory
Process terminated with status 1 (0 minutes, 5 seconds)
50 errors, 0 warnings
 
Log2 (Other compiler settings, and I see it has the __WXGTK__ coming from somewhere as well)

-------------- Build: Win32 in test2 ---------------

i586-mingw32msvc-g++ -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -Wall  -g  -g -Wl,--subsystem,windows -mwindows -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -DSTRICT -DHAVE_W32API_H -D__MXMSW__ -D__WXMSW__ -D__WINDOWS__   -I/usr/i586-mingw32msvc/include  -c /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp -o .objs/test2App.o
i586-mingw32msvc-g++: unrecognized option `-pthread'
In file included from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/platform.h:279,
                 from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/defs.h:21,
                 from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h:15,
                 from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/app.h:20,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.h:13,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:10:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/chkconf.h:1817:9: #error "wxClipboard requires wxDataObject"
In file included from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/event.h:15,
                 from /usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/app.h:20,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.h:13,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:10:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/defs.h:2806: error: conflicting declaration 'typedef struct GtkWidget*WXWidget'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/defs.h:2597: error: 'WXWidget' has a previous declaration as `typedef void*WXWidget'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/defs.h:2806: error: declaration of `typedef struct GtkWidget*WXWidget'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/defs.h:2597: error: conflicts with previous declaration `typedef void*WXWidget'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/defs.h:2806: error: declaration of `typedef struct GtkWidget*WXWidget'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/wx/defs.h:2597: error: conflicts with previous declaration `typedef void*WXWidget'
...<shortened to fit in this post>...
Process terminated with status 1 (0 minutes, 2 seconds)
17 errors, 0 warnings
 
« Last Edit: March 12, 2008, 11:04:01 pm by ggpr »

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Cross Compiling with Mingw32...with errors
« Reply #3 on: March 12, 2008, 11:04:35 pm »
Do you use the standard "wx-config"-call generated by wizard ?

Adding " --host=i586-mingw32msvc " might work.

Can you please post the output of
Code
wx-config --list
should be something like:
Code

    Default config is gtk2-unicode-release-2.8

  Default config will be used for output

  Alternate matches:
    base-unicode-debug-2.8
    base-unicode-release-2.8
    gtk2-unicode-debug-2.8

  Also available in /usr:
    i586-mingw32msvc-msw-unicode-release-2.8
    i586-mingw32msvc-msw-unicode-release-static-2.8

The output of
Code
wx-config  --host=i586-mingw32msvc --static --cflags
is
Code
-I/usr/i586-mingw32msvc/lib/wx/include/i586-mingw32msvc-msw-unicode-release-static-2.8 -I/usr/i586-mingw32msvc/include/wx-2.8 -D__WXMSW__ -mthreads

Without the "--static" it would not run on Windows, at least not outof the box.

Offline ggpr

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: Cross Compiling with Mingw32...with errors
« Reply #4 on: March 13, 2008, 01:10:52 am »
I'm thinking I have to many different versions of the library now

from the anywhere spot:
   Default config is gtk2-unicode-release-2.8

  Default config will be used for output

  Alternate matches:
    base-unicode-debug-2.8
    base-unicode-release-2.8


from /usr/local/i586-mingw32/bin$ ./wx-config --list

    Default config is i586-mingw32msvc-msw-ansi-release-2.8

  Default config will be used for output

I can't find a wx-config or a lib/wx directory in /usr/i586-mingw32msvc/....
I'm thinking the wx-config related to this is /usr/bin/wx-config
« Last Edit: March 13, 2008, 01:17:22 am by ggpr »

Offline ggpr

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: Cross Compiling with Mingw32...with errors
« Reply #5 on: March 13, 2008, 01:16:25 am »
directory structure of some things (the directory I compiled seems to have more support):

ls -R /usr/i586-mingw32msvc/ | grep ./
/usr/i586-mingw32msvc/:
/usr/i586-mingw32msvc/bin:
/usr/i586-mingw32msvc/include:
/usr/i586-mingw32msvc/include/ddk:
/usr/i586-mingw32msvc/include/GL:
/usr/i586-mingw32msvc/include/sys:
/usr/i586-mingw32msvc/lib:
/usr/i586-mingw32msvc/lib/ldscripts:

/usr/i586-mingw32msvc$ ls -R /usr/local/i586-mingw32/ | grep ./
/usr/local/i586-mingw32/:
/usr/local/i586-mingw32/bin:
/usr/local/i586-mingw32/include:
/usr/local/i586-mingw32/include/wx-2.8:
/usr/local/i586-mingw32/include/wx-2.8/wx:
/usr/local/i586-mingw32/include/wx-2.8/wx/aui:
/usr/local/i586-mingw32/include/wx-2.8/wx/generic:
/usr/local/i586-mingw32/include/wx-2.8/wx/html:
/usr/local/i586-mingw32/include/wx-2.8/wx/msw:
/usr/local/i586-mingw32/include/wx-2.8/wx/msw/ole:
/usr/local/i586-mingw32/include/wx-2.8/wx/protocol:
/usr/local/i586-mingw32/include/wx-2.8/wx/richtext:
/usr/local/i586-mingw32/include/wx-2.8/wx/xml:
/usr/local/i586-mingw32/include/wx-2.8/wx/xrc:
/usr/local/i586-mingw32/lib:
/usr/local/i586-mingw32/lib/wx:
/usr/local/i586-mingw32/lib/wx/config:
/usr/local/i586-mingw32/lib/wx/include:
/usr/local/i586-mingw32/lib/wx/include/i586-mingw32msvc-msw-ansi-release-2.8:
/usr/local/i586-mingw32/lib/wx/include/i586-mingw32msvc-msw-ansi-release-2.8/wx:
/usr/local/i586-mingw32/lib/wx/include/i586-mingw32msvc-msw-ansi-release-2.8/wx/msw:
/usr/local/i586-mingw32/share:
/usr/local/i586-mingw32/share/aclocal:
/usr/local/i586-mingw32/share/bakefile:
/usr/local/i586-mingw32/share/bakefile/presets:
/usr/local/i586-mingw32/share/locale:
/usr/local/i586-mingw32/share/locale/ca:
/usr/local/i586-mingw32/share/locale/ca/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/cs:
/usr/local/i586-mingw32/share/locale/cs/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/da:
/usr/local/i586-mingw32/share/locale/da/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/de:
/usr/local/i586-mingw32/share/locale/de/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/el:
/usr/local/i586-mingw32/share/locale/el/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/es:
/usr/local/i586-mingw32/share/locale/es/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/fi:
/usr/local/i586-mingw32/share/locale/fi/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/fr:
/usr/local/i586-mingw32/share/locale/fr/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/hu:
/usr/local/i586-mingw32/share/locale/hu/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/id:
/usr/local/i586-mingw32/share/locale/id/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/it:
/usr/local/i586-mingw32/share/locale/it/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/ja:
/usr/local/i586-mingw32/share/locale/ja/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/nl:
/usr/local/i586-mingw32/share/locale/nl/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/pl:
/usr/local/i586-mingw32/share/locale/pl/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/ru:
/usr/local/i586-mingw32/share/locale/ru/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/sl:
/usr/local/i586-mingw32/share/locale/sl/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/sv:
/usr/local/i586-mingw32/share/locale/sv/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/tr:
/usr/local/i586-mingw32/share/locale/tr/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/uk:
/usr/local/i586-mingw32/share/locale/uk/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/zh:
/usr/local/i586-mingw32/share/locale/zh/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/zh_CN:
/usr/local/i586-mingw32/share/locale/zh_CN/LC_MESSAGES:
/usr/local/i586-mingw32/share/locale/zh_TW:
/usr/local/i586-mingw32/share/locale/zh_TW/LC_MESSAGES:



Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Cross Compiling with Mingw32...with errors
« Reply #6 on: March 13, 2008, 01:27:22 am »
You can try to configure the sources with:
Code
./configure --prefix=/usr/i586-mingw32msvc \
    --host=i586-mingw32msvc \
    --build=`./config.guess` \
    --enable-unicode \
    --disable-shared

Offline ggpr

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: Cross Compiling with Mingw32...with errors
« Reply #7 on: March 13, 2008, 01:36:51 am »
I renamed /usr/bin/wx-config
and created a symbolic link /usr/bin/wx-config -> /usr/local/i586.../bin/wx-config

Ive also renamed /usr/i586...
and created a symbolic link /usr/i586... -> /usr/local/i586...


weird thing is, I still see:
i586-mingw32msvc-g++ -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -Wall  -g     -c home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp -o .objs/test2App.o

Offline ggpr

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: Cross Compiling with Mingw32...with errors
« Reply #8 on: March 13, 2008, 01:53:46 am »
btw... with --static I have no available sources.

without it I now have:

-------------- Build: WinRelease2 in test2 ---------------

i586-mingw32msvc-g++ -g -I/usr/local/i586-mingw32/lib/wx/include/i586-mingw32msvc-msw-ansi-release-2.8 -I/usr/local/i586-mingw32/include/wx-2.8 -DWXUSINGDLL -D__WXMSW__ -mthreads      -c /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp -o .objs/test2App.o
In file included from /usr/local/i586-mingw32/include/wx-2.8/wx/platform.h:563,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/defs.h:21,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/event.h:15,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/app.h:20,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.h:13,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:10:
/usr/local/i586-mingw32/include/wx-2.8/wx/msw/gccpriv.h:22:24: _mingw.h: No such file or directory
/usr/local/i586-mingw32/include/wx-2.8/wx/msw/gccpriv.h:41:20: w32api.h: No such file or directory
In file included from /usr/local/i586-mingw32/include/wx-2.8/wx/defs.h:521,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/event.h:15,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/app.h:20,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.h:13,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:10:
/usr/local/i586-mingw32/include/wx-2.8/wx/debug.h:18:21: assert.h: No such file or directory
In file included from /usr/lib/gcc/i586-mingw32msvc/3.4.5/include/syslimits.h:7,
                 from /usr/lib/gcc/i586-mingw32msvc/3.4.5/include/limits.h:11,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/debug.h:20,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/defs.h:521,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/event.h:15,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/app.h:20,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.h:13,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:10:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/include/limits.h:122:61: limits.h: No such file or directory
In file included from /usr/local/i586-mingw32/include/wx-2.8/wx/debug.h:22,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/defs.h:521,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/event.h:15,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/app.h:20,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.h:13,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:10:
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:21:44: stdio.h: No such file or directory
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:101:27: wchar.h: No such file or directory
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:694:27: ctype.h: No such file or directory
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:695:28: string.h: No such file or directory
In file included from /usr/local/i586-mingw32/include/wx-2.8/wx/debug.h:22,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/defs.h:521,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/event.h:15,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/app.h:20,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.h:13,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:10:
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:842: error: `size_t' does not name a type
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:997: error: `size_t' has not been declared
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:997: error: ISO C++ forbids declaration of `len' with no type
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:1002: error: `size_t' has not been declared
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:1002: error: ISO C++ forbids declaration of `len' with no type
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:1278: error: `size_t' does not name a type
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:1279: error: `size_t' does not name a type
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:1367: error: `size_t' has not been declared
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:1368: error: ISO C++ forbids declaration of `len' with no type
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h: In function `char* wxTmemchr(const void*, int, int)':
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:1368: error: `memchr' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h: At global scope:
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:1369: error: `size_t' has not been declared
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:1370: error: ISO C++ forbids declaration of `len' with no type
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h: In function `int wxTmemcmp(const void*, const void*, int)':
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:1370: error: `memcmp' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h: At global scope:
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:1371: error: `size_t' has not been declared
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:1372: error: ISO C++ forbids declaration of `len' with no type
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h: In function `char* wxTmemcpy(void*, const void*, int)':
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:1372: error: `memcpy' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h: At global scope:
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:1373: error: `size_t' has not been declared
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:1374: error: ISO C++ forbids declaration of `len' with no type
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h: In function `char* wxTmemmove(void*, const void*, int)':
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:1374: error: `memmove' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h: At global scope:
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:1375: error: `size_t' has not been declared
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:1376: error: ISO C++ forbids declaration of `len' with no type
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h: In function `char* wxTmemset(void*, int, int)':
/usr/local/i586-mingw32/include/wx-2.8/wx/wxchar.h:1376: error: `memset' was not declared in this scope
In file included from /usr/local/i586-mingw32/include/wx-2.8/wx/event.h:15,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/app.h:20,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.h:13,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:10:
/usr/local/i586-mingw32/include/wx-2.8/wx/defs.h:660:27: sys/types.h: No such file or directory
In file included from /usr/local/i586-mingw32/include/wx-2.8/wx/memory.h:16,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/object.h:20,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/event.h:17,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/app.h:20,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.h:13,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:10:
/usr/local/i586-mingw32/include/wx-2.8/wx/string.h:43:22: stdlib.h: No such file or directory
In file included from /usr/local/i586-mingw32/include/wx-2.8/wx/string.h:55,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/memory.h:16,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/object.h:20,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/event.h:17,
                 from /usr/local/i586-mingw32/include/wx-2.8/wx/app.h:20,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.h:13,
                 from /home/ggpr/Desktop/Stuff/programming/test2/test2/test2App.cpp:10:
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h: In constructor `wxCharBuffer::wxCharBuffer(const char*)':
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h:127: error: `strdup' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h: In constructor `wxCharBuffer::wxCharBuffer(size_t)':
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h:127: error: `malloc' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h: In destructor `wxCharBuffer::~wxCharBuffer()':
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h:127: error: `free' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h: In member function `void wxCharBuffer::reset()':
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h:127: error: `free' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h: In member function `wxCharBuffer& wxCharBuffer::operator=(const char*)':
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h:127: error: `free' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h:127: error: `strdup' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h: In member function `wxCharBuffer& wxCharBuffer::operator=(const wxCharBuffer&)':
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h:127: error: `free' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h: In member function `bool wxCharBuffer::extend(size_t)':
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h:127: error: `realloc' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h: In constructor `wxWCharBuffer::wxWCharBuffer(size_t)':
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h:134: error: `malloc' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h: In destructor `wxWCharBuffer::~wxWCharBuffer()':
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h:134: error: `free' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h: In member function `void wxWCharBuffer::reset()':
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h:134: error: `free' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h: In member function `wxWCharBuffer& wxWCharBuffer::operator=(const wchar_t*)':
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h:134: error: `free' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h: In member function `wxWCharBuffer& wxWCharBuffer::operator=(const wxWCharBuffer&)':
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h:134: error: `free' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h: In member function `bool wxWCharBuffer::extend(size_t)':
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h:134: error: `realloc' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h: In constructor `wxMemoryBufferData::wxMemoryBufferData(size_t)':
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h:176: error: `malloc' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h: In destructor `wxMemoryBufferData::~wxMemoryBufferData()':
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h:179: error: `free' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h: In member function `void wxMemoryBufferData::ResizeIfNeeded(size_t)':
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h:187: error: `realloc' was not declared in this scope
/usr/local/i586-mingw32/include/wx-2.8/wx/buffer.h:190: error: `free' was not declared in this scope
Process terminated with status 1 (0 minutes, 7 seconds)
50 errors, 0 warnings
 

but
locate _mingw.h
/spare/Stuff/wxWidgets-2.8.7/build/wince/missing/.svn/prop-base/_mingw.h.svn-base
/spare/Stuff/wxWidgets-2.8.7/build/wince/missing/.svn/props/_mingw.h.svn-work
/spare/Stuff/wxWidgets-2.8.7/build/wince/missing/.svn/text-base/_mingw.h.svn-base
/spare/Stuff/wxWidgets-2.8.7/build/wince/missing/.svn/wcprops/_mingw.h.svn-work
/spare/Stuff/wxWidgets-2.8.7/build/wince/missing/_mingw.h

Note: /spare/Stuff = download and extract/compile directory



Offline ggpr

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: Cross Compiling with Mingw32...with errors
« Reply #9 on: March 13, 2008, 01:59:41 am »
the configure line you gave me gives an error saying that it couldn't create the simple program

**inside config.log**
configure:12559: i586-mingw32msvc-gcc    conftest.c  >&5
/tmp/ccRQaFWa.s: Assembler messages:
/tmp/ccRQaFWa.s:2: Error: unknown pseudo-op: `.def'
/tmp/ccRQaFWa.s:2: Error: unknown pseudo-op: `.scl'
/tmp/ccRQaFWa.s:2: Error: unrecognized symbol type ""
/tmp/ccRQaFWa.s:2: Error: junk at end of line, first unrecognized character is `3'
/tmp/ccRQaFWa.s:2: Error: unknown pseudo-op: `.endef'
/tmp/ccRQaFWa.s:5: Error: unknown pseudo-op: `.def'
/tmp/ccRQaFWa.s:5: Error: unknown pseudo-op: `.scl'
/tmp/ccRQaFWa.s:5: Error: unrecognized symbol type ""
/tmp/ccRQaFWa.s:5: Error: junk at end of line, first unrecognized character is `3'
/tmp/ccRQaFWa.s:5: Error: unknown pseudo-op: `.endef'
configure:12562: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "wxWidgets"
| #define PACKAGE_TARNAME "wxwidgets"
| #define PACKAGE_VERSION "2.8.7"
| #define PACKAGE_STRING "wxWidgets 2.8.7"
| #define PACKAGE_BUGREPORT "[email protected]"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:12601: error: C compiler cannot create executables
See `config.log' for more details.

Offline ggpr

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: Cross Compiling with Mingw32...with errors
« Reply #10 on: March 13, 2008, 08:45:45 am »
YAY, one of my combinations of random thoughts got me somewhere...it now compiles... but 4 errors during linking(this is super progress)...any ideas, am I just missing a library or something simple (hopefully)?
reminder, this code (which is  a basic frame from wizard) still will compile with normal gnu compiler for linux.

ps, if anyone got wxwidgets to work with mingw32 as I am trying to do with ubuntu on a 32bit os and have successfully got it going...I would love to try another attempt...as I am sure there is a common foundation block that is messed up with what ever I am doing.  My head is starting to hurt.

-------------- Build: Win32 in test2 ---------------

i586-mingw32msvc-g++ -L/usr/i586-mingw32msvc/lib  -o test2 .objs/test2App.o .objs/test2Main.o   -L/usr/local/i586-mingw32/lib  -mthreads  -Wl,--subsystem,windows -mwindows -lwx_msw_richtext-2.8-i586-mingw32msvc -lwx_msw_aui-2.8-i586-mingw32msvc -lwx_msw_xrc-2.8-i586-mingw32msvc -lwx_msw_qa-2.8-i586-mingw32msvc -lwx_msw_html-2.8-i586-mingw32msvc -lwx_msw_adv-2.8-i586-mingw32msvc -lwx_msw_core-2.8-i586-mingw32msvc -lwx_base_xml-2.8-i586-mingw32msvc -lwx_base_net-2.8-i586-mingw32msvc -lwx_base-2.8-i586-mingw32msvc   
.objs/test2Main.o: In function `_ZN10test2FrameC2EP8wxWindowi':
/home/ggpr/Desktop/Stuff/programming/test2/test2/test2Main.cpp:72: undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
/home/ggpr/Desktop/Stuff/programming/test2/test2/test2Main.cpp:72: undefined reference to `wxWindow::UnregisterHotKey(int)'
/home/ggpr/Desktop/Stuff/programming/test2/test2/test2Main.cpp:72: undefined reference to `wxWindow::RegisterHotKey(int, int, int)'
/home/ggpr/Desktop/Stuff/programming/test2/test2/test2Main.cpp:72: undefined reference to `wxWindow::UnregisterHotKey(int)'
Info: resolving wxAppConsole::ms_appInstance        by linking to __imp___ZN12wxAppConsole14ms_appInstanceE (auto-import)
Info: resolving wxAppConsole::ms_appInitFn        by linking to __imp___ZN12wxAppConsole12ms_appInitFnE (auto-import)
Info: resolving wxStringBase::npos       by linking to __imp___ZN12wxStringBase4nposE (auto-import)
Info: resolving wxFrame::sm_eventTable       by linking to __imp___ZN7wxFrame13sm_eventTableE (auto-import)
Info: resolving _wxDefaultSize by linking to __imp__wxDefaultSize (auto-import)
Info: resolving _wxDefaultPosition by linking to __imp__wxDefaultPosition (auto-import)
Info: resolving _wxEmptyString by linking to __imp__wxEmptyString (auto-import)
Info: resolving _wxDefaultValidator by linking to __imp__wxDefaultValidator (auto-import)
Info: resolving _wxEVT_COMMAND_BUTTON_CLICKED by linking to __imp__wxEVT_COMMAND_BUTTON_CLICKED (auto-import)
Info: resolving _wxEVT_COMMAND_MENU_SELECTED by linking to __imp__wxEVT_COMMAND_MENU_SELECTED (auto-import)
Info: resolving vtable for wxStatusBarby linking to __imp___ZTV11wxStatusBar (auto-import)
Info: resolving vtable for wxMenuby linking to __imp___ZTV6wxMenu (auto-import)
Info: resolving vtable for wxMenuBaseby linking to __imp___ZTV10wxMenuBase (auto-import)
Info: resolving vtable for wxListBaseby linking to __imp___ZTV10wxListBase (auto-import)
Info: resolving vtable for wxObjectby linking to __imp___ZTV8wxObject (auto-import)
Info: resolving vtable for wxHtmlWindowby linking to __imp___ZTV12wxHtmlWindow (auto-import)
Info: resolving vtable for wxHtmlWindowMouseHelperby linking to __imp___ZTV23wxHtmlWindowMouseHelper (auto-import)
Info: resolving vtable for wxBitmapby linking to __imp___ZTV8wxBitmap (auto-import)
Info: resolving vtable for wxGDIImageby linking to __imp___ZTV10wxGDIImage (auto-import)
Info: resolving vtable for wxGDIObjectby linking to __imp___ZTV11wxGDIObject (auto-import)
Info: resolving vtable for wxScrolledWindowby linking to __imp___ZTV16wxScrolledWindow (auto-import)
Info: resolving vtable for wxPanelby linking to __imp___ZTV7wxPanel (auto-import)
Info: resolving vtable for wxWindowby linking to __imp___ZTV8wxWindow (auto-import)
Info: resolving vtable for wxButtonby linking to __imp___ZTV8wxButton (auto-import)
Info: resolving vtable for wxControlby linking to __imp___ZTV9wxControl (auto-import)
Info: resolving vtable for wxControlBaseby linking to __imp___ZTV13wxControlBase (auto-import)
Info: resolving vtable for wxImageby linking to __imp___ZTV7wxImage (auto-import)
Info: resolving vtable for wxStaticBitmapby linking to __imp___ZTV14wxStaticBitmap (auto-import)
Info: resolving vtable for wxStaticBitmapBaseby linking to __imp___ZTV18wxStaticBitmapBase (auto-import)
Info: resolving vtable for wxFrameby linking to __imp___ZTV7wxFrame (auto-import)
Info: resolving _wxEVT_NULL by linking to __imp__wxEVT_NULL (auto-import)
Info: resolving vtable for wxwxMenuItemListNodeby linking to __imp___ZTV20wxwxMenuItemListNode (auto-import)
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 5 seconds)
4 errors, 0 warnings
 
« Last Edit: March 13, 2008, 09:29:51 am by ggpr »

Offline ggpr

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: Cross Compiling with Mingw32...with errors
« Reply #11 on: March 14, 2008, 04:43:12 am »
Just figured I would say that I solved this problem as the last encode was missing the `wx-config --cflags` for the compiler options
^for someone else with the same error