logo

Could not compile stylesheet for simplistic. Using last compiled stylesheet.

using web services

posted in Uncategorized
Wednesday, September 28 2011, 05:22 PM
hlandaluce
hlandaluce
Offline
0
Good afternoon!! I am doing an application for the Igep in C/C++ and I need to use a web service. I have tried with gSOAP library but I have problems to cross compile it... There is an easy way to do this? Do I need an external library like gSOAP or another one? In that case, How do I cross compile an external C++ library? Thanks
Responses (12)
  • Accepted Answer

    mcaro
    mcaro
    Offline
    Wednesday, September 28 2011, 08:21 PM - #permalink
    0
    Maybe this can help you: source /usr/local/poky/eabi-glibc/environment-setup-arm-none-linux-gnueabi ./configure --target=arm-none-linux-gnueabi --host=arm-none-linux-gnueabi --build=i586-linux make
    The reply is currently minimized Show
  • Accepted Answer

    hlandaluce
    hlandaluce
    Offline
    Thursday, September 29 2011, 04:00 PM - #permalink
    0
    I\\\'m still having problems... This error appears while doing make command: [code]error: iostream.h: No such file or directory error: \\\'cout\\\' was not declared in this scope error: \\\'endl\\\' was not declared in this scope[/code] A similar error appears with another library: [code]error: \\\'bzero\\\' was not declared in this scope[/code] Why my arm compiler doesn\\\'t find basic functions of C++ ? Is there any flag or any variable that I must configure?
    The reply is currently minimized Show
  • Accepted Answer

    mcaro
    mcaro
    Offline
    Thursday, September 29 2011, 04:32 PM - #permalink
    0
    what compiler/toolchain are you using?
    The reply is currently minimized Show
  • Accepted Answer

    hlandaluce
    hlandaluce
    Offline
    Thursday, September 29 2011, 04:42 PM - #permalink
    0
    in enviroment setup file had this: export CC=arm-none-linux-gnueabi-gcc But I\\\'ve tried also with: export CC=arm-none-linux-gnueabi-g++ (and doing source command after changing it)
    The reply is currently minimized Show
  • Accepted Answer

    mcaro
    mcaro
    Offline
    Thursday, September 29 2011, 08:00 PM - #permalink
    0
    If you don\\\'t provide more information I don\\\'t know how help you ... What compiler/toolchain are you using? What host linux distro are you using?
    The reply is currently minimized Show
  • Accepted Answer

    hlandaluce
    hlandaluce
    Offline
    Friday, September 30 2011, 09:47 AM - #permalink
    0
    I\\\'m using Ubuntu 8.04.3 (SDK) to cross compile my application. And I\\\'m using arm-none-linux-gnueabi toolchain that is included in that distro (in /usr/local/poky/eabi-glibc/arm/ directory).
    The reply is currently minimized Show
  • Accepted Answer

    mcaro
    mcaro
    Offline
    Friday, September 30 2011, 10:03 AM - #permalink
    0
    Ok, now post the steps that you\\\'re doing ... and the configure & build log ...
    The reply is currently minimized Show
  • Accepted Answer

    hlandaluce
    hlandaluce
    Offline
    Friday, September 30 2011, 10:55 AM - #permalink
    0
    $ source /usr/local/poky/eabi-glibc/arm/enviroment-setup $ cd /home/jdoe/Desktop/libserial-0.5.2/ #libserial is the other library that I can\\\'t cross compile $ ./configure --target=arm-none-linux-gnueabi --host=arm-none-linux-gnueabi --build=i586-linux $ make Sorry for everything, I\\\'m new with Igep boards and Linux
    The reply is currently minimized Show
  • Accepted Answer

    mcaro
    mcaro
    Offline
    Friday, September 30 2011, 10:57 AM - #permalink
    0
    You left the configure and build log ...
    The reply is currently minimized Show
  • Accepted Answer

    hlandaluce
    hlandaluce
    Offline
    Friday, September 30 2011, 11:09 AM - #permalink
    0
    Sorry :o ops: Here is the configure log: [spoiler]configure: loading site script /usr/local/poky/eabi-glibc/arm/site-config checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for arm-none-linux-gnueabi-strip... arm-none-linux-gnueabi-strip checking whether to enable maintainer-specific portions of Makefiles... no checking for arm-none-linux-gnueabi-g++... arm-none-linux-gnueabi-g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... yes checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether arm-none-linux-gnueabi-g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of arm-none-linux-gnueabi-g++... gcc3 checking for gawk... (cached) gawk checking for arm-none-linux-gnueabi-gcc... arm-none-linux-gnueabi-g++ checking whether we are using the GNU C compiler... yes checking whether arm-none-linux-gnueabi-g++ accepts -g... yes checking for arm-none-linux-gnueabi-g++ option to accept ANSI C... none needed checking dependency style of arm-none-linux-gnueabi-g++... gcc3 checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking build system type... i586-pc-linux-gnu checking host system type... arm-none-linux-gnueabi checking for a sed that does not truncate output... /bin/sed checking for egrep... grep -E checking for ld used by arm-none-linux-gnueabi-g++... /usr/local/poky/eabi-glibc/arm/arm-none-linux-gnueabi/bin/ld checking if the linker (/usr/local/poky/eabi-glibc/arm/arm-none-linux-gnueabi/bin/ld) is GNU ld... yes checking for /usr/local/poky/eabi-glibc/arm/arm-none-linux-gnueabi/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/local/poky/eabi-glibc/arm/bin/arm-none-linux-gnueabi-nm -B checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... arm-none-linux-gnueabi-g++ -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking how to run the C++ preprocessor... arm-none-linux-gnueabi-g++ -E checking for arm-none-linux-gnueabi-g77... no checking for arm-none-linux-gnueabi-f77... no checking for arm-none-linux-gnueabi-xlf... no checking for arm-none-linux-gnueabi-frt... no checking for arm-none-linux-gnueabi-pgf77... no checking for arm-none-linux-gnueabi-fort77... no checking for arm-none-linux-gnueabi-fl32... no checking for arm-none-linux-gnueabi-af77... no checking for arm-none-linux-gnueabi-f90... no checking for arm-none-linux-gnueabi-xlf90... no checking for arm-none-linux-gnueabi-pgf90... no checking for arm-none-linux-gnueabi-epcf90... no checking for arm-none-linux-gnueabi-f95... no checking for arm-none-linux-gnueabi-fort... no checking for arm-none-linux-gnueabi-xlf95... no checking for arm-none-linux-gnueabi-ifc... no checking for arm-none-linux-gnueabi-efc... no checking for arm-none-linux-gnueabi-pgf95... no checking for arm-none-linux-gnueabi-lf95... no checking for arm-none-linux-gnueabi-gfortran... no checking for g77... no checking for f77... no checking for xlf... no checking for frt... no checking for pgf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for f90... no checking for xlf90... no checking for pgf90... no checking for epcf90... no checking for f95... no checking for fort... no checking for xlf95... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for gfortran... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 32768 checking command to parse /usr/local/poky/eabi-glibc/arm/bin/arm-none-linux-gnueabi-nm -B output from arm-none-linux-gnueabi-g++ object... ok checking for objdir... .libs checking for arm-none-linux-gnueabi-ar... arm-none-linux-gnueabi-ar checking for arm-none-linux-gnueabi-ranlib... arm-none-linux-gnueabi-ranlib checking for arm-none-linux-gnueabi-strip... (cached) arm-none-linux-gnueabi-strip checking for correct ltmain.sh version... yes checking if arm-none-linux-gnueabi-g++ supports -fno-rtti -fno-exceptions... yes checking for arm-none-linux-gnueabi-g++ option to produce PIC... -fPIC checking if arm-none-linux-gnueabi-g++ PIC flag -fPIC works... yes checking if arm-none-linux-gnueabi-g++ static flag -static works... yes checking if arm-none-linux-gnueabi-g++ supports -c -o file.o... yes checking whether the arm-none-linux-gnueabi-g++ linker (/usr/local/poky/eabi-glibc/arm/arm-none-linux-gnueabi/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating libtool appending configuration tag \\\"CXX\\\" to libtool checking for ld used by arm-none-linux-gnueabi-g++... /usr/local/poky/eabi-glibc/arm/arm-none-linux-gnueabi/bin/ld checking if the linker (/usr/local/poky/eabi-glibc/arm/arm-none-linux-gnueabi/bin/ld) is GNU ld... yes checking whether the arm-none-linux-gnueabi-g++ linker (/usr/local/poky/eabi-glibc/arm/arm-none-linux-gnueabi/bin/ld) supports shared libraries... yes checking for arm-none-linux-gnueabi-g++ option to produce PIC... -fPIC checking if arm-none-linux-gnueabi-g++ PIC flag -fPIC works... yes checking if arm-none-linux-gnueabi-g++ static flag -static works... yes checking if arm-none-linux-gnueabi-g++ supports -c -o file.o... yes checking whether the arm-none-linux-gnueabi-g++ linker (/usr/local/poky/eabi-glibc/arm/arm-none-linux-gnueabi/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate appending configuration tag \\\"F77\\\" to libtool checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for inline... inline configure: creating ./config.status config.status: creating ./Makefile config.status: creating ./doxygen.conf config.status: creating ./libserial.spec config.status: creating ./doc/UML/Makefile config.status: creating ./doc/Makefile config.status: creating ./examples/Makefile config.status: creating ./src/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands[/spoiler] and the build log: [spoiler]make all-recursive make[1]: Entering directory `/home/jdoe/Desktop/Cosas/libserial-0.5.2\\\' Making all in src make[2]: Entering directory `/home/jdoe/Desktop/Cosas/libserial-0.5.2/src\\\' if /bin/sh ../libtool --tag=CXX --mode=compile arm-none-linux-gnueabi-g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT SerialStreamBuf.lo -MD -MP -MF \\\".deps/SerialStreamBuf.Tpo\\\" -c -o SerialStreamBuf.lo SerialStreamBuf.cc; \\\\ then mv -f \\\".deps/SerialStreamBuf.Tpo\\\" \\\".deps/SerialStreamBuf.Plo\\\"; else rm -f \\\".deps/SerialStreamBuf.Tpo\\\"; exit 1; fi arm-none-linux-gnueabi-g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT SerialStreamBuf.lo -MD -MP -MF .deps/SerialStreamBuf.Tpo -c SerialStreamBuf.cc -fPIC -DPIC -o .libs/SerialStreamBuf.o make[2]: Leaving directory `/home/jdoe/Desktop/Cosas/libserial-0.5.2/src\\\' make[1]: Leaving directory `/home/jdoe/Desktop/Cosas/libserial-0.5.2\\\' SerialStreamBuf.cc: In member function \\\'int LibSerial::SerialStreamBuf::SetParametersToDefault()\\\': SerialStreamBuf.cc:171: error: \\\'bzero\\\' was not declared in this scope make[2]: *** [SerialStreamBuf.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 [/spoiler]
    The reply is currently minimized Show
  • Accepted Answer

    mcaro
    mcaro
    Offline
    Friday, September 30 2011, 11:21 AM - #permalink
    0
    The problem it\\\'s NOT related to cross-compile, this is a software bug ... if this software don\\\'t include the right headers it\\\'s normal that it cannot be build ... Ex: open src/SerialStreamBuf.cc and add at top the line: #include
    The reply is currently minimized Show
  • Accepted Answer

    hlandaluce
    hlandaluce
    Offline
    Friday, September 30 2011, 12:00 PM - #permalink
    0
    Thanks for everything!!! As you have said, the source code was wrong. I have change it and everything si ok now. [code]./configure --target=arm-none-linux-gnueabi --host=arm-none-linux-gnueabi --build=i586-linux --prefix=/home/jdoe/Desktop/libserial-0.5.2/bin make make install[/code] and then, in ./bin/lib folder there are these files: [code]libserial.a libserial.la libserial.so libserial.so.0 libserial.so.0.0.0 file libserial.so.0.0.0 libserial.so.0.0.0: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), not stripped [/code]
    The reply is currently minimized Show
Your Reply

SUPPORT


This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it.
IGEP Community Wiki
IGEP Community Forum
IGEP Community Online Chat