[Freeswitch-users] Compiling FSComm

Antonio Silva asilva at wirelessmundi.com
Fri Dec 7 14:10:05 MSK 2012


Hi,

i'm trying to compile fscomm but i have the following errors:

"
freeswitch-git/fscomm# qmake
freeswitch-git/fscomm# make
/usr/bin/uic-qt4 mainwindow.ui -o ui_mainwindow.h
/usr/bin/uic-qt4 preferences/prefdialog.ui -o ui_prefdialog.h
/usr/bin/uic-qt4 preferences/accountdialog.ui -o ui_accountdialog.h
/usr/bin/uic-qt4 widgets/codecwidget.ui -o ui_codecwidget.h
/usr/bin/uic-qt4 debugtools/consolewindow.ui -o ui_consolewindow.h
/usr/bin/uic-qt4 debugtools/statedebugdialog.ui -o ui_statedebugdialog.h
Warning: name layoutWidget is already used
Warning: name layoutWidget is already used
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_XML_LIB
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g
++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtXml -I/usr/include/qt4 -I../src/include
-I../libs/apr/include -I../libs/libteletone/src -I. -I. -o main.o
main.cpp
In file included from mainwindow.h:38,
                 from main.cpp:32:
../src/include/switch.h:110:18: error: stfu.h: No such file or directory
In file included from ../src/include/switch.h:121,
                 from mainwindow.h:38,
                 from main.cpp:32:
../src/include/switch_core.h:752: error: expected constructor,
destructor, or type conversion before ‘*’ token
In file included from ../src/include/switch_loadable_module.h:46,
                 from ../src/include/switch.h:122,
                 from mainwindow.h:38,
                 from main.cpp:32:
../src/include/switch_module_interfaces.h:121: error: expected
initializer before ‘*’ token
../src/include/switch_module_interfaces.h:162: error:
‘switch_io_get_jb_t’ does not name a type
In file included from ../src/include/switch.h:134,
                 from mainwindow.h:38,
                 from main.cpp:32:
../src/include/switch_rtp.h:243: error: expected constructor,
destructor, or type conversion before ‘*’ token
./fshost.h:43: warning: ‘void eventHandlerCallback(switch_event_t*)’
declared ‘static’ but never defined
./fshost.h:44: warning: ‘switch_status_t loggerHandler(const
switch_log_node_t*, switch_log_level_t)’ declared ‘static’ but never
defined
make: *** [main.o] Error 1
"

watching this error: 
"../src/include/switch.h:110:18: error: stfu.h: No such file or
directory"

i manually change switch.h to fix the problem with the include by adding
the following:

"
diff --git a/src/include/switch.h b/src/include/switch.h
index c7ea7b0..2847112 100644
--- a/src/include/switch.h
+++ b/src/include/switch.h
@@ -107,7 +107,8 @@
 #include <errno.h>
 
 #ifndef WIN32
-#include "stfu.h"
+/* #include "stfu.h" */
+#include "../../../libs/stfu/stfu.h"
 #else
 #include "../../../libs/stfu/stfu.h"
 #endif

"

I could compile fscomm, but now i can't start it... i have the following
error:
"
Initializing core... 
Failed to initialize FreeSWITCH's core: Cannot Open log directory or XML
Root!
Everything OK, Entering runtime loop ... 
Segmentation fault
"
i had try the fix in the wiki: "chmod  644
~/.fscomm/conf/freeswitch.xml", and even "chmod -R 777 ~/.fscomm",  but
no luck...

Can you help me to go further...?

I'm trying it to install on a debian squeeze, i installed qt4-dev-tools.
Is it possible to install in debian squeeze our i should just  give
up... and try another distro?
The freeswitch-git is the lasted head. 

 
Thanks,
António
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121207/23ef5343/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list