1. Ubuntu Edgy vs wxWidgets

Still gotta problem:

[quote from the wxWidgets website]
 Please notice that Ubuntu packages are only currently available
 for Dapper x86 and Edgy amd64 architectures.
[end quote]

I have Ubuntu Edgy and 32.

I tried the old fashioned way with ./configure etc.
It runs into the usual dependency problems.
Something about GTK+ development files.
I installed all the GTK development stuff that was listed
in the Synaptic Package Manager that seemed possibly relevant.
It still complains.

new topic     » topic index » view message » categorize

2. Re: Ubuntu Edgy vs wxWidgets

Jerry Story wrote:
> 
> Still gotta problem:
> 
> [quote from the wxWidgets website]
>  Please notice that Ubuntu packages are only currently available
>  for Dapper x86 and Edgy amd64 architectures.
> [end quote]
> 
> I have Ubuntu Edgy and 32.
> 
> I tried the old fashioned way with ./configure etc.
> It runs into the usual dependency problems.
> Something about GTK+ development files.
> I installed all the GTK development stuff that was listed
> in the Synaptic Package Manager that seemed possibly relevant.
> It still complains.

OK, I'll take a look at this (dl'ing an edgy vm right now).  In the
mean time, you might try installing this package:

http://packages.ubuntu.com/edgy/libdevel/libwxgtk2.6-dev

Following dependencies, my guess is that you'd ultimately need the gtk+2.0
source package:

http://packages.ubuntu.com/edgy/source/gtk+2.0

It's a previous version of wxWidgets, but they probably share similar 
dependencies.  I saw that there's a 2.8 dev package for feisty:

http://packages.ubuntu.com/feisty/libdevel/libwxgtk2.8-dev

Once I get the vm installed, I'll try to figure out exactly what is 
needed from a vanilla install.

Matt

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

3. Re: Ubuntu Edgy vs wxWidgets

Matt Lewis wrote:
> 
> Once I get the vm installed, I'll try to figure out exactly what is 
> needed from a vanilla install.
> 

OK, I got it to work on an Ubuntu Edgy (6.10) VMWare appliance (and this 
post should be considered guide for other distros, too):

http://www.vmware.com/vmtn/appliances/directory/693

You have to have these things installed:
gcc
g++
libgtk2.0-dev

Don't try to use the Applications->Add/Remove, because it doesn't have
them.  I had to go into synaptic to add these.  Then do the 

$ ./configure &&  make && sudo make install

for wxWidgets.  The binary of my library didn't work, [probably] because 
for whatever reason, it decided differently on whether to use the system 
or wx supplied libraries for tiff and jpeg.  So I had to compile from 
source.  There were several changes I had to make to the Makefile to get 
it to build:

1.  Change top_srcdir and top_builddir to point to the correct directory
2.  Change the definitions of __LIB_TIPP_p and __LIB_JPEG_p to use
    the wx-supplied libaries.  There could be others on your system that
    have the same issue, but the fix is pretty easy:

Find the _LIB_TIPP_p definition in the Makefile.
It should look something like this:
__LIB_TIFF_p  \
	=  -ltiff
#	-lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)

Basically, you want it to be defined to the value that's commented out:
__LIB_TIFF_p  \
	= -lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
#	=  -ltiff

Note that thw -lwxtiff might be missing the 'wx' (my fault).  If so, you
need to put it back.

Once you've made these changes:

$ make && sudo make install

...and you should be ready to go.  It's not ideal, but it should at least 
work for now.  We need to come up with a better way to automate this
(some sort of a configure script, ideally), but I'm not sure exactly how
to go about it, so if anyone has any ideas, I'd really appreciate it.

Matt

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

4. Re: Ubuntu Edgy vs wxWidgets

Matt Lewis wrote:
> You have to have these things installed:
> gcc
> g++
> libgtk2.0-dev
> 
> Don't try to use the Applications->Add/Remove, because it doesn't have
> them.  I had to go into synaptic to add these.  Then do the 

I got libgtk2.0-dev with sudo apt-get install libgtk2.0-dev
That got me a bunch of files that I had trouble getting.
 
> $ ./configure &&  make && sudo make install
> for wxWidgets.

That seemed to work.

