This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Problem with compile under FreeBSD 5.4

Tags: None
(comma "," separated)
imported4-Anonymous
Registered Member
Posts
329
Karma
0
Hi !

I succesfuly installed port of Ktorent, but then I disocovered it was just version 1.0. I tried to use it but got errors that torrent file is not valid.

So I download 1.1rc and tried to compile. I get this problem>

Making all in src
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../. -I./.. -I/usr/local/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_THREAD_SAFE -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -O2 -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions -MT ktorrent.o -MD -MP -MF ".deps/ktorrent.Tpo" -c -o ktorrent.o ktorrent.cpp; then mv -f ".deps/ktorrent.Tpo" ".deps/ktorrent.Po"; else rm -f ".deps/ktorrent.Tpo"; exit 1; fi
In file included from ktorrent.cpp:67:
pref.h:28:26: downloadpref.h: No such file or directory
pref.h:29:25: generalpref.h: No such file or directory
pref.h:30:25: searchpref.h: No such file or directory
In file included from ktorrent.cpp:67:
pref.h:37: error: expected class-name before '{' token
pref.h:47: error: expected class-name before '{' token
pref.h:58: error: expected class-name before '{' token
pref.h:58: warning: `class PrefPageThree' has virtual functions but non-virtual destructor
ktorrent.cpp:68:22: settings.h: No such file or directory
In file included from ktorrent.cpp:73:
torrentcreatordlg.h:15:35: torrentcreatordlgbase.h: No such file or directory
In file included from ktorrent.cpp:73:
torrentcreatordlg.h:20: error: expected class-name before '{' token
In file included from ktorrent.cpp:74:
infowidget.h:26:28: infowidgetbase.h: No such file or directory
In file included from ktorrent.cpp:74:
infowidget.h:41: error: expected class-name before '{' token
infowidget.h:45: error: `WFlags' has not been declared
infowidget.h:45: error: ISO C++ forbids declaration of `fl' with no type
ktorrent.cpp: In constructor `KTorrent::KTorrent()':
ktorrent.cpp:96: error: no matching function for call to `QSplitter::moveToLast(InfoWidget*&)'
/usr/X11R6/include/qsplitter.h:83: note: candidates are: void QSplitter::moveToLast(QWidget*)
ktorrent.cpp: In member function `void KTorrent::applySettings()':
ktorrent.cpp:191: error: `Settings' has not been declared
ktorrent.cpp:191: error: `maxDownloads' undeclared (first use this function)
ktorrent.cpp:191: error: (Each undeclared identifier is reported only once for each function it appears in.)
ktorrent.cpp:192: error: `Settings' has not been declared
ktorrent.cpp:192: error: `maxConnections' undeclared (first use this function)
ktorrent.cpp:193: error: `Settings' has not been declared
ktorrent.cpp:193: error: `maxUploadRate' undeclared (first use this function)
ktorrent.cpp:194: error: `Settings' has not been declared
ktorrent.cpp:194: error: `maxDownloadRate' undeclared (first use this function)
ktorrent.cpp:195: error: `Settings' has not been declared
ktorrent.cpp:195: error: `keepSeeding' undeclared (first use this function)
ktorrent.cpp:197: error: `Settings' has not been declared
ktorrent.cpp:197: error: `showSystemTrayIcon' undeclared (first use this function)
ktorrent.cpp:207: error: `Settings' has not been declared
ktorrent.cpp:207: error: `tempDir' undeclared (first use this function)
ktorrent.cpp:208: error: `Settings' has not been declared
ktorrent.cpp:208: error: `udpTrackerPort' undeclared (first use this function)
ktorrent.cpp:209: error: `Settings' has not been declared
ktorrent.cpp:209: error: `port' undeclared (first use this function)
ktorrent.cpp: In member function `virtual bool KTorrent::queryClose()':
ktorrent.cpp:291: error: `Settings' has not been declared
ktorrent.cpp:291: error: `showSystemTrayIcon' undeclared (first use this function)
ktorrent.cpp: In member function `void KTorrent::fileNew()':
ktorrent.cpp:313: error: 'class TorrentCreatorDlg' has no member named 'show'
ktorrent.cpp:314: error: 'class TorrentCreatorDlg' has no member named 'exec'
ktorrent.cpp: In member function `void KTorrent::askAndSave(bt::TorrentControl*)':
ktorrent.cpp:351: error: `Settings' has not been declared
ktorrent.cpp:351: error: `saveDir' undeclared (first use this function)
ktorrent.cpp:351: error: `Settings' has not been declared
ktorrent.cpp:366: error: `Settings' has not been declared
ktorrent.cpp: In member function `void KTorrent::startDownload()':
ktorrent.cpp:400: error: `Settings' has not been declared
ktorrent.cpp:400: error: `maxDownloads' undeclared (first use this function)
*** Error code 1

