Problem compiling libbuletml form psplibraries in cygwin

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Murderface
Posts: 3
Joined: Thu Apr 09, 2009 3:50 am

Problem compiling libbuletml form psplibraries in cygwin

Post by Murderface »

Tried it a few different times, still haven't gotten it to work, it's actually the only library I'm missing for my enviroment other than libvorbis :/ so I'd like to finish it.

Code: Select all

Deathwish@home ~/sdk/psplibraries
$ ./libraries.sh 5
At revision 2455.
rm -f *.o *.a
make -C tinyxml clean
make[1]: Entering directory `/home/user/sdk/psplibraries/build/libbulletml/src/
inyxml'
rm -f core tinyxml.o tinyxmlparser.o xmltest.o tinyxmlerror.o xmltest
make[1]: Leaving directory `/home/user/sdk/psplibraries/build/libbulletml/src/t
nyxml'
psp-g++ -c -g -O2 -G0 -W -Wall -fsingle-precision-constant -fno-exceptions -I.
I tinyxml bulletmlparser-tinyxml.cpp
psp-g++ -c -g -O2 -G0 -W -Wall -fsingle-precision-constant -fno-exceptions -I.
I tinyxml bulletmlparser.cpp
psp-g++ -c -g -O2 -G0 -W -Wall -fsingle-precision-constant -fno-exceptions -I.
I tinyxml bulletmltree.cpp
psp-g++ -c -g -O2 -G0 -W -Wall -fsingle-precision-constant -fno-exceptions -I.
I tinyxml calc.cpp
y.tab.c: In function 'int yyparse()':
y.tab.c:1508: warning: deprecated conversion from string constant to 'char*'
y.tab.c:1626: warning: deprecated conversion from string constant to 'char*'
calc.yy: In function 'int yylex()':
calc.yy:128: error: 'strncmp' was not declared in this scope
formula-variables.h&#58; In member function 'Val_ Param<Val_>&#58;&#58;value&#40;&#41; const &#91;with
al_ = float&#93;'&#58;
calc.yy&#58;161&#58;   instantiated from here
formula-variables.h&#58;38&#58; warning&#58; comparison between signed and unsigned integer
expressions
make&#58; *** &#91;calc.o&#93; Error 1
make&#58; *** Waiting for unfinished jobs....
../scripts/005-libbulletml.sh&#58; Failed.

Murderface
Posts: 3
Joined: Thu Apr 09, 2009 3:50 am

Post by Murderface »

Sorry for double post, I figured I'dd add my libvorbis error here as well..

Code: Select all

$ ./libraries.sh 12
At revision 2455.
checking for autoconf...
checking for automake...
checking for libtool... libtoolize
Generating configuration files for vorbis, please wait....
  aclocal -I .
  autoheader
  libtoolize --automake
  automake --add-missing
doc/Makefile.am&#58;91&#58; foreach file, $&#40;SPEC_PNG&#58; non-POSIX variable name
doc/Makefile.am&#58;91&#58; &#40;probably a GNU make extension&#41;
doc/Makefile.am&#58;92&#58; foreach file, $&#40;SPEC_PDF&#58; non-POSIX variable name
doc/Makefile.am&#58;92&#58; &#40;probably a GNU make extension&#41;
doc/Makefile.am&#58;93&#58; `%'-style pattern rules are a GNU make extension
  autoconf
configure&#58; WARNING&#58; If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-cygwin
checking host system type... mipsallegrexel-psp-elf
checking target system type... mipsallegrexel-psp-elf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $&#40;MAKE&#41;... yes
checking for psp-strip... psp-strip
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for psp-gcc... psp-gcc
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 psp-gcc accepts -g... yes
checking for psp-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of psp-gcc... gcc3
checking how to run the C preprocessor... psp-gcc -E
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by psp-gcc... /usr/local/pspdev/psp/bin/ld.exe
checking if the linker &#40;/usr/local/pspdev/psp/bin/ld.exe&#41; is GNU ld... yes
checking for BSD- or MS-compatible name lister &#40;nm&#41;... /usr/local/pspdev/bin/psp
-nm -B
checking the name lister &#40;/usr/local/pspdev/bin/psp-nm -B&#41; interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-cygwin paths to mipsallegrexel-psp-elf format...
 func_noop_path_convert
checking for /usr/local/pspdev/psp/bin/ld.exe option to reload object files... -
r
checking for psp-objdump... psp-objdump
checking how to recognize dependent libraries... unknown
checking for psp-dlltool... no
checking for dlltool... dlltool
configure&#58; WARNING&#58; using cross tools not prefixed with host triplet
checking how to associate runtime and link libraries... printf %s\n
checking for psp-ar... psp-ar
checking for psp-strip... &#40;cached&#41; psp-strip
checking for psp-ranlib... psp-ranlib
checking command to parse /usr/local/pspdev/bin/psp-nm -B output from psp-gcc ob
ject... ok
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... no
checking for strings.h... no
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... no
checking for objdir... .libs
checking if psp-gcc supports -fno-rtti -fno-exceptions... no
checking for psp-gcc option to produce PIC... -fPIC -DPIC
checking if psp-gcc PIC flag -fPIC -DPIC works... yes
checking if psp-gcc static flag -static works... yes
checking if psp-gcc supports -c -o file.o... yes
checking if psp-gcc supports -c -o file.o... &#40;cached&#41; yes
checking whether the psp-gcc linker &#40;/usr/local/pspdev/psp/bin/ld.exe&#41; supports
shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for memory.h... &#40;cached&#41; no
checking for cos in -lm... yes
checking for pthread_create in -lpthread... no
checking for pkg-config... no
checking for Ogg... cross compiling; assumed OK...
yes
checking for oggpack_writealign... no
configure&#58; error&#58; Ogg >= 1.0 required !
../scripts/012-libvorbis.sh&#58; Failed.
I've installed both the libogg package and the one that came with the libraries package and it hits the error either way, Im guessing it's not looking in the right spot for ogg :/



Any help with either would be appreciated.
jojojoris
Posts: 255
Joined: Sun Mar 30, 2008 4:06 am

Post by jojojoris »

calc.yy:128: error: 'strncmp' was not declared in this scope

means the you forget to add
#include <cstring>
or
#include <string.h>

Code: Select all

int main&#40;&#41;&#123;
     SetupCallbacks&#40;&#41;;
     makeNiceGame&#40;&#41;;
     sceKernelExitGame&#40;&#41;;
&#125;
Murderface
Posts: 3
Joined: Thu Apr 09, 2009 3:50 am

Post by Murderface »

jojojoris wrote:calc.yy:128: error: 'strncmp' was not declared in this scope

means the you forget to add
#include <cstring>
or
#include <string.h>
Thanks for that, can't belive I didn't spot that. Being that that package came straight from svn, that probably should be updated.

Now, can anyone tell me how to find out what path ogg is installed in and how to make libvorbis detect it?

I'm positive I've installed libogg so :S
liteshell
Posts: 1
Joined: Wed Apr 29, 2009 11:30 pm

Post by liteshell »

I have encountered the same build fail with 005-libbulletml.sh

And very thanks for the solution. It does work!!!!

As to Murderface's libvorbis build fail, I have not met.
I suggest you should install libogg0 (version 1.1.3), good luck!!
Post Reply