> 1.  Change top_srcdir and top_builddir to point to the correct directory

Did that. But nothing went into that directory.

> 2.  Change the definitions of __LIB_TIPP_p and __LIB_JPEG_p to use
>     the wx-supplied libaries.  There could be others on your system that
>     have the same issue, but the fix is pretty easy:

I had difficulty with this part. Couldn't find __LIB_TIPP_p
Didn't understand what to do with __LIB_JPEG_p
 
> Find the _LIB_TIPP_p definition in the Makefile.
> It should look something like this:
> __LIB_TIFF_p  \
> 	=  -ltiff
> #	-lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
> 
> Basically, you want it to be defined to the value that's commented out:
> __LIB_TIFF_p  \
> 	= -lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
> #	=  -ltiff
> 
> Note that thw -lwxtiff might be missing the 'wx' (my fault).  If so, you
> need to put it back.

Done that.

> Once you've made these changes:
> 
> $ make && sudo make install

On make I got a bunch of 'not declared in this scope' errors.

> ...and you should be ready to go.

No such luck.

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

5. Re: Ubuntu Edgy vs wxWidgets

Jerry Story wrote:
> 
> Matt Lewis wrote:
> > You have to have these things installed:
> > gcc
> > g++
> > libgtk2.0-dev
> > 
> > Don't try to use the Applications->Add/Remove, because it doesn't have
> > them.  I had to go into synaptic to add these.  Then do the 
> 
> I got libgtk2.0-dev with sudo apt-get install libgtk2.0-dev
> That got me a bunch of files that I had trouble getting.
>  
> > $ ./configure &&  make && sudo make install
> > for wxWidgets.
> 
> That seemed to work.
> 
> > 1.  Change top_srcdir and top_builddir to point to the correct directory
> 
> Did that. But nothing went into that directory.

I think I was unclear about this.  You need to change the Makefile for 
wxEuphoria.  They should point to wherever you unpacked the source to
wxWidgets.  The values there are where I have them, but you may have
done something differently.

> > 2.  Change the definitions of __LIB_TIPP_p and __LIB_JPEG_p to use
> >     the wx-supplied libaries.  There could be others on your system that
> >     have the same issue, but the fix is pretty easy:
> 
> I had difficulty with this part. Couldn't find __LIB_TIPP_p
> Didn't understand what to do with __LIB_JPEG_p

These also were in the wxEuphoria Makefile.  It's the same procedure
for __LIB_JPEG_p as for __LIB_TIFF_p.


> 
> > Once you've made these changes:
> > 
> > $ make && sudo make install
> 
> On make I got a bunch of 'not declared in this scope' errors.

I think the problem is that top_srcdir and top_builddir aren't set 
correctly.  The wxEuphoria Makefile uses these to find all of the 
wxWidgets headers.  If the compiler can't find them, that's how the
compiler reacts.

Matt

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

6. Re: Ubuntu Edgy vs wxWidgets

Matt Lewis wrote:
> > On make I got a bunch of 'not declared in this scope' errors.
> 
> I think the problem is that top_srcdir and top_builddir aren't set 
> correctly.  The wxEuphoria Makefile uses these to find all of the 
> wxWidgets headers.  If the compiler can't find them, that's how the
> compiler reacts.

Now it says
usr/bin/ld: cannot find -lwxtiff-2.8

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

7. Re: Ubuntu Edgy vs wxWidgets

Jerry Story wrote:
> 
> Matt Lewis wrote:
> > > On make I got a bunch of 'not declared in this scope' errors.
> > 
> > I think the problem is that top_srcdir and top_builddir aren't set 
> > correctly.  The wxEuphoria Makefile uses these to find all of the 
> > wxWidgets headers.  If the compiler can't find them, that's how the
> > compiler reacts.
> 
> Now it says
> usr/bin/ld: cannot find -lwxtiff-2.8

OK, it sounds like it wanted to use the system version of libtiff.  Try
changing it back to the -ltiff way...

Matt

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

8. Re: Ubuntu Edgy vs wxWidgets

Matt Lewis wrote:
> 
> Jerry Story wrote:
> > 
> > Matt Lewis wrote:
> > > > On make I got a bunch of 'not declared in this scope' errors.
> > > 
> > > I think the problem is that top_srcdir and top_builddir aren't set 
> > > correctly.  The wxEuphoria Makefile uses these to find all of the 
> > > wxWidgets headers.  If the compiler can't find them, that's how the
> > > compiler reacts.
> > 
> > Now it says
> > usr/bin/ld: cannot find -lwxtiff-2.8
> 
> OK, it sounds like it wanted to use the system version of libtiff.  Try
> changing it back to the -ltiff way...

Now it can't find -ltiff

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

9. Re: Ubuntu Edgy vs wxWidgets

Jerry Story wrote:
> 
> Now it can't find -ltiff

OK, some more Makefile tinkering, and I discovered that you don't need
to link to those at all. [slaps head]

I've streamlined the Makefile, which you can download directly from the 
repository here (beware wrapping url):

http://wxeuphoria.svn.sourceforge.net/viewvc/*checkout*/wxeuphoria/wxeu/branches/wxeu280/Makefile?revision=63

There are a couple of assumptions made in this version that will be fixed
later on.  I discovered the use of wx-config, which will tell you what 
flags and so forth you need to have.

The ones that are interesting for the Makefile are prefix, libs and 
cppflags:

 $ wx-config --prefix
 $ wx-config --libs
 $ wx-config --cppflags

If you have problems check these three things against variables set in the
Makefile( prefix, EXTRA_LIBS_GUI and CPPFLAGS, respectively).  For the
real release, I'll make sure there's a configure script that does this 
for you.

Thanks for helping me figure this stuff out.

Matt

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

10. Re: Ubuntu Edgy vs wxWidgets

Hi

I'm getting a few cpp cast errors. Heres the output of make with your 
new makefile


g++ -c -D__WXGTK__     -I.  -I/usr/local/include/wx-2.8 
-I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -D__WXGTK__ -O2 -fno-strict-aliasing -pthread -Wall -Wundef
-Wno-ctor-dtor-privacy wxEuphoria.cpp
wxeu.h: In function ‘object box_int(int)’:
wxeu.h:266: warning: comparison is always false due to limited range of data
type
wxEuphoria.cpp: In function ‘object get_event_object(wxEvent&)’:
wxEuphoria.cpp:59: error: cast from ‘wxObject*’ to ‘int’ loses precision
wxEuphoria.cpp: In function ‘object new_wxFrame(object)’:
wxEuphoria.cpp:254: error: cast from ‘wxFrame*’ to ‘int’ loses precision
wxEuphoria.cpp: In function ‘object new_wxWindow(object)’:
wxEuphoria.cpp:259: error: cast from ‘wxWindow*’ to ‘int’ loses precision
wxEuphoria.cpp: In function ‘object new_wxScrolledWindow(object)’:
wxEuphoria.cpp:269: error: cast from ‘wxScrolledWindow*’ to ‘int’ loses
precision
wxEuphoria.cpp: In function ‘object new_wxPanel(object)’:
wxEuphoria.cpp:274: error: cast from ‘wxPanel*’ to ‘int’ loses precision
wxEuphoria.cpp: In function ‘object get_handle(int)’:
wxEuphoria.cpp:302: error: cast from ‘GtkWidget*’ to ‘int’ loses precision
wxEuphoria.cpp: In function ‘object new_wxCursor(object)’:
wxEuphoria.cpp:477: error: cast from ‘wxCursor*’ to ‘int’ loses precision
wxEuphoria.cpp: In function ‘object find_window(int, int)’:
wxEuphoria.cpp:540: error: cast from ‘wxWindow*’ to ‘int’ loses precision
wxEuphoria.cpp: In function ‘object get_top_level_parent(int)’:
wxEuphoria.cpp:569: error: cast from ‘wxWindow*’ to ‘int’ loses precision
make: *** [wxEuphoria.o] Error 1
Press any key to continue...            


Chris

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

11. Re: Ubuntu Edgy vs wxWidgets