Am I missing something. Seems like I don-t have whole package, and I downloaded source tar file...

Andy
George
Moderator
Posts
5421
Karma
1

Sun Oct 02, 2005 9:09 am
All the stuff which needs to be generated doesn't get generated.

First run :
aclocal
automake
autoconf
./configure
make

See if this works.
imported4-Anonymous
Registered Member
Posts
329
Karma
0

Wed Oct 05, 2005 1:05 am
make sure you use "gmake" and not "make", as the latter one is FreeBSD's native make and KDE apps require some features of GNU make.
imported4-Anonymous
Registered Member
Posts
329
Karma
0

Wed Nov 02, 2005 11:20 am
George wrote:All the stuff which needs to be generated doesn't get generated.

First run :
aclocal
automake
autoconf
./configure
make


I am a automake newbie running FreeBSD 5.2.1, and still have problems...

Source is downloaded from SVN as described in the FAQ.

I then have a directory with these contents:

Code: Select all
AUTHORS                 NEWS                    ktorrent/
COPYING                 README                  ktorrent.kdevelop
ChangeLog               TODO                    libktorrent/
Doxyfile                apps/                   plugins/
INSTALL                 autom4te.cache/         templates/
Makefile.am             configure.in.in
Makefile.cvs            estimation-scripts/


I try to run aclocal...
Code: Select all
$ aclocal19
aclocal19: `configure.ac' or `configure.in' is required


Why is it called configure.in.in?

I rename the file to configure.in, and try again...

Code: Select all
/usr/X11R6/share/aclocal/wxwin.m4:36: warning: underquoted definition of AM_OPTIONS_WXCONFIG
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/X11R6/share/aclocal/wxwin.m4:59: warning: underquoted definition of AM_PATH_WXCONFIG
/usr/X11R6/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB
/usr/X11R6/share/aclocal/imlib.m4:167: warning: underquoted definition of AM_PATH_GDK_IMLIB
/usr/X11R6/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
configure.in:4: error: m4_defn: undefined macro: _m4_divert_diversion
/usr/local/share/aclocal19/init.m4:92: AM_INIT_AUTOMAKE is expanded from...
configure.in:4: the top level
autom4te259: /usr/local/bin/gm4 failed with exit status: 1
aclocal19: autom4te259 failed with exit status: 1


I have tried to make something out of this, but it seems to be out of my league.

Any help will be appreciated.

-Bart-
Bart
Registered Member
Posts
11
Karma
0

Wed Nov 02, 2005 11:27 am
I have now registered myself in the forum, and I use this message to get notified about thread activity... :wink:
George
Moderator
Posts
5421
Karma
1

Thu Nov 03, 2005 11:32 am
You also need to get unsermake (Note to self : update FAQ), which you can find somewhere in the svn repository + you need an admin dir :

svn co svn://anonsvn.kde.org/home/kde/branches ... mon/admin/

Then make -f Makefile.cvs and it should go

Edit: see http://www.kde.me.uk/index.php?page=unsermake for unsermake
imported4-Anonymous
Registered Member
Posts
329
Karma
0

Thu Nov 03, 2005 1:18 pm
George wrote:You also need to get unsermake (Note to self : update FAQ), which you can find somewhere in the svn repository + you need an admin dir


Thanks!

I grabbed unsermake from SVN, and used gmake to build under FreeBSD.

Now it compiles/builds nicely. :D


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]