forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem compiling libbuletml form psplibraries in cygwin

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Murderface



Joined: 09 Apr 2009
Posts: 3

PostPosted: Thu Apr 09, 2009 3:53 am    Post subject: Problem compiling libbuletml form psplibraries in cygwin Reply with quote

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:

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: In member function 'Val_ Param<Val_>::value() const [with
al_ = float]':
calc.yy:161:   instantiated from here
formula-variables.h:38: warning: comparison between signed and unsigned integer
expressions
make: *** [calc.o] Error 1
make: *** Waiting for unfinished jobs....
../scripts/005-libbulletml.sh: Failed.

Back to top
View user's profile Send private message AIM Address
Murderface



Joined: 09 Apr 2009
Posts: 3

PostPosted: Thu Apr 09, 2009 4:01 am    Post subject: Reply with quote

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

Code:

$ ./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:91: foreach file, $(SPEC_PNG: non-POSIX variable name
doc/Makefile.am:91: (probably a GNU make extension)
doc/Makefile.am:92: foreach file, $(SPEC_PDF: non-POSIX variable name
doc/Makefile.am:92: (probably a GNU make extension)
doc/Makefile.am:93: `%'-style pattern rules are a GNU make extension
  autoconf
configure: WARNING: 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 $(MAKE)... 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 (/usr/local/pspdev/psp/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/local/pspdev/bin/psp
-nm -B
checking the name lister (/usr/local/pspdev/bin/psp-nm -B) 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: WARNING: 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... (cached) 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... (cached) yes
checking whether the psp-gcc linker (/usr/local/pspdev/psp/bin/ld.exe) 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... (cached) 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: error: Ogg >= 1.0 required !
../scripts/012-libvorbis.sh: 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.
Back to top
View user's profile Send private message AIM Address
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Thu Apr 09, 2009 5:53 am    Post subject: Reply with quote

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

means the you forget to add
#include <cstring>
or
#include <string.h>
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
Murderface



Joined: 09 Apr 2009
Posts: 3

PostPosted: Thu Apr 09, 2009 8:48 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message AIM Address
liteshell



Joined: 29 Apr 2009
Posts: 1

PostPosted: Wed Apr 29, 2009 11:37 pm    Post subject: Reply with quote

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!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group