OpenWengo

kvats.net
Welcome, Guest
Please Login or Register.    Lost Password?
Re:building on linux amd64 gcc 4.3.1 (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:building on linux amd64 gcc 4.3.1
#40
Philipp Schwaha (Visitor)
Click here to see the profile of this user
Birthdate:
building on linux amd64 gcc 4.3.1 2 Years, 1 Month ago  
hi!

I've successfully build kvats using gcc 4.3.1 on 64bit linux (gentoo)

aside from changing the compiler information in the top bash script a few additional changes were required:

diff -r 6b1d2205d32b libs/owutil/thread/RecursiveMutex.h
--- a/libs/owutil/thread/RecursiveMutex.h Mon Jul 07 16:51:10 2008 +0200
+++ b/libs/owutil/thread/RecursiveMutex.h Wed Jul 16 08:33:54 2008 +0200
@@ -33,13 +33,13 @@

typedef scoped_lock ScopedLock;

- void lock() {
- boost::detail::thread::lock_ops<boost::recursive_mutex>::lock(*this);
- }
-
- void unlock() {
- boost::detail::thread::lock_ops<boost::recursive_mutex>::unlock(*this);
- }
+// void lock() {
+// boost::detail::thread::lock_ops<boost::recursive_mutex>::lock(*this);
+// }
+//
+// void unlock() {
+// boost::detail::thread::lock_ops<boost::recursive_mutex>::unlock(*this);
+// }

};

diff -r 6b1d2205d32b wengophone/src/presentation/qt/chat/QtChatAvatarWidget.cpp
--- a/wengophone/src/presentation/qt/chat/QtChatAvatarWidget.cpp Mon Jul 07 16:51:10 2008 +0200
+++ b/wengophone/src/presentation/qt/chat/QtChatAvatarWidget.cpp Wed Jul 16 08:33:54 2008 +0200
@@ -51,6 +51,9 @@
defaultAvatar.loadFromData((uchar*) data.c_str(), data.size());
QPainter painter(&background);

+#ifdef HUGE
+#undef HUGE
+#endif
if (!pixmap.isNull()) {
switch (_pictureMode) {
case HUGE:
diff -r 6b1d2205d32b wifo/netlib/src/netlib.cpp
--- a/wifo/netlib/src/netlib.cpp Mon Jul 07 16:51:10 2008 +0200
+++ b/wifo/netlib/src/netlib.cpp Wed Jul 16 08:33:54 2008 +0200
@@ -39,6 +39,7 @@
#include <net/if.h>
#include <sys/ioctl.h>
#include <netdb.h>
+ #include <string.h>
#include <strings.h>
#endif //OS_WIN32
#include <stdlib.h>


this leads to successful compilation (with quite a few warnings), which also results in a working executable

placing calls and being called works quite nicely, as does messaging

sometimes, however, it insists on
putting a prefix to a sip address (43664)

furthermore it seems threads are spawned without need or limitation, usually shortly after ending a call the cpu is used by 100%, making a second call (and ending it) results in another thread consuming another 100% (on dual core) ... this continues so even a quad core will have all its cores occupied by quats (for amazing 400%)
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#41
ras (Admin)
Admin
Posts: 33
User Offline Click here to see the profile of this user
Re:building on linux amd64 gcc 4.3.1 2 Years ago  
Thank you contributing scripts for compiling with gcc 4.3.1.

Regarding CPU load: I have the same experience on an MacBookPro (with Intel dual core CPU) running Kubuntu. After some occasions, like playing a sound from the jungle or when putting a call on hold, the audio gets distorted and CPU is up to 100%. I assume we have some problem with the audio libs, which is 64bit architecture dependent.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop