Bitcoin Forum
May 05, 2024, 05:47:21 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to compile under Fedora Core 14 ?  (Read 2260 times)
markm (OP)
Legendary
*
Offline Offline

Activity: 2940
Merit: 1090



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/
1714931241
Hero Member
*
Offline Offline

Posts: 1714931241

View Profile Personal Message (Offline)

Ignore
1714931241
Reply with quote  #2

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

Posts: 1714931241

View Profile Personal Message (Offline)

Ignore
1714931241
Reply with quote  #2

1714931241
Report to moderator
sudo
Newbie
*
Offline Offline

Activity: 1
Merit: 0


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

bump
hendi
Newbie
*
Offline Offline

Activity: 57
Merit: 0


View Profile
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
Hero Member
*
Offline Offline

Activity: 826
Merit: 1039


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: 588
Merit: 500



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

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

3KzNGwzRZ6SimWuFAgh4TnXzHpruHMZmV8
markm (OP)
Legendary
*
Offline Offline

Activity: 2940
Merit: 1090



View Profile WWW
February 24, 2011, 11:01:21 AM
Last edit: February 24, 2011, 02:13:29 PM by markm
 #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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!