ChrisBurch2 wrote:
> 
> Hi
> 
> I'm getting a few cpp cast errors. Heres the output of make with your 
> new makefile
> 
> 
> g++ -c -D__WXGTK__     -I.  -I/usr/local/include/wx-2.8 
> -I/usr/local/lib/wx/include/gtk2-ansi-release-2.8
> -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -O2 -fno-strict-aliasing
> -pthread
> -Wall -Wundef -Wno-ctor-dtor-privacy wxEuphoria.cpp
> wxeu.h: In function ‘object box_int(int)’:
> wxeu.h:266: warning: comparison is always false due to limited range of data
> type
> wxEuphoria.cpp: In function ‘object get_event_object(wxEvent&)’:
> wxEuphoria.cpp:59: error: cast from ‘wxObject*’ to ‘int’ loses precision

This looks like a 64-bit issue.  There are some implicit assumptions,
I suppose, that we're on a 32-bit architecture.  The box_int thing is 
about converting a 32-bit integer to an atom (double) if it's too big
for a euphoria integer.  The other cases are the same.  IIRC, an int
is always 32-bits, but on a 64-bit machine, a pointer is 64-bits.

The solution isn't trivial, I think, because of the way I've got the
c calls set up, so that euphoria does the work of converting atoms 
too big for integers into C_INTs.  I've never worked with a 64-bit
machine, so I'm not familiar with the sorts of things that would need
to be done.

Matt

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

12. Re: Ubuntu Edgy vs wxWidgets

Matt Lewis wrote:
> 
> ChrisBurch2 wrote:
> > 
> > Hi
> > 
> > I'm getting a few cpp cast errors. Heres the output of make with your 
> > new makefile

<snip>

> The solution isn't trivial, I think, because of the way I've got the
> c calls set up, so that euphoria does the work of converting atoms 
> too big for integers into C_INTs.  I've never worked with a 64-bit
> machine, so I'm not familiar with the sorts of things that would need
> to be done.

Thinking about it some more, I think part of the solution has to be making
euphoria build on a 64-bit architecture.  There's not even a way for 
euphoria to hold a 64-bit number in a primitive data type.  An atom only 
holds a double, which is itself 64 bits, but not all bits are devoted to
the mantissa.

I suppose your best bet is to see if you can get (or figure out the flags)
to get gcc to cross compile to 32-bit.

Matt

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

13. Re: Ubuntu Edgy vs wxWidgets

Matt Lewis wrote:
> 
> I've streamlined the Makefile, which you can download directly from the 
> repository here (beware wrapping url):
> 
> <a
> href="http://wxeuphoria.svn.sourceforge.net/viewvc/*checkout*/wxeuphoria/wxeu/branches/wxeu280/Makefile?revision=63">http://wxeuphoria.svn.sourceforge.net/viewvc/*checkout*/wxeuphoria/wxeu/branches/wxeu280/Makefile?revision=63</a>

I think I am hopelessly confused.

What should these be changed to?

top_srcdir = /home/matt/euphoria/development/wxeu/wxGTK-2.8.0
top_srcdir = $(prefix)/include/wx-2.8
top_builddir = /home/matt/euphoria/development/wxeu/wxGTK-2.8.0

Where did wxGTK come from? I was using a different file.


>  $ wx-config --prefix
>  $ wx-config --libs
>  $ wx-config --cppflags

Is wx-config supposed to be in Makefile? A search does not find it.

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

14. Re: Ubuntu Edgy vs wxWidgets

Jerry Story wrote:
> 
> Matt Lewis wrote:
> > 
> > I've streamlined the Makefile, which you can download directly from the 
> > repository here (beware wrapping url):
> > 
> > <a
> > href="http://wxeuphoria.svn.sourceforge.net/viewvc/*checkout*/wxeuphoria/wxeu/branches/wxeu280/Makefile?revision=63">http://wxeuphoria.svn.sourceforge.net/viewvc/*checkout*/wxeuphoria/wxeu/branches/wxeu280/Makefile?revision=63</a>
> 
> I think I am hopelessly confused.

Sorry about that.

> What should these be changed to?
> 
> top_srcdir = /home/matt/euphoria/development/wxeu/wxGTK-2.8.0
> top_srcdir = $(prefix)/include/wx-2.8
> top_builddir = /home/matt/euphoria/development/wxeu/wxGTK-2.8.0
> 
> Where did wxGTK come from? I was using a different file.

wxGTK was the version of wxWidgets that I had downloaded at one point.  If 
you installed wxWidgets (make install), then the correct values for those
variables in the Makefile should be 

top_srcdir = $(prefix)/include/wx-2.8
top_builddir = $(prefix)

I should have deleted the other declarations.  Those just tell the 
compiler where to find certain include files.

> 
> >  $ wx-config --prefix
> >  $ wx-config --libs
> >  $ wx-config --cppflags
> 
> Is wx-config supposed to be in Makefile? A search does not find it.

It's actually a shell script installed by wxWidgets that reads a config
file that was also installed.  The purpose is to be able to get various
parameters so that you can link against wxWidgets.  Try running those
from the command line.

Matt

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

15. Re: Ubuntu Edgy vs wxWidgets

Matt Lewis wrote:
> 
> Matt Lewis wrote:
> > 
> > ChrisBurch2 wrote:
> > > 
> > > Hi
> > > 
> > > I'm getting a few cpp cast errors. Heres the output of make with your 
> > > new makefile
> 
> <snip>
> 
> > The solution isn't trivial, I think, because of the way I've got the
> > c calls set up, so that euphoria does the work of converting atoms 
> > too big for integers into C_INTs.  I've never worked with a 64-bit
> > machine, so I'm not familiar with the sorts of things that would need
> > to be done.
> 
> Thinking about it some more, I think part of the solution has to be making
> euphoria build on a 64-bit architecture.  There's not even a way for 
> euphoria to hold a 64-bit number in a primitive data type.  An atom only 
> holds a double, which is itself 64 bits, but not all bits are devoted to
> the mantissa.
> 
> I suppose your best bet is to see if you can get (or figure out the flags)
> to get gcc to cross compile to 32-bit.
> 
> Matt

Hi

Adding -m32 to the CXX flags forces 32 bit compilation, and reduces the error
count. It shouldn't make a difference whether this is present or not on
32 bit machines, so try it, if it doesn't then perhaps add it (or make an 
option for 64 bit machine detection)

However, it still produces a couple of errors (and I can't copy and paste on 
this machine), namely

/usr/local/include/wx-2.8/wx/string.h
line 827 : wxChar& wxstring::operator[](unsigned int) cannot be overloaded
line 824 : wxChar& wxstring::operator[](size_t)

this is c++ stuff, which is hopelessly over my head. Sorry.

Nearly there!

Chris

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

16. Re: Ubuntu Edgy vs wxWidgets

ChrisBurch2 wrote:
> 
> 
> Adding -m32 to the CXX flags forces 32 bit compilation, and reduces the error
> count. It shouldn't make a difference whether this is present or not on
> 32 bit machines, so try it, if it doesn't then perhaps add it (or make an 
> option for 64 bit machine detection)
> 
> However, it still produces a couple of errors (and I can't copy and paste on
> this machine), namely
> 
> /usr/local/include/wx-2.8/wx/string.h
> line 827 : wxChar& wxstring::operator[](unsigned int) cannot be overloaded
> line 824 : wxChar& wxstring::operator[](size_t)
> 
> this is c++ stuff, which is hopelessly over my head. Sorry.
> 

That's weird.  It's all wxWidgets stuff, which, by the way, will need
to be compiled as 32 bit, as well, which may be the problem.

I found this link, 
http://www.wxwidgets.org/wiki/index.php/Compiling_WxWidgets#Linux_building_for_i386_on_an_x86_64_machine

It's semi-helpful.  He mentions issues about not having 32-bit gtk.

Matt

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

17. Re: Ubuntu Edgy vs wxWidgets

Matt Lewis wrote:
> 
> ChrisBurch2 wrote:
> > 
> > 
> > Adding -m32 to the CXX flags forces 32 bit compilation, and reduces the
> > error
> > count. It shouldn't make a difference whether this is present or not on
> > 32 bit machines, so try it, if it doesn't then perhaps add it (or make an 
> > option for 64 bit machine detection)
> > 
> > However, it still produces a couple of errors (and I can't copy and paste on
> > this machine), namely
> > 
> > /usr/local/include/wx-2.8/wx/string.h
> > line 827 : wxChar& wxstring::operator[](unsigned int) cannot be overloaded
> > line 824 : wxChar& wxstring::operator[](size_t)
> > 
> > this is c++ stuff, which is hopelessly over my head. Sorry.
> > 
> 
> That's weird.  It's all wxWidgets stuff, which, by the way, will need
> to be compiled as 32 bit, as well, which may be the problem.
> 
> I found this link, 
> <a
> href="http://www.wxwidgets.org/wiki/index.php/Compiling_WxWidgets#Linux_building_for_i386_on_an_x86_64_machine">http://www.wxwidgets.org/wiki/index.php/Compiling_WxWidgets#Linux_building_for_i386_on_an_x86_64_machine</a>
> 
> It's semi-helpful.  He mentions issues about not having 32-bit gtk.
> 
> Matt

