: Applications
: kbgoffice
: zubizabi

zubizabi 11 2009, 13:25
kbgoffice
niki@linux-g0q1:~/Program/kbgoffice-1.8> make
Making all in src                            
make[1]: Entering directory `/home/niki/Program/kbgoffice-1.8/src'
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"bgoffice\" -DVERSION=\"1.8\" -DSTDC_HEADERS=1  -I. -I.  -I/usr/lib/qt3/include   -Wall  -O2 -c main.cpp                                                  
main.cpp: In function int main(int, char**):                                                                                              
main.cpp:64: error: getenv was not declared in this scope
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/home/niki/Program/kbgoffice-1.8/src'
make: *** [all-recursive] Error 1

altoas 11 2009, 23:07
./configure ?
zubizabi 13 2009, 16:53
niki@linux-g0q1:~> cd /home/niki/Program/kbgoffice-1.8
niki@linux-g0q1:~/Program/kbgoffice-1.8> ./configure  
checking build system type... i686-pc-linux-gnu      
checking host system type... i686-pc-linux-gnu        
checking target system type... i686-pc-linux-gnu      
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes          
checking whether make sets $(MAKE)... yes                  
checking for working aclocal-1.4... missing                
checking for working autoconf... missing                    
checking for working automake-1.4... missing                
checking for working autoheader... missing                  
checking for working makeinfo... missing
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for X... libraries , headers in standard search path
checking for QT libraries... /usr/lib/qt3/lib
checking for QT includes... /usr/lib/qt3/include
checking for QT 3.0 or higher... yes
checking for moc... /usr/lib/qt3/bin/moc
checking for KDE 3... "no"
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/config.h
config.status: creating src/kbgoffice.desktop
config.status: creating icons/Makefile

KDE 3 support : disabled. To enable use './configure --with-kde'.

Qt includes   : /usr/lib/qt3/include
Qt libraries  : /usr/lib/qt3/lib
Qt moc        : /usr/lib/qt3/bin/moc

Data directory: /usr/local/share

Good news! Look that you have all needed packages installed
Type 'make' (or 'gmake') to compile the program
After that type 'make install' to install the program and data
For 'make install' you must be root (su)
At the end in a X terminal window type 'kbgoffice' to run the program

niki@linux-g0q1:~/Program/kbgoffice-1.8>

altoas 14 2009, 11:07
Good news! Look that you have all needed packages installed
Type 'make' (or 'gmake') to compile the program
After that type 'make install' to install the program and data
For 'make install' you must be root (su)
At the end in a X terminal window type 'kbgoffice' to run the program
zubizabi 14 2009, 16:52
-
main.cpp:64: error: getenv was not declared in this scope
make[1]: *** [main.o] Error 1


-
niki@linux-g0q1:~> kbgoffice
bash: kbgoffice: command not found

acider 14 2009, 21:47
.
.
./configure && make && make install > kbgoffice.log.txt

zubizabi 15 2009, 22:20
niki@linux-g0q1:~> cd /home/niki/Program/kbgoffice-1.8
niki@linux-g0q1:~/Program/kbgoffice-1.8> ./configure && make && make install > kbgoffice.log.txt
checking build system type... i686-pc-linux-gnu                                                
checking host system type... i686-pc-linux-gnu                                                  
checking target system type... i686-pc-linux-gnu                                                
checking for a BSD-compatible install... /usr/bin/install -c                                    
checking whether build environment is sane... yes                                              
checking whether make sets $(MAKE)... yes                                                      
checking for working aclocal-1.4... missing                                                    
checking for working autoconf... missing                                                        
checking for working automake-1.4... missing                                                    
checking for working autoheader... missing                                                      
checking for working makeinfo... missing                                                        
checking for gcc... gcc                                                                        
checking for C compiler default output file name... a.out                                      
checking whether the C compiler works... yes                                                    
checking whether we are cross compiling... no                                                  
checking for suffix of executables...                                                          
checking for suffix of object files... o                                                        
checking whether we are using the GNU C compiler... yes                                        
checking whether gcc accepts -g... yes                                                          
checking for gcc option to accept ANSI C... none needed                                        
checking how to run the C preprocessor... gcc -E                                                
checking for g++... g++                                                                        
checking whether we are using the GNU C++ compiler... yes                                      
checking whether g++ accepts -g... yes                                                          
checking whether make sets $(MAKE)... (cached) yes                                              
checking for a BSD-compatible install... /usr/bin/install -c                                    
checking for egrep... grep -E                                                                  
checking for ANSI C header files... yes                                                        
checking for X... libraries , headers in standard search path                                  
checking for QT libraries... /usr/lib/qt3/lib                                                  
checking for QT includes... /usr/lib/qt3/include                                                
checking for QT 3.0 or higher... yes                                                            
checking for moc... /usr/lib/qt3/bin/moc                                                        
checking for KDE 3... "no"                                                                      
configure: creating ./config.status                                                            
config.status: creating Makefile                                                                
config.status: creating src/Makefile                                                            
config.status: creating src/config.h                                                            
config.status: creating src/kbgoffice.desktop                                                  
config.status: creating icons/Makefile                                                          

KDE 3 support : disabled. To enable use './configure --with-kde'.

Qt includes   : /usr/lib/qt3/include
Qt libraries  : /usr/lib/qt3/lib    
Qt moc        : /usr/lib/qt3/bin/moc

Data directory: /usr/local/share

Good news! Look that you have all needed packages installed
Type 'make' (or 'gmake') to compile the program
After that type 'make install' to install the program and data
For 'make install' you must be root (su)
At the end in a X terminal window type 'kbgoffice' to run the program

Making all in src
make[1]: Entering directory `/home/niki/Program/kbgoffice-1.8/src'
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"bgoffice\" -DVERSION=\"1.8\" -DSTDC_HEADERS=1  -I. -I.  -I/usr/lib/qt3/include   -Wall  -O2 -c main.cpp
main.cpp: In function int main(int, char**):
main.cpp:64: error: getenv was not declared in this scope
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/home/niki/Program/kbgoffice-1.8/src'
make: *** [all-recursive] Error 1
niki@linux-g0q1:~/Program/kbgoffice-1.8>

