1. wxGTK and wxEuphoria on Fedora

Can anyone give some advice about how to install wxGTK and wxEuphoria on Fedora 10? I don't use Fedora, but this is for someone trying to get my DMAK program happening. I don't have a clue.

He says: "While working on wxEuphoria, I came to a compile error I can't fix for wxSprint.o [see the screendump I attached for the detail] "

 
E_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -DWX_MAJOR=2 -DWX_MINOR=8 
-DWX_BUGFIX=9 -DWX_LIB_BUILD=12 wxScrollBar.cpp 
g++ -c -D__WXGTK__     -I.  -I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 -I 
/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -I/u 
sr/local/lib/wx/include/gtk2-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FIL 
E_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -DWX_MAJOR=2 -DWX_MINOR=8 
-DWX_BUGFIX=9 -DWX_LIB_BUILD=12 wxSizer.cpp 
g++ -c -D__WXGTK__     -I.  -I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 -I 
/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -I/u 
sr/local/lib/wx/include/gtk2-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FIL 
E_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -DWX_MAJOR=2 -DWX_MINOR=8 
-DWX_BUGFIX=9 -DWX_LIB_BUILD=12 wxSplashScreen.cpp 
g++ -c -D__WXGTK__     -I.  -I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 -I 
/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -I/u 
sr/local/lib/wx/include/gtk2-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FIL 
E_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -DWX_MAJOR=2 -DWX_MINOR=8 
-DWX_BUGFIX=9 -DWX_LIB_BUILD=12 wxSprint.cpp 
wxSprint.cpp: In function üobject NewWString(wxChar*)': 
wxSprint.cpp:101: error: cannot convert üwxChar*' to üconst wchar_t*' for argume 
nt ü1' to üsize_t wcslen(const wchar_t*)' 
wxSprint.cpp: In function üobject ESprintfW(object, object)': 
wxSprint.cpp:306: warning: deprecated conversion from string constant to üwxChar 
*' 
make: *** [wxSprint.o] Error 1 
[root@tango src]# 
 

new topic     » topic index » view message » categorize

2. Re: wxGTK and wxEuphoria on Fedora

JerryStory said...

He says: "While working on wxEuphoria, I came to a compile error I can't fix for wxSprint.o [see the screendump I attached for the detail] "

g++ -c -D__WXGTK__     -I.  -I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 -I 
/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -I/u 
sr/local/lib/wx/include/gtk2-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FIL 
E_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -DWX_MAJOR=2 -DWX_MINOR=8 
-DWX_BUGFIX=9 -DWX_LIB_BUILD=12 wxSprint.cpp 
wxSprint.cpp: In function üobject NewWString(wxChar*)': 
wxSprint.cpp:101: error: cannot convert üwxChar*' to üconst wchar_t*' for argume 
nt ü1' to üsize_t wcslen(const wchar_t*)' 
wxSprint.cpp: In function üobject ESprintfW(object, object)': 
wxSprint.cpp:306: warning: deprecated conversion from string constant to üwxChar 
*' 

Looks like he has the ansi version of wxGTK installed, but is trying to build wxEuphoria as Unicode. It could be that the configure script expects to find the wx-config script in /usr/bin, but he may have it in /usr/local/bin, so it is not correctly configuring the build for his system.

Matt

new topic     » goto parent     » topic index » view message » categorize

3. Re: wxGTK and wxEuphoria on Fedora

mattlewis said...
JerryStory said...

He says: "While working on wxEuphoria, I came to a compile error I can't fix for wxSprint.o [see the screendump I attached for the detail] "

g++ -c -D__WXGTK__     -I.  -I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 -I 
/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -I/u 
sr/local/lib/wx/include/gtk2-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FIL 
E_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread  -DWX_MAJOR=2 -DWX_MINOR=8 
-DWX_BUGFIX=9 -DWX_LIB_BUILD=12 wxSprint.cpp 
wxSprint.cpp: In function üobject NewWString(wxChar*)': 
wxSprint.cpp:101: error: cannot convert üwxChar*' to üconst wchar_t*' for argume 
nt ü1' to üsize_t wcslen(const wchar_t*)' 
wxSprint.cpp: In function üobject ESprintfW(object, object)': 
wxSprint.cpp:306: warning: deprecated conversion from string constant to üwxChar 
*' 

Looks like he has the ansi version of wxGTK installed, but is trying to build wxEuphoria as Unicode. It could be that the configure script expects to find the wx-config script in /usr/bin, but he may have it in /usr/local/bin, so it is not correctly configuring the build for his system.

Matt

What should I tell him is the solution?

new topic     » goto parent     » topic index » view message » categorize

4. Re: wxGTK and wxEuphoria on Fedora

Good evening I am the guy Jerry is referring to above / I hope you will be OK with my participation directly.

OK, the character set MAY be mis-configured. I did however copy wx-config from /usr/local/bin to /usr/bin be aware that configure refuses to run without access to the file. My choice to copy seems rather "not elegant"...smile

I have looked thru wx-config and found just a few references to "ansi" but I am not comfortable changing the file. I suspect another issue may be working to stop the compilation? How might I validate all the correct dependencies are present prior to begin the wxEuphoria install? I have a nagging fear that wxGTK, gtk+, or(?), has some condition that is not easily visible on F10 yet.

new topic     » goto parent     » topic index » view message » categorize

5. Re: wxGTK and wxEuphoria on Fedora

verduin said...

Good evening I am the guy Jerry is referring to above / I hope you will be OK with my participation directly.

OK, the character set MAY be mis-configured. I did however copy wx-config from /usr/local/bin to /usr/bin be aware that configure refuses to run without access to the file. My choice to copy seems rather "not elegant"...smile

I have looked thru wx-config and found just a few references to "ansi" but I am not comfortable changing the file. I suspect another issue may be working to stop the compilation? How might I validate all the correct dependencies are present prior to begin the wxEuphoria install? I have a nagging fear that wxGTK, gtk+, or(?), has some condition that is not easily visible on F10 yet.

Rather than moving wx-config, try changing the configure script itself to reference /usr/local/bin. How did you install wxGTK? Did you build it yourself, or use a distro RPM?

Matt

new topic     » goto parent     » topic index » view message » categorize

6. Re: wxGTK and wxEuphoria on Fedora

mattlewis said...

How did you install wxGTK? Did you build it yourself, or use a distro RPM?

Matt

Thanks Matt.

I built wxGTK from source using all the defaults including gtk+2. One disturbing thing (to me) about gtk+2 is that yum could not list "gtk+" as either installed or available at REV2 but was available in REV1. So I did install gtk+1:1.2.10 but wxGTK only permits 1.2.7 and 1.2.3 revisions so I unistalled REV1.

I proceeded on the basis that the configure script would complain about not finding gtk+2 as it did for "with-gtk=1" execution. Wrong?

Also I installed wxPYTHON from RPM for comparison purposes and to my knowledge there is no conflict with wxGTK. Wrong?

Just out of curiosity what is the "correct" location for wx-config script [bin OR local/bin] and is this decision now in flux?

Skip

new topic     » goto parent     » topic index » view message » categorize

7. Re: wxGTK and wxEuphoria on Fedora

verduin said...

I built wxGTK from source using all the defaults including gtk+2. One disturbing thing (to me) about gtk+2 is that yum could not list "gtk+" as either installed or available at REV2 but was available in REV1. So I did install gtk+1:1.2.10 but wxGTK only permits 1.2.7 and 1.2.3 revisions so I unistalled REV1.

I proceeded on the basis that the configure script would complain about not finding gtk+2 as it did for "with-gtk=1" execution. Wrong?

I think that GTK+1.X support is more or less deprecated for wxGTK. I'd only try to use it if you're using some old distro that didn't support GTK2. If you built wxGTK from source, then you should have everything you need. To confirm that it works, try building some of the demos that come with it.

verduin said...

Also I installed wxPYTHON from RPM for comparison purposes and to my knowledge there is no conflict with wxGTK. Wrong?

I've never worked with wxPython, but I suspect that it just adds another layer of library/code above wxGTK, similarly to how wxEuphoria does for euphoria, so I wouldn't expect any conflict.

verduin said...

Just out of curiosity what is the "correct" location for wx-config script [bin OR local/bin] and is this decision now in flux?

Basically, following standard conventions, /usr would be where your distro's package manager installs things, while /usr/local would be where things should be installed if you build them yourself. The configure script should really handle either case, but few people have used it besides myself, and it's so far been somewhat neglected.

Matt

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu