aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2]

Author Topic: compil on Solaris 10 SPARC ultra 30  (Read 9813 times)

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: compil on Solaris 10 SPARC ultra 30
« Reply #15 on: June 13, 2005, 11:24:10 PM »

You should install GTK (That's the error, if could not find gtk.h) in order to compile wxGTK. Besides, libpng and such utils are found in blastwave, jus the name might not be what you expect. Run this:

pkg-get -c

It will check all the packages available, their names, and which version you have/latest. There, you can check the name for libpng (maybe lib-png, or something)

Besides, wxGTK 2.4.2 is really old, 2.6.1 is current. You did not follow the step number 5 in my guide. You probably also missed the 7th one, since you seem to have installed gtk, but the installation failed to find it.

Regards.
Logged

webbonus

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: compil on Solaris 10 SPARC ultra 30
« Reply #16 on: June 14, 2005, 11:49:00 AM »

Hi  skolnick

gtk has been installed with pkg-get -i gtk

 pkg-get -i gtk
WARNING: gpg not found
No worries... you already have version 1.2.10 of gtk

pkg-get -i gtk2
WARNING: gpg not found
No worries... you already have version 2.6.4,REV=2005.04.13 of gtk2
If you doubt this message, run 'pkg-get -U', then run
 'pkg-get upgrade gtk2'


wxGTK-2.4.1 has been downloaded and installed from  http://www.wxwidgets.org

I try to compil wxGTK-2.6.2 but I have an error very similar that the make in aMule.

********** wxGTK-2.6.2    ./configure --with-gtk ******************
checking for GTK+ version...
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.
**********************************************************************

#which pkg-config
/usr/bin/pkg-config


# gtk-config --libs
-L/opt/csw/lib -lgtk -lgdk -lgmodule -lglib -ldl -lXi -lXext -lX11 -lsocket -lnsl -lm

# pkg-config gtk+-2.0 --libs
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lmlib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0

#gtk-config --version
1.2.10

# echo $LD_LIBRARY_PATH
/usr/local/lib:/opt/csw/lib:/usr/sfw/lib:/usr/lib

# echo $PATH
/usr/local/bin:/opt/csw/bin:/usr/sfw/bin:/usr/bin

item 7 is setted

# set
AB_CARDCATALOG=/usr/dt/share/answerbooks/en_US.ISO8859-15/ab_cardcatalog
COLORTERM=gnome-terminal
CPPFLAGS=-I /opt/csw/include
DESKTOP_STARTUP_ID=
DISPLAY=:0.0
DTAPPSEARCHPATH=//.dt/appmanager:/usr/dt/appconfig/appmanager/%L:/usr/dt/appconfig/appmanager/C
.........
..........
GNOME_DESKTOP_SESSION_ID=Default
GNOME_KEYRING_SOCKET=/var/tmp/keyring-k3wMSQ/socket
GTK_RC_FILES=/etc/gtk/gtkrc://.gtkrc-1.2-gnome2
G_BROKEN_FILENAMES=yes
G_FILENAME_ENCODING=@locale,UTF-8
HELPPATH=/usr/openwin/lib/locale:/usr/openwin/lib/help
HOME=/
IFS=

LANG=en_US.ISO8859-15
LC_COLLATE=en_US.ISO8859-15
LC_CTYPE=en_US.ISO8859-15
LC_MESSAGES=en_US.ISO8859-15
LC_MONETARY=en_US.ISO8859-15
LC_NUMERIC=en_US.ISO8859-15
LC_TIME=en_US.ISO8859-15
LD_LIBRARY_PATH=/usr/local/lib:/opt/csw/lib:/usr/sfw/lib:/usr/lib
LOGNAME=root
MAIL=/var/mail/root
MAILCHECK=600
MANPATH=/usr/dt/man:/usr/man:/usr/openwin/share/man
OPENWINHOME=/usr/openwin
OPTIND=1
PATH=/usr/local/bin:/opt/csw/bin:/usr/sfw/bin:/usr/bin
PS1=#
PS2=>
........
.........
dtstart_sessionlogfile=/dev/null

Regards
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: compil on Solaris 10 SPARC ultra 30
« Reply #17 on: June 14, 2005, 04:11:06 PM »

Hi!

Let's try this: compile wxGTK 2.6.2 forcing it to use GTK1. Use these switches:

--with-gtk --disable-gtk2

and try to compile again. I've seen come tproblems with the GTK2 test wxGTK does, so it fails even when GTK2 is properly installed. Try this, and please report back (either, error or success.)

Regards.
Logged

webbonus

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: compil on Solaris 10 SPARC ultra 30
« Reply #18 on: June 14, 2005, 10:52:59 PM »

Hi,
We are progressing.
All is OK for wxGTK-2.6.1 with ./configure --with-gtk --disable-gtk2

I try to compil aMule-2.0.2
./configure

make crashes after 35 minutes working :


achine.o amule-StringFunctions.o amule-TransferWnd.o amule-UploadClient.o amule-UploadQueue.o amule-ByteIO.o amule-DataIO.o amule-FileIO.o amule-IOException.o amule-UInt128.o    amule-MuleTrayIcon.o amule-CryptoPP.o -L/usr/local/lib -pthreads   -lwx_gtk_xrc-2.6 -lwx_gtk_qa-2.6 -lwx_gtk_html-2.6 -lwx_gtk_adv-2.6 -lwx_gtk_core-2.6 -lwx_base_xml-2.6 -lwx_base_net-2.6 -lwx_base-2.6  -lz  -lresolv -lnsl -lbfd -liberty   -lgen
Undefined                       first referenced
 symbol                             in file
XParseGeometry                      amule-amule-gui.o  (symbol belongs to implicit dependency /usr/lib/libX11.so.4)
ld: fatal: Symbol referencing errors. No output written to amule
collect2: ld returned 1 exit status
make[3]: *** [amule] Error 1
make[3]: Leaving directory `/export/home/softs/aMule-2.0.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/export/home/softs/aMule-2.0.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/softs/aMule-2.0.2'
make: *** [all] Error 2



I try to compil amule-cvs20050614

idem, crashes after 40 minutes make but the message is different.

CPreferences::SetWSIsLowUserEnabled(bool)  amule-ECSpecialTags.o
CPreferences::ECUseTCPPort()        amule-ExternalConn.o
CPreferences::SetTrustingEveryHash(bool)  amule-ECSpecialTags.o
wxAppBase::CreateLogTarget()        amule-amule.o
otherfunctions::PartFileEncoderData::PartFileEncoderData(otherfunctions::PartFileEncoderData const&)amule-ExternalConn.o
wxNotebookBase::DoGetBestSize() const amule-ChatSelector.o
wxFrame::wxFrame(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long, wxString const&)amule-amuleDlg.o
wxFile::Write(wxString const&, wxMBConv&)amule-amule.o
CPreferences::ShowProgBar()         amule-DownloadListCtrl.o
CPreferences::SetMaxGraphUploadRate(unsigned int)amule-ECSpecialTags.o
CPreferences::SetMsgOnlyFriends(bool)  amule-ECSpecialTags.o
CPreferences::GetYourHostname()      amule-amule.o
CPreferences::SetAddNewFilesPaused(bool)  amule-ECSpecialTags.o
CPartFile::GetSrcA4AFCount() const  amule-DownloadListCtrl.o
CPreferences::StartNextFileSame()      amule-DownloadQueue.o
CPreferences::ShowAllNotCats()      amule-DownloadListCtrl.o
CSysTray::CSysTray(wxWindow*, DesktopMode, wxString const&)amule-amuleDlg.o
ld: fatal: Symbol referencing errors. No output written to amule
collect2: ld returned 1 exit status
make[3]: *** [amule] Error 1
make[3]: Leaving directory `/export/home/softs/amule-cvs/buildam/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/export/home/softs/amule-cvs/buildam/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/softs/amule-cvs/buildam'
make: *** [all] Error 2

I suppose an library problem


Many thanks for the help
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: compil on Solaris 10 SPARC ultra 30
« Reply #19 on: June 15, 2005, 01:06:40 AM »

The first error is a well-known one ;)

I might fix it on CVS soon, if I find the way.
Logged

webbonus

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: compil on Solaris 10 SPARC ultra 30
« Reply #20 on: June 15, 2005, 11:56:32 PM »

Absolutely perfect, aMule-2.0.3 is running perfectly under Solaris10 SPARC.
** Make ** without any problem  ./configure  without any argument I can't find libpng-devel needed for webserver.(It's not realy a problem !).

Many thanks at aMule team
Regards
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: compil on Solaris 10 SPARC ultra 30
« Reply #21 on: June 16, 2005, 02:01:13 AM »

:) Glad to know amule worked for you at last. Pleas, if you did any strange thing, or have any contributions to my compilation guide on solaris, please feel free to contribute youur experience on its thread.

Regards.
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: compil on Solaris 10 SPARC ultra 30
« Reply #22 on: June 16, 2005, 02:05:15 AM »

Quote
Originally posted by webbonus
Absolutely perfect, aMule-2.0.3 is running perfectly under Solaris10 SPARC.

plz recompile 2.0.3 with current srcs.. the previous one has a bug and your amule will crash!

cheers & sorry for the trouble
Pages: 1 [2]