Hello ,
J have a big problem with compiling a wxPython module :
J downloaded an unpacked an archive: "wxPythonSrc-2.4.2.4.tar.gz" from a
official wxPython site. J'm following by instructions from "README.1st.txt". For a first stage ( compiling a wxWindows ) everything was ok , j have a
glib-2.0 , gtk2 , pango, pkg etc. in a lastest versions. When j tried compiling a wxPython module by instructions from README.1st.txt j'm obtained somewhat like
this:
"
In file included from src/gtk/printfw.cpp:62:
src/printfw.h:16: error: syntax error before `{' token
src/printfw.h: In function `void _setCallbackInfo(PyObject*, PyObject*, int)':
src/printfw.h:32: error: `m_myInst' undeclared (first use this function)
src/printfw.h:32: error: (Each undeclared identifier is reported only once for each function it appears in.)
src/printfw.h: At global scope:
src/printfw.h:32: error: syntax error before `private'
src/gtk/printfw.cpp:105: error: invalid use of undefined type `class wxPyPrintout'
src/printfw.h:16: error: forward declaration of `class wxPyPrintout'
src/gtk/printfw.cpp: In member function `void wxPyPrintout::GetPageInfo(int*, int*, int*, int*)':
src/gtk/printfw.cpp:142: error: `wxPrintout' undeclared (first use this function)
src/gtk/printfw.cpp:142: error: syntax error before `::' token
src/gtk/printfw.cpp: At global scope:
src/gtk/printfw.cpp:145: error: invalid use of undefined type `class wxPyPrintout'
src/printfw.h:16: error: forward declaration of `class wxPyPrintout'
src/gtk/printfw.cpp: In member function `void wxPyPrintout::base_GetPageInfo(int*, int*, int*, int*)':
src/gtk/printfw.cpp:146: error: syntax error before `::' token
src/gtk/printfw.cpp: At global scope:
src/gtk/printfw.cpp:150: error: invalid use of undefined type `class wxPyPrintout'
src/printfw.h:16: error: forward declaration of `class wxPyPrintout'
src/gtk/printfw.cpp: In member function `bool wxPyPrintout::OnBeginDocument(int, int)':
src/gtk/printfw.cpp:150: error: syntax error before `::' token
src/gtk/printfw.cpp: At global scope:
src/gtk/printfw.cpp:150: error: invalid use of undefined type `class wxPyPrintout'
src/printfw.h:16: error: forward declaration of `class wxPyPrintout'
src/gtk/printfw.cpp: In member function `bool wxPyPrintout::base_OnBeginDocument(int, int)':
src/gtk/printfw.cpp:150: error: syntax error before `::' token
src/gtk/printfw.cpp:150: warning: no return statement in function returning non-void
src/gtk/printfw.cpp: At global scope:
src/gtk/printfw.cpp:151: error: invalid use of undefined type `class wxPyPrintout' (...)"
( sorry english is not my native language ... )
Anyone can help me ? Thanks in advance
Gabriel
Hello ,
J have a big problem with compiling a wxPython module :
J downloaded an unpacked an archive: "wxPythonSrc-2.4.2.4.tar.gz" from a
official wxPython site. J'm following by instructions from "README.1st.txt". For a first stage ( compiling a wxWindows ) everything was ok , j have a
glib-2.0 , gtk2 , pango, pkg etc. in a lastest versions. When j tried compiling a wxPython module by instructions from README.1st.txt j'm obtained somewhat like
this:
"
In file included from src/gtk/printfw.cpp:62:
src/printfw.h:16: error: syntax error before `{' token
This is caused by a mis-configuration of wxGTK2. Go back to that step and add --enable-printarch to the configure command. Then check the output and the config.log to ensure that it was actually enabled. If I remember correctly if there is a certain package missing then the printing architecture is automatically disabled, but I don't remember which package it is.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
was generating erros like above . J have installed two versions of gtk..
gtk1.2 and gtk2.2 maybe this is a source of problems ...?
Anyone have an idea for resolving this problem ...?
( sorry for my poor English ...)
Thanks in advance
···
On Wed, 17 Dec 2003 10:44:59 -0800, Robin Dunn <robin@alldunn.com> wrote:
gkieruzel wrote:
Hello ,
J have a big problem with compiling a wxPython module :
J downloaded an unpacked an archive: "wxPythonSrc-2.4.2.4.tar.gz" from a
official wxPython site. J'm following by instructions from "README.1st.txt". For a first stage ( compiling a wxWindows ) everything was ok , j have a
glib-2.0 , gtk2 , pango, pkg etc. in a lastest versions. When j tried compiling a wxPython module by instructions from README.1st.txt j'm obtained somewhat like
this:
"
In file included from src/gtk/printfw.cpp:62:
src/printfw.h:16: error: syntax error before `{' token
This is caused by a mis-configuration of wxGTK2. Go back to that step and add --enable-printarch to the configure command. Then check the output and the config.log to ensure that it was actually enabled. If I remember correctly if there is a certain package missing then the printing architecture is automatically disabled, but I don't remember which package it is.
On Wed, 17 Dec 2003 10:44:59 -0800, Robin Dunn <robin@alldunn.com> wrote:
This is caused by a mis-configuration of wxGTK2. Go back to that step and add --enable-printarch to the configure command. Then check the output and the config.log to ensure that it was actually enabled. If I remember correctly if there is a certain package missing then the printing architecture is automatically disabled, but I don't remember which package it is.
Hmm this solution does bot work ...Below is my configure options for wxWindows from
"wxPythonSrc-2.4.2.4.tar.gz" package:
was generating erros like above . J have installed two versions of gtk..
gtk1.2 and gtk2.2 maybe this is a source of problems ...?
No, they can coexist fine.
Did you check the output of the configure step as I mentioned to ensure that the print architecture was actually enabled? It looks like the wxGTK2 printing architecture is dependant on the pangoft2 lib. Do you have it (and it's devel package) installed?
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
On Thu, 18 Dec 2003 12:43:44 -0800, Robin Dunn <robin@alldunn.com> wrote:
gkieruzel wrote:
On Wed, 17 Dec 2003 10:44:59 -0800, Robin Dunn <robin@alldunn.com> >> wrote:
This is caused by a mis-configuration of wxGTK2. Go back to that step and add --enable-printarch to the configure command. Then check the output and the config.log to ensure that it was actually enabled. If I remember correctly if there is a certain package missing then the printing architecture is automatically disabled, but I don't remember which package it is.
Hmm this solution does bot work ...Below is my configure options for wxWindows from
"wxPythonSrc-2.4.2.4.tar.gz" package:
was generating erros like above . J have installed two versions of gtk..
gtk1.2 and gtk2.2 maybe this is a source of problems ...?
No, they can coexist fine.
Did you check the output of the configure step as I mentioned to ensure that the print architecture was actually enabled? It looks like the wxGTK2 printing architecture is dependant on the pangoft2 lib. Do you have it (and it's devel package) installed?