Author

Topic: How to compile under Fedora Core 14 ? (Read 2280 times)

legendary
Activity: 2940
Merit: 1090
February 24, 2011, 06:01:21 AM
#6
Quote: "You have to change the Makefile in utils/wxrc to include Pango-Cairo, Cairo and X11"

Aha! I had changed the main Makefile, I didnt realise some deeper one would re-define that.

I made the fix, but that just moves along to another error:

[root@desktop buildgtk]# make
(if test -f utils/wxrc/Makefile ; then cd utils/wxrc && make all ; fi)
make[1]: Entering directory `/usr/src/wxWidgets-2.9.0/buildgtk/utils/wxrc'
g++ -o wxrc wxrc_wxrc.o    -L/usr/src/wxWidgets-2.9.0/buildgtk/lib  -pthread     -lexpat   -lwx_gtk2ud-2.9  -lwxregexud-2.9  -pthread   -lz -ldl -lm  -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpng12 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lX11 -lXxf86vm -lSM -lpng -lz -ljpeg -ltiff -lz -ldl -lm
/usr/bin/ld: /usr/src/wxWidgets-2.9.0/buildgtk/lib/libwx_gtk2ud-2.9.a(monolib_displayx11.o): undefined reference to symbol 'XineramaIsActive'
/usr/bin/ld: note: 'XineramaIsActive' is defined in DSO /usr/lib/libXinerama.so.1 so try adding it to the linker command line
/usr/lib/libXinerama.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [wxrc] Error 1
make[1]: Leaving directory `/usr/src/wxWidgets-2.9.0/buildgtk/utils/wxrc'
make: *** [wxrc] Error 2


Adding -lXinerama doesnt fixes that.

So thanks! Looks like it compiled.

As to using the distribution wxWidgets, it is the wrong version, one specifically said not to work. The one required is missing, I can yum the previous one and the latest one but not the required one.

EDIT: to make bitcoin compile I also had to add all those lib specifications to the makefile.unix - maybe not all were really needed but trying to pick and choose which was too painful, putting them all in worked.

-MarkM-



hero member
Activity: 588
Merit: 500
February 23, 2011, 12:19:40 PM
#5
Why bother compiling it when it's in the Fedora software repository already?
donator
Activity: 826
Merit: 1060
February 23, 2011, 10:27:47 AM
#4
For what it's worth, when I compiled wxWidgets under Fedora 12, it worked by exactly following the instructions in file build-unix.txt, except that I had to do the whole thing as root (not just the make install step).

I haven't compiled it under Fedora 14.
newbie
Activity: 57
Merit: 0
February 23, 2011, 10:07:32 AM
#3
You have to change the Makefile in utils/wxrc to include Pango-Cairo, Cairo and X11. Change line 35 to this
Code:
EXTRALIBS_GUI = -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpng12 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lX11 -lXxf86vm -lSM -lpng -lz -ljpeg -ltiff
and Wx should compile.
newbie
Activity: 1
Merit: 0
February 23, 2011, 08:12:08 AM
#2
bump
legendary
Activity: 2940
Merit: 1090
February 13, 2011, 09:21:56 PM
#1
Has anyone managed to compile wxWidgets under Fedora 14 ?

With some messing around I managed to get the command line bitcoind to compile, but nothing I can find with google helps in getting wxWidgets 2.9.0 to compile. Some suggestions about pkg-config --libs indicate some libraries are not mentioned that should be but no amount of adding them in works.

( http://groups.google.com/group/wx-users/browse_thread/thread/506221a2b84c7505/cb86f1b4247d9e50 )

wxWidgets site itself doesnt seem to really know how to compile for Fedora, one message said something was deliberately cut out way back when from git, but that is just about the pangocairo libraries and adding all them back in does not fix the problem.

-MarkM-
Jump to: