Bitcoin Forum
December 08, 2016, 08:30:06 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How to compile under Fedora Core 14 ?  (Read 2004 times)
markm
Legendary
*
Offline Offline

Activity: 1792



View Profile WWW
February 14, 2011, 02:21:56 AM
 #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-

Browser-launched Crossfire client now online (select CrossCiv server for Galactic  Milieu)
Free website hosting with PHP, MySQL etc: http://hosting.knotwork.com/
1481229006
Hero Member
*
Offline Offline

Posts: 1481229006

View Profile Personal Message (Offline)

Ignore
1481229006
Reply with quote  #2

1481229006
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481229006
Hero Member
*
Offline Offline

Posts: 1481229006

View Profile Personal Message (Offline)

Ignore
1481229006
Reply with quote  #2

1481229006
Report to moderator
1481229006
Hero Member
*
Offline Offline

Posts: 1481229006

View Profile Personal Message (Offline)

Ignore
1481229006
Reply with quote  #2

1481229006
Report to moderator
1481229006
Hero Member
*
Offline Offline

Posts: 1481229006

View Profile Personal Message (Offline)

Ignore
1481229006
Reply with quote  #2

1481229006
Report to moderator
sudo
Newbie
*
Offline Offline

Activity: 1


View Profile
February 23, 2011, 01:12:08 PM
 #2

bump
hendi
Jr. Member
*
Offline Offline

Activity: 30


View Profile WWW
February 23, 2011, 03:07:32 PM
 #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.

ribuck
Donator
Legendary
*
Offline Offline

Activity: 826


View Profile
February 23, 2011, 03:27:47 PM
 #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.
error
Hero Member
*****
Offline Offline

Activity: 574



View Profile
February 23, 2011, 05:19:40 PM
 #5

Why bother compiling it when it's in the Fedora software repository already?

15UFyv6kfWgq83Pp3yhXPr8rknv9m6581W
markm
Legendary
*
Offline Offline

Activity: 1792



View Profile WWW
February 24, 2011, 11: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-




Browser-launched Crossfire client now online (select CrossCiv server for Galactic  Milieu)
Free website hosting with PHP, MySQL etc: http://hosting.knotwork.com/
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!