Ok, yes it was compiled as 64 bit - will recompile with the 32 bit flags, and
get back to
you - it may be a day or two now.

Chris

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

18. Re: Ubuntu Edgy vs wxWidgets

Matt Lewis wrote:
 
> > What should these be changed to?
> > 
> > top_srcdir = /home/matt/euphoria/development/wxeu/wxGTK-2.8.0
> > top_srcdir = $(prefix)/include/wx-2.8
> > top_builddir = /home/matt/euphoria/development/wxeu/wxGTK-2.8.0
> > 
> > Where did wxGTK come from? I was using a different file.
> 
> wxGTK was the version of wxWidgets that I had downloaded at one point.  If 
> you installed wxWidgets (make install), then the correct values for those
> variables in the Makefile should be 
> 
> top_srcdir = $(prefix)/include/wx-2.8
> top_builddir = $(prefix)

Still not working. I'm doing something wrong.

[quote]
wxeu.cpp:2:22: error: wx/setup.h: No such file or directory
In file included from /usr/include/wx/defs.h:19,
                 from /usr/include/wx/wxprec.h:13,
                 from wxeu.cpp:3:
/usr/include/wx/platform.h:85:22: error: wx/setup.h: No such file or directory
In file included from /usr/include/wx/platform.h:88,
                 from /usr/include/wx/defs.h:19,
                 from /usr/include/wx/wxprec.h:13,
                 from wxeu.cpp:3:
/usr/include/wx/chkconf.h:47:9: error: #error "wxUSE_DYNLIB_CLASS must be
defined."
/usr/include/wx/chkconf.h:55:9: error: #error "wxUSE_FILESYSTEM must be
defined."
/usr/include/wx/chkconf.h:68:9: error: #error "wxUSE_DYNAMIC_LOADER must be
defined."
/usr/include/wx/chkconf.h:76:9: error: #error "wxUSE_LOG must be defined."
/usr/include/wx/chkconf.h:84:9: error: #error "wxUSE_LONGLONG must be defined."

[etc. etc. etc.]

[end quote]

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

19. Re: Ubuntu Edgy vs wxWidgets

Jerry Story wrote:
> 
> Matt Lewis wrote:
> > 
> > top_srcdir = $(prefix)/include/wx-2.8
> > top_builddir = $(prefix)
> 
> Still not working. I'm doing something wrong.
> 
> [quote]
> wxeu.cpp:2:22: error: wx/setup.h: No such file or directory
> In file included from /usr/include/wx/defs.h:19,
>                  from /usr/include/wx/wxprec.h:13,
>                  from wxeu.cpp:3:
> /usr/include/wx/platform.h:85:22: error: wx/setup.h: No such file or directory
> In file included from /usr/include/wx/platform.h:88,
>                  from /usr/include/wx/defs.h:19,
>                  from /usr/include/wx/wxprec.h:13,
>                  from wxeu.cpp:3:
> /usr/include/wx/chkconf.h:47:9: error: #error "wxUSE_DYNLIB_CLASS must be
> defined."
> /usr/include/wx/chkconf.h:55:9: error: #error "wxUSE_FILESYSTEM must be
> defined."
> /usr/include/wx/chkconf.h:68:9: error: #error "wxUSE_DYNAMIC_LOADER must be
> defined."
> /usr/include/wx/chkconf.h:76:9: error: #error "wxUSE_LOG must be defined."
> /usr/include/wx/chkconf.h:84:9: error: #error "wxUSE_LONGLONG must be
> defined."
> 
> [etc. etc. etc.]
> 
> [end quote]

