Re: how do you install wx-config in FreeBSD?

2006-01-09 Thread bob self

JD Arnold wrote:




Thanks. Things are starting to work. Now that wx-config works a couple more
questions have come up about wxgtk2. I tried building the penguin sample 
that

comes with wxWidgets. I get a link warning:

/usr/bin/ld: warning: libm.so.3, needed by /usr/X11R6/lib/libGL.so.1, 
not found (try using -rpath or

-rpath-link)

When I try to run it, I get:

/libexec/ld-elf.so.1: Shared object libm.so.3 not found, required by 
libGL.so.1


How do I fix this problem? All of my ports are supposed to be up-to-date.




Also, another issue came up when I tried to compile the mediactrl example:

winmain.cpp:88:2: #error Not all required elements are enabled.  Please 
modify setup.h!

winmain.cpp:196: error: `wxMediaEvent' has not been declared

How do you do this in FreeBSD if you use portupgrade? Is there a config 
file to turn on the

mediactrl stuff?


I'm compiling with

g++ -I/usr/X11R6/include -c `wx-config --cxxflags` winmain.cpp


# wx-config --cxxflags shows:

-I/usr/X11R6/include/wx-2.6/gtk2-ansi-release-2.6 
-I/usr/X11R6/include/wx-2.6 -DGTK_NO_CHECK_CASTS

-D__WXGTK__ -D_FILE_OFFSET_BI
TS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA


Bob

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how do you install wx-config in FreeBSD?

2006-01-09 Thread bob self

JD Arnold wrote:


bob self wrote:


I'm running FreeBSD 6.0 and have installed
wxgtk2-2.6.2_1 and wxgtk2-common-2.6.2.

VLC runs fine so I know that wxwidges is installed correctly. But I 
want to install the wxsamples
and compile them. I copied wxsamples manually and try to compile 
using a script from an older
freebsd system but it wants wx-config and I can't find out how to get 
that installed using the

ports. Which port would include that?



wx-config is in the wxWidgets port, only it is named using the version
of wxgtk:

/usr/X11R6/bin/wxgtk2-2.6-config

I guess maybe they don't want to overwrite any existing wx-config, but I
suppose it would be nice if the port installer checked for it, and if it
didn't exist, create it using a link. You should do that (as root):

# cd /usr/X11R6/bin
# ln wx-gtk2-2.6-config wx-config

You can find out whether it got intalled by the wxgtk port by using 
pkg_info:


# pkg_info -xL wxgtk | grep bin

would should show where the -config and the wxrc got installed.

BTW, I talk about the pkg_info option in a recent post on my blog. Thanks
to Dru from OnLamp.com for showing me this very cool option, something 
I've
always wondered about, as sometimes it can be very mysterious as to 
what and

where a port might install stuff.


I did find setup.h in /usr/X11R6/include/wx-2.6/gtk2-ansi-release-2.6

I installed wxgtk2 using portupgrade but no configuration screen came up.
What is the procedure to configure wxgtk2 if you use portupgrade? I see 
that my setup.h has

#define wxUSE_MEDIACTRL 0
which is not what I want, so I need to reconfigure it but haven't been 
able to find out how to do that.


Bob


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how do you install wx-config in FreeBSD?

2006-01-09 Thread Jonathan Arnold

bob self wrote:

JD Arnold wrote:




Thanks. Things are starting to work. Now that wx-config works a couple more
questions have come up about wxgtk2. I tried building the penguin sample 
that

comes with wxWidgets. I get a link warning:

/usr/bin/ld: warning: libm.so.3, needed by /usr/X11R6/lib/libGL.so.1, 
not found (try using -rpath or

-rpath-link)

When I try to run it, I get:

/libexec/ld-elf.so.1: Shared object libm.so.3 not found, required by 
libGL.so.1


How do I fix this problem? All of my ports are supposed to be up-to-date.


If I do a locate on libm.so.3, I see it in /usr/local/lib/compat. I see that the
one in /usr/lib is libm.so.4.  I don't know anything about either of these. 
That's
why it is saying to use the -rpath option, to add /usr/local/lib/compat to your
ld search path.

You're probably pushing the envelope here, working with multimedia controls. You
might try asking on the wxWidgets mailing list for more specific wxWidgets help.

--
Jonathan Arnold   (mailto:[EMAIL PROTECTED])
Jiggle The Handle, a personal bloghttp://jiggle.anaze.us

Procrastination is the art of keeping up with yesterday.
- Don Marquis

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how do you install wx-config in FreeBSD?

2006-01-09 Thread JD Arnold

bob self wrote:

JD Arnold wrote:


bob self wrote:


I'm running FreeBSD 6.0 and have installed
wxgtk2-2.6.2_1 and wxgtk2-common-2.6.2.

VLC runs fine so I know that wxwidges is installed correctly. But I 
want to install the wxsamples
and compile them. I copied wxsamples manually and try to compile 
using a script from an older
freebsd system but it wants wx-config and I can't find out how to get 
that installed using the

ports. Which port would include that?



wx-config is in the wxWidgets port, only it is named using the version
of wxgtk:

/usr/X11R6/bin/wxgtk2-2.6-config

I guess maybe they don't want to overwrite any existing wx-config, but I
suppose it would be nice if the port installer checked for it, and if it
didn't exist, create it using a link. You should do that (as root):

# cd /usr/X11R6/bin
# ln wx-gtk2-2.6-config wx-config

You can find out whether it got intalled by the wxgtk port by using 
pkg_info:


# pkg_info -xL wxgtk | grep bin

would should show where the -config and the wxrc got installed.

BTW, I talk about the pkg_info option in a recent post on my blog. Thanks
to Dru from OnLamp.com for showing me this very cool option, something 
I've
always wondered about, as sometimes it can be very mysterious as to 
what and

where a port might install stuff.


I did find setup.h in /usr/X11R6/include/wx-2.6/gtk2-ansi-release-2.6

I installed wxgtk2 using portupgrade but no configuration screen came up.
What is the procedure to configure wxgtk2 if you use portupgrade? I see 
that my setup.h has

#define wxUSE_MEDIACTRL 0
which is not what I want, so I need to reconfigure it but haven't been 
able to find out how to do that.


When you use the ports system, you can see the normal source distribution in
the /usr/ports/(category)/(port)/work folder. So if you go into :

/usr/ports/x11-toolkits/wxGTK26/work/wxGTK-2.6.1

you see the normal installation hierarchy. INSTALL.txt gives you more 
installation options, and reading the configure script file in there gives

you even more.  You'll see in configure an option called '--enable-mediactrl'.
Edit the Makefile in /usr/ports/x11-toolkits/wxGTK26 to add that flag to the
configure run. After you do this, you'll want to go into the work folder and
run make clean, then go back to the wxGTK26 folder and re-run make  make 
install.
I think there is some way to tell the make to redo stuff because you've changed
the config options, but I can never remember the variable to set.

--
Jonathan Arnold (mailto:[EMAIL PROTECTED])
Daemon Dancing in the Dark, a FreeBSD weblog:
   http://freebsd.amazingdev.com/blog/

UNIX is user-friendly. It's just a bit picky about who its friends are.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how do you install wx-config in FreeBSD?

2006-01-08 Thread JD Arnold

bob self wrote:

I'm running FreeBSD 6.0 and have installed
wxgtk2-2.6.2_1 and wxgtk2-common-2.6.2.

VLC runs fine so I know that wxwidges is installed correctly. But I want 
to install the wxsamples
and compile them. I copied wxsamples manually and try to compile using a 
script from an older
freebsd system but it wants wx-config and I can't find out how to get 
that installed using the

ports. Which port would include that?


wx-config is in the wxWidgets port, only it is named using the version
of wxgtk:

/usr/X11R6/bin/wxgtk2-2.6-config

I guess maybe they don't want to overwrite any existing wx-config, but I
suppose it would be nice if the port installer checked for it, and if it
didn't exist, create it using a link. You should do that (as root):

# cd /usr/X11R6/bin
# ln wx-gtk2-2.6-config wx-config

You can find out whether it got intalled by the wxgtk port by using 
pkg_info:


# pkg_info -xL wxgtk | grep bin

would should show where the -config and the wxrc got installed.

BTW, I talk about the pkg_info option in a recent post on my blog. Thanks
to Dru from OnLamp.com for showing me this very cool option, something I've
always wondered about, as sometimes it can be very mysterious as to what and
where a port might install stuff.

--
Jonathan Arnold (mailto:[EMAIL PROTECTED])
Daemon Dancing in the Dark, a FreeBSD weblog:
  http://freebsd.amazingdev.com/blog/

UNIX is user-friendly. It's just a bit picky about who its friends are.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


how do you install wx-config in FreeBSD?

2006-01-05 Thread bob self

I'm running FreeBSD 6.0 and have installed
wxgtk2-2.6.2_1 and wxgtk2-common-2.6.2.

VLC runs fine so I know that wxwidges is installed correctly. But I want 
to install the wxsamples
and compile them. I copied wxsamples manually and try to compile using a 
script from an older
freebsd system but it wants wx-config and I can't find out how to get 
that installed using the

ports. Which port would include that?

thanks,
bob
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]