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 

SQLite for PSP
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
egorive



Joined: 22 Jun 2006
Posts: 24

PostPosted: Fri Jul 25, 2008 10:03 pm    Post subject: configure error Reply with quote

hi I have downloaded this lilbrary with tortoise to:

D:\cygwin\home\KIKE\trunk\sqlite

and then I have read the README.PSP.
1.- I have my PSPDEV environment variable (D:/cygwin/usr/local/pspdev)
2.- I copy al the comand to the shell and intro

LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" \
./configure --host=psp --disable-readline --disable-tcl \
--prefix=$(psp-config --psp-prefix)

Now I obtain this:

KIKE@LADOKIKE ~/trunk/sqlite
$ LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" ./configure --hos
t=psp --disable-readline --disable-tcl --prefix=$(psp-config --psp-prefix)
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 for psp-gcc... psp-gcc
checking for C compiler default output file name... configure: error: C compiler
cannot create executables
See `config.log' for more details.

And if I go to config.log I read this:

(...)

## ----------- ##
## Core tests. ##
## ----------- ##

configure:1616: checking build system type
configure:1634: result: i686-pc-cygwin
configure:1642: checking host system type
configure:1656: result: mipsallegrexel-psp-elf
configure:1672: checking for psp-gcc
configure:1688: found /cygdrive/c/pspsdk/bin/psp-gcc
configure:1698: result: psp-gcc
configure:1980: checking for C compiler version
configure:1983: psp-gcc --version </dev/null >&5
psp-gcc.exe (GCC) 4.3.0
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:1986: $? = 0
configure:1988: psp-gcc -v </dev/null >&5
Using built-in specs.
Target: psp
Configured with: ../../gcc-4.3.0/configure --enable-languages=c,c++ --disable-mu
ltilib --with-gcc --with-gnu-ld --with-gnu-as --disable-shared --disable-win32-r
egistry --disable-nls --enable-cxx-flags=-G0 --target=psp --with-newlib --prefix
=/c/pspsdk --with-gmp=/home/polo/minpspw/gcc-libs --with-mpfr=/home/polo/minpspw
/gcc-libs
Thread model: single
gcc version 4.3.0 (GCC)
configure:1991: $? = 0
configure:1993: psp-gcc -V </dev/null >&5
psp-gcc.exe: '-V' option must have argument
configure:1996: $? = 1
configure:2019: checking for C compiler default output file name
/lib -lc -lpspuser conftest.c >&5win/usr/local/pspdev/psp/sdk
c:/pspsdk/bin/../lib/gcc/psp/4.3.0/../../../../psp/bin/ld.exe: cannot find -lpsp
user
collect2: ld returned 1 exit status
configure:2025: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2064: error: C compiler cannot create executables
See `config.log' for more details.
(...)

Don't know what to do now. Any help?
Back to top
View user's profile Send private message
Eib



Joined: 15 Apr 2009
Posts: 7

PostPosted: Sat Apr 18, 2009 12:24 am    Post subject: Reply with quote

Any chances to see SQLite 3.6.12 or later amalgamation ported by someone ? In Version 3.6.11 there was added hot-backup interface, which makes SQLite a great choice for in-memory DBs. Would be great to have it for PSP. Sadly, i don't think i can handle porting by myself. :(
Back to top
View user's profile Send private message
Criptych



Joined: 12 Sep 2009
Posts: 79

PostPosted: Sat Sep 12, 2009 5:32 am    Post subject: Reply with quote

I'm having some trouble getting it to work right. Originally, my application opened the database in one thread, then started another to handle all queries to it. I thought this was safe, even though the docs said it doesn't support multithreading, and it worked fine for reading the DB, but would not write anything to it, giving me error SQLITE_CANTOPEN. So I tried moving all database handling to the second thread, but now I get SQLITE_CANTOPEN from the very start. Is there some way to get this working?
Back to top
View user's profile Send private message
sakya



Joined: 28 Apr 2006
Posts: 190

PostPosted: Sat Sep 12, 2009 6:49 am    Post subject: Reply with quote

Hi! :)

Criptych wrote:
I'm having some trouble getting it to work right.

I had some problem with current dir.
Try to chdir to the directory containg the database before trying to open it.

Ciaooo
Sakya
Back to top
View user's profile Send private message Visit poster's website
Criptych



Joined: 12 Sep 2009
Posts: 79

PostPosted: Sat Sep 12, 2009 9:59 am    Post subject: Reply with quote

sakya wrote:
Try to chdir to the directory containg the database before trying to open it.

Thanks, unfortunately I still get the same error. Also, I can open it from the main thread, it's only trying to open from another thread that it fails. I haven't seen anything that says not to open files outside of the main thread, though. Can anyone give me more info about this?

EDIT: Turns out you were right, sakya - but the problem was, I had to chdir in the other thread. Anyway, thanks, it's working! :) Now I have to track down an elusive memory leak...
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
Goto page Previous  1, 2
Page 2 of 2

 
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