Hmmm.  So when you run "wx-config --prefix" it returns /usr/include?  It
seems odd, because I think the default is for wxWidgets to install itself
to /usr/local rather than /usr.  Do you have another version installed
(probably through your package management system)?

Matt

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

20. Re: Ubuntu Edgy vs wxWidgets

Matt Lewis wrote:
> 
> Jerry Story wrote:
> > 
> > Matt Lewis wrote:
> > > 
> > > top_srcdir = $(prefix)/include/wx-2.8
> > > top_builddir = $(prefix)
> > 
> > Still not working. I'm doing something wrong.
> > 
> > [quote]
> > wxeu.cpp:2:22: error: wx/setup.h: No such file or directory
> > In file included from /usr/include/wx/defs.h:19,
> >                  from /usr/include/wx/wxprec.h:13,
> >                  from wxeu.cpp:3:
> > /usr/include/wx/platform.h:85:22: error: wx/setup.h: No such file or
> > directory
> > In file included from /usr/include/wx/platform.h:88,
> >                  from /usr/include/wx/defs.h:19,
> >                  from /usr/include/wx/wxprec.h:13,
> >                  from wxeu.cpp:3:
> > /usr/include/wx/chkconf.h:47:9: error: #error "wxUSE_DYNLIB_CLASS must be
> > defined."
> > /usr/include/wx/chkconf.h:55:9: error: #error "wxUSE_FILESYSTEM must be
> > defined."
> > /usr/include/wx/chkconf.h:68:9: error: #error "wxUSE_DYNAMIC_LOADER must be
> > defined."
> > /usr/include/wx/chkconf.h:76:9: error: #error "wxUSE_LOG must be defined."
> > /usr/include/wx/chkconf.h:84:9: error: #error "wxUSE_LONGLONG must be
> > defined."
> > 
> > [etc. etc. etc.]
> > 
> > [end quote]
> 
> Hmmm.  So when you run "wx-config --prefix" it returns /usr/include?  It
> seems odd, because I think the default is for wxWidgets to install itself
> to /usr/local rather than /usr.  Do you have another version installed
> (probably through your package management system)?
> 
> Matt

When I run wx-config --prefix it returns /usr

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

21. Re: Ubuntu Edgy vs wxWidgets

Jerry Story wrote:
> 
> When I run wx-config --prefix it returns /usr

I think you may have another version of wxWidgets installed.  Try

$ wx-config --version

I installed 2.6.3 using Synaptic to test this out.  It gets put into
/usr when installed that way.  If it's showing 2.6.3, try also

$ wx-config --list

It will probably show only 2.6.3.  If 2.8.2 was installed in your /usr/local
path (which seems to be the default) you need to use /usr/local/bin/wx-config,
or else change your path so that /usr/local/bin is before /usr/bin.

I've made a start on using a configure script.  It won't handle the case
where 2.8.2 isn't the default, but at least it's a start.  You can
download directly from svn here:

http://wxeuphoria.svn.sourceforge.net/viewvc/*checkout*/wxeuphoria/wxeu/branches/wxeu280/Makefile
http://wxeuphoria.svn.sourceforge.net/viewvc/*checkout*/wxeuphoria/wxeu/branches/wxeu280/configure?revision=66

The configure script creates Makefile.gcc, which is included by Makefile
to define a few variables used in building wxEuphoria.

Matt

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

22. Re: Ubuntu Edgy vs wxWidgets

Matt Lewis wrote:
> 
> Jerry Story wrote:
> > 
> > When I run wx-config --prefix it returns /usr
> 
> I think you may have another version of wxWidgets installed.  Try
> 
> $ wx-config --version

It returns 2.4.5
 
> I installed 2.6.3 using Synaptic to test this out.  It gets put into
> /usr when installed that way.  If it's showing 2.6.3, try also
> 
> $ wx-config --list

It returns the same response as wx-config --help