nikolavp 21 2009, 10:18
main.cpp -
#include <cstdlib>
using namespace std;
- . , , :)
zubizabi 21 2009, 12:45

using namespace std;

nikolavp 21 2009, 12:55
int main()...



zubizabi 21 2009, 17:23
main.cpp

#include <cstdlib>
#include <sys/types.h>
#include <time.h>

#ifdef WITH_KDE
#include <kapp.h>
#include <kcmdlineargs.h>
#include <kmessagebox.h>
#else
#include <qapplication.h>
#include <qmessagebox.h>
#endif

#include "config.h"
#include "properties.h"
#include "encodechar.h"
#include "win.h"
#include "splashscreen.h"


#ifdef DATA_DIR_CONFIG
static const char DATA_DIR[] = DATA_DIR_CONFIG;
#else
static const char DATA_DIR[] = "/usr/local/share/bgoffice/";
#endif


QTextCodec* Converter1251;

const char MISSING_DATA[] =
"Cannot find dictionary files.\n"
"Please look at README for additional information and help or "
"visit http://bgoffice.sourceforge.net to download dictionaries.";
using namespace std;

int main(int argc, char **argv) {




niki@linux-g0q1:~/Program/kbgoffice-1.8> make
Making all in src                            
make[1]: Entering directory `/home/niki/Program/kbgoffice-1.8/src'
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"bgoffice\" -DVERSION=\"1.8\" -DSTDC_HEADERS=1  -I. -I.  -I/usr/lib/qt3/include   -Wall  -O2 -c main.cpp                                                  
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"bgoffice\" -DVERSION=\"1.8\" -DSTDC_HEADERS=1  -I. -I.  -I/usr/lib/qt3/include   -Wall  -O2 -c win.cpp                                                  
In file included from win.cpp:79:                                                                                                            
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
../icons/kbgoffice_icon.xpm:35: warning: deprecated conversion from string constant to char*                                              
In file included from win.cpp:80:                                                                                                            
../icons/kbgoffice_icon_mini.xpm:19: warning: deprecated conversion from string constant to char*                                          
../icons/kbgoffice_icon_mini.xpm:19: warning: deprecated conversion from string constant to char*                                          
../icons/kbgoffice_icon_mini.xpm:19: warning: deprecated conversion from string constant to char*                                          
../icons/kbgoffice_icon_mini.xpm:19: warning: deprecated conversion from string constant to char*                                          
../icons/kbgoffice_icon_mini.xpm:19: warning: deprecated conversion from string constant to char*                                          
../icons/kbgoffice_icon_mini.xpm:19: warning: deprecated conversion from string constant to char*                                          
../icons/kbgoffice_icon_mini.xpm:19: warning: deprecated conversion from string constant to char*                                          
../icons/kbgoffice_icon_mini.xpm:19: warning: deprecated conversion from string constant to char*                                          
../icons/kbgoffice_icon_mini.xpm:19: warning: deprecated conversion from string constant to char*
../icons/kbgoffice_icon_mini.xpm:19: warning: deprecated conversion from string constant to char*
../icons/kbgoffice_icon_mini.xpm:19: warning: deprecated conversion from string constant to char*
../icons/kbgoffice_icon_mini.xpm:19: warning: deprecated conversion from string constant to char*
../icons/kbgoffice_icon_mini.xpm:19: warning: deprecated conversion from string constant to char*
../icons/kbgoffice_icon_mini.xpm:19: warning: deprecated conversion from string constant to char*
../icons/kbgoffice_icon_mini.xpm:19: warning: deprecated conversion from string constant to char*
../icons/kbgoffice_icon_mini.xpm:19: warning: deprecated conversion from string constant to char*
../icons/kbgoffice_icon_mini.xpm:19: warning: deprecated conversion from string constant to char*
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"bgoffice\" -DVERSION=\"1.8\" -DSTDC_HEADERS=1  -I. -I.  -I/usr/lib/qt3/include   -Wall  -O2 -c translator_manager.cpp
translator_manager.cpp: In member function std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > TranslatorManager::findFiles(const char*, const char*):
translator_manager.cpp:319: error: strlen was not declared in this scope
make[1]: *** [translator_manager.o] Error 1
make[1]: Leaving directory `/home/niki/Program/kbgoffice-1.8/src'
make: *** [all-recursive] Error 1
niki@linux-g0q1:~/Program/kbgoffice-1.8>



nikolavp 22 2009, 21:53
header . strlen #include <cstring>, . , Qt4, , .


svn co http://svn.assembla.com/svn/kbgoffice/trunk kbgoffice;cd kbgoffice
cd kboffice;cat INSTALL
subversion :)
zubizabi 23 2009, 21:01
Linking CXX executable kbgoffice
[100%] Built target kbgoffice
niki@linux-g0q1:~/kbgoffice/Build> cd src
niki@linux-g0q1:~/kbgoffice/Build/src> ./kbgoffice
TranslatorManager::findFiles - Unable to open directory: /usr/local/share/bgoffice/
TranslatorManager::init - There is no dictionary files in directory: /usr/local/share/bgoffice/
Object::connect: No such signal QGroupBox::clicked(int)
Object::connect: No such signal QGroupBox::clicked(int)
niki@linux-g0q1:~/kbgoffice/Build/src>



nikolavp 25 2009, 14:18
. :
< http://bgoffice.sourceforge.net/assistant/index.html >
altoas 29 2009, 20:59
Code Sample: 
--- kbgoffice-1.8/src/main.cpp 2005-11-26 00:41:24.000000000 +0200
+++ kbgoffice-1.8/src/main.cpp 2009-04-29 20:46:07.000000000 +0300
@@ -42,7 +42,8 @@
#include "encodechar.h"
#include "win.h"
#include "splashscreen.h"
-
+#include <cstdlib>
+#include <cstring>

#ifdef DATA_DIR_CONFIG
static const char DATA_DIR[] = DATA_DIR_CONFIG;
--- kbgoffice-1.8/src/translator_manager.cpp 2005-11-26 00:41:24.000000000 +0200
+++ kbgoffice-1.8/src/translator_manager.cpp 2009-04-29 20:48:42.000000000 +0300
@@ -25,7 +25,7 @@
#include <string>
#include <iostream>
#include <algorithm>
-
+#include <string.h>
using namespace std;

#include "properties.h"

patch ,


zubizabi 03 2009, 19:30


patch ,




altoas 04 2009, 13:04
man patch
Powered by ikonforums 1.0.0 © 2006 ikonforums