> It will probably show only 2.6.3.  If 2.8.2 was installed in your /usr/local
> path (which seems to be the default) you need to use /usr/local/bin/wx-config,
> or else change your path so that /usr/local/bin is before /usr/bin.
> 
> I've made a start on using a configure script.  It won't handle the case
> where 2.8.2 isn't the default, but at least it's a start.  You can
> download directly from svn here:
> 
> <a
> href="http://wxeuphoria.svn.sourceforge.net/viewvc/*checkout*/wxeuphoria/wxeu/branches/wxeu280/Makefile">http://wxeuphoria.svn.sourceforge.net/viewvc/*checkout*/wxeuphoria/wxeu/branches/wxeu280/Makefile</a>
> <a
> href="http://wxeuphoria.svn.sourceforge.net/viewvc/*checkout*/wxeuphoria/wxeu/branches/wxeu280/configure?revision=66">http://wxeuphoria.svn.sourceforge.net/viewvc/*checkout*/wxeuphoria/wxeu/branches/wxeu280/configure?revision=66</a>

configure followed by make produced this result:
g++ -c -o wxeu.o -D__WXGTK__     -I.  -I/usr/lib/wx/include/gtk-2.4
-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -O2
-fno-strict-aliasing -pthread -Wall -Wundef -Wno-ctor-dtor-privacy wxeu.cpp
wxeu.cpp:87: warning: ‘EuEventTypes’ initialized and declared ‘extern’
wxeu.cpp:172: error: ‘wxEVT_SCROLL_CHANGED’ was not declared in this scope
wxeu.cpp:224: error: ‘wxEVT_SIZING’ was not declared in this scope
wxeu.cpp:225: error: ‘wxEVT_MOVING’ was not declared in this scope
wxeu.cpp:226: error: ‘wxEVT_HIBERNATE’ was not declared in this scope
wxeu.h:247: warning: ‘wxEuApp’ defined but not used
wxeu.h:264: warning: ‘object box_int(int)’ defined but not used
make: *** [wxeu.o] Error 1

Now that I have the older version of wxEuphoria working on Ubuntu,
I'm back in production. I hope you keep that on your website.

Perhaps the problem with the new version of wxEuphoria on Ubuntu is
simply that Ubuntu doesn't yet have an easy way to install the latest
version of wxWidgets (sudo apt-get install). Perhaps that will happen
in time. If so, then the old version of wxEuphoria will do until then.

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

23. Re: Ubuntu Edgy vs wxWidgets

Jerry Story wrote:
> 
> Now that I have the older version of wxEuphoria working on Ubuntu,
> I'm back in production. I hope you keep that on your website.
> 
> Perhaps the problem with the new version of wxEuphoria on Ubuntu is
> simply that Ubuntu doesn't yet have an easy way to install the latest
> version of wxWidgets (sudo apt-get install). Perhaps that will happen
> in time. If so, then the old version of wxEuphoria will do until then.

That's the issue.  The problem there is that my script isn't smart enough
to pick up the wx-config in /usr/local/bin if there's already one in
/usr/bin.  But, I think I've got enough information now, so I just have
to write the script.  I was playing around with Ubuntu, and installed
2.6.3 through synaptic, and it gets put into /usr, so I should be able
to fix this (I'll make sure that it is by the time I officially release
this).

The new version is going to be a lot better, and it will be worth it to
make the switch...just not quite ready for prime time.

Matt

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

24. Re: Ubuntu Edgy vs wxWidgets

Hi

Matt

Haven't yet been able to compile a 32 bit version of wxwidgets on my 64 bit
system - my next step is to try to compile it on a 32 bit system while resolving
the almost certain dependency deficiencies.

However, I discovered a new command (on the wxwidgets site)

ldd [file]

it lists all the libraries required by an application.

ldd wxeu.so

returns a list of all the libraries reuired by this application, all present

ldd libwxeu.so

returns a list of the required libraries, of which none of the gtk2 libs can it
find. Strangely, these libraries are in /usr/local/lib.

Curiouser and curiouser. The gtk2 libs can be found, because, as I said before,
the examples in the gtk2 source package work.

My feeling is that libwxeu.so will work with the 64 bit gtk2 binaries, it just
needs a little encouragement.

Chris


http://euallegro.wikispaces.com
http://members.aol.com/chriscrylex/euphoria.htm
http://uboard.proboards32.com/
http://members.aol.com/chriscrylex/EUSQLite/eusql.html

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

Search



Quick Links

User menu

Not signed in.

Misc Menu