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 

Freetype compilation rpoblem

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



Joined: 30 Mar 2008
Posts: 261

PostPosted: Mon Dec 01, 2008 2:23 am    Post subject: Freetype compilation rpoblem Reply with quote

I'm trying to compile thepsplibraries.

When i want to install freetype i had to use the commands:

Code:
   sh autogen.sh
   LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" ./configure --host psp --prefix=$(psp-config --psp-prefix)
   make
   make install


Code:
joris@joris-desktop:~/psp/trunk/freetype$ sh autogen.sh
running `aclocal -I .'
running `libtoolize --copy'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
running `autoconf'
joris@joris-desktop:~/psp/trunk/freetype$ LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" ./configure --host psp --prefix=$(psp-config --psp-prefix)
cd builds/unix; ./configure --host psp --prefix=/usr/local/pspdev/psp
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... /bin/bash: ./config.guess: No such file or directory
configure: error: cannot guess build type; you must specify one
make: *** [builds/unix/unix-def.mk] Fout 1
joris@joris-desktop:~/psp/trunk/freetype$
[/code]

Do i something wrong?
How can i fix it?
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Sat Dec 20, 2008 9:11 pm    Post subject: Reply with quote

Please help!!!
I've waited a while.
Now i come this far.
Code:
joris@joris-desktop:~/psp/trunk/trunk/freetype$ sh autogen.sh
running `aclocal -I .'
running `libtoolize --copy'
You should update your `aclocal.m4' by running aclocal.
libtoolize: `config.guess' exists: use `--force' to overwrite
libtoolize: `config.sub' exists: use `--force' to overwrite
libtoolize: `ltmain.sh' exists: use `--force' to overwrite
running `autoconf'
joris@joris-desktop:~/psp/trunk/trunk/freetype$ LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser"       ./configure --host psp --prefix=$(psp-config --psp-prefix)
cd builds/unix; ./configure --host psp --prefix=/usr/local/pspdev/psp
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-linux-gnu
checking host system type... mipsallegrexel-psp-elf
checking target system type... mipsallegrexel-psp-elf
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 how to run the C preprocessor... psp-gcc -E
checking for rm... rm -f
checking for rmdir... rmdir
checking for a BSD-compatible install... /usr/bin/install -c
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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... no
checking for strings.h... no
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
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 int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... no
checking for working mmap... no
checking for memcpy... no
checking for memmove... no
checking for gzsetparams in -lz... no
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by psp-gcc... /usr/local/pspdev/psp/bin/ld
checking if the linker (/usr/local/pspdev/psp/bin/ld) 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... 805306365
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/local/pspdev/psp/bin/ld option to reload object files... -r
checking how to recognize dependent libraries... unknown
checking for psp-ar... psp-ar
checking for psp-strip... psp-strip
checking for psp-ranlib... psp-ranlib
checking command to parse /usr/local/pspdev/bin/psp-nm -B output from psp-gcc object... ok
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) 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
configure: creating ./config.status
config.status: creating unix-cc.mk
config.status: creating unix-def.mk
config.status: WARNING:  unix-def.in seems to ignore the --datarootdir setting
config.status: creating freetype-config
config.status: creating freetype2.pc
config.status: creating ftconfig.h
config.status: executing libtool commands

FreeType build system -- automatic system detection

The following settings are used:

  platform                    unix
  compiler                    cc
  configuration directory     ./builds/unix
  configuration rules         ./builds/unix/unix.mk

If this does not correspond to your system or settings please remove the file
`config.mk' from this directory then read the INSTALL file for help.

Otherwise, simply type `make' again to build the library,
or `make refdoc' to build the API reference (the latter needs python).

make: Er hoeft niets gedaan te worden voor 'unix'.
joris@joris-desktop:~/psp/trunk/trunk/freetype$ make
./builds/unix/libtool --mode=compile psp-gcc  -I/home/joris/psp/trunk/trunk/freetype/objs -I./builds/unix -I/home/joris/psp/trunk/trunk/freetype/include -c -G0  -g -O2 -DDARWIN_NO_CARBON -DFT_CONFIG_CONFIG_H="<ftconfig.h>" -o /home/joris/psp/trunk/trunk/freetype/objs/ftsystem.lo /home/joris/psp/trunk/trunk/freetype/src/base/ftsystem.c
./builds/unix/libtool: line 821: X--mode=compile: command not found
./builds/unix/libtool: line 988: *** Warning: inferring the mode of operation is deprecated.: command not found
./builds/unix/libtool: line 989: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
./builds/unix/libtool: line 1132: Xpsp-gcc: command not found
./builds/unix/libtool: line 1132: X-I/home/joris/psp/trunk/trunk/freetype/objs: No such file or directory
./builds/unix/libtool: line 1132: X-I./builds/unix: No such file or directory
./builds/unix/libtool: line 1132: X-I/home/joris/psp/trunk/trunk/freetype/include: No such file or directory
./builds/unix/libtool: line 1132: X-c: command not found
./builds/unix/libtool: line 1132: X-G0: command not found
./builds/unix/libtool: line 1132: X-g: command not found
./builds/unix/libtool: line 1132: X-O2: command not found
./builds/unix/libtool: line 1132: X-DDARWIN_NO_CARBON: command not found
./builds/unix/libtool: line 1132: X-DFT_CONFIG_CONFIG_H=<ftconfig.h>: command not found
./builds/unix/libtool: line 1185: X/home/joris/psp/trunk/trunk/freetype/objs/ftsystem.lo: No such file or directory
./builds/unix/libtool: line 1190: libtool: compile: cannot determine name of library object from `': command not found
make: *** [/home/joris/psp/trunk/trunk/freetype/objs/ftsystem.lo] Fout 1
joris@joris-desktop:~/psp/trunk/trunk/freetype$
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Sun Dec 21, 2008 1:00 am    Post subject: Reply with quote

I discovered that not only freetype has got this problem but all libs which uses libtool.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Dec 21, 2008 12:43 pm    Post subject: Reply with quote

Code:
svn co svn://svn.ps2dev.org/psp/trunk/psptoolchain


Then follow the directions in the readme-ubuntu.txt file. Assuming the toolchain installs correctly, you're then ready to compile the libs.

Code:
svn co svn://svn.ps2dev.org/psp/trunk/psplibraries
cd psplibraries
./libraries.sh
Back to top
View user's profile Send private message AIM Address
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Sun Dec 21, 2008 10:26 pm    Post subject: Reply with quote

jojojoris is correct, anything which uses libtool fails to build since we updated the gcc version.
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Mon Dec 22, 2008 12:10 am    Post subject: Reply with quote

Does this mean that i can't install a lot of useful libraries or is an solution available.
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Mon Dec 22, 2008 2:57 am    Post subject: Reply with quote

But libtool isn't built by psptoolchain, I don't see how that can be a problem. Have you also upgraded your version of libtool recently?
Back to top
View user's profile Send private message Visit poster's website
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Mon Dec 22, 2008 3:23 am    Post subject: Reply with quote

Adding the following:

Code:
automake --add-missing

Will install the missing config.guess file and allow compilation to begin.

I'll update the repository copy and start looking at other libraries in psplibraries.
Back to top
View user's profile Send private message Visit poster's website
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Mon Dec 22, 2008 3:57 am    Post subject: Reply with quote

I've run out of time, I'll look at it later.
Back to top
View user's profile Send private message Visit poster's website
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Wed Dec 24, 2008 8:24 pm    Post subject: Reply with quote

ooPo wrote:
But libtool isn't built by psptoolchain, I don't see how that can be a problem. Have you also upgraded your version of libtool recently?


Yes and No. I've tried about 5 different versions.

ooPo wrote:
Adding the following:

Code:
automake --add-missing

Will install the missing config.guess file and allow compilation to begin.

I'll update the repository copy and start looking at other libraries in psplibraries.


How must i use
Code:
automake --add-missing
I put it in the autogen.sh script and i tried to run it myself. Both didn't do the job.
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Wed Dec 24, 2008 8:51 pm    Post subject: Reply with quote

I Found some sort of solution.

After i run the ./configure script from freetype i replaced the libtool with the libtool provided by the SDL librarie.

When i now run make it compiles.

If i want to do "make install" i had to tweak the script 003-freetype.sh

Code:
#!/bin/sh
# freetype.sh by Dan Peori (danpeori@oopo.net)

 ## Download the latest source code.

##Removed

 ## Enter the source directory.
 cd freetype || { exit 1; }

 ## Configure the build.

## removed autogen.sh

## removed confidure script

 ## Compile and install.
 make clean && make -j2 && make install && make clean || { exit 1; }
[/code]
Back to top
View user's profile Send private message
foebea



Joined: 23 Mar 2007
Posts: 9

PostPosted: Tue Dec 30, 2008 3:51 pm    Post subject: Reply with quote

I ran into the same problem when I tried to run the psplibraries, here is what I found, hope it helps.

I stepped through the script files one at a time and here are the results and the fixes in easy enough steps to follow.

1. run 'automake --add-missing' in 'psplibraries/build/freetype/builds/unix'

2. in pspirkeyb/asciidemo - main.c:12:22: error: kubridge.h: No such file or directory
J.F from PS2Dev says "That's in D_A's SDK. The latest one is in the 4.01M33-2.rar archive."

3. SDL seems to require pspirkeyb

4. smpeg-psp seems to require pspirkeyb


So there are the 4 non working bits. it seems as though we have fixes for them all now.

Just run automake in the unix directory as in step 1. you cant just run it from any directory you happen to be in.

Then grab the 4.01 here: http://www.psp-hacks.com/file/1510 or google "4.01M33-2.rar" and get it anywhere you prefer.
Copy the include and lib folder from the sdk part of 4.01m33 into /usr/local/pspdev/psp

All should now be well.
Just in case you run into errors somehow, my exact process was to run 'libraries-sudo.sh' and then cry a little, sudo su and run 'libraries.sh' and have a beer. After that I came here and to psp-hacks forum, read what was there followed by about an hour of tv. finally i went into the scripts directory and ran each sh file as root in order, noted any errors and resolved them.

I have not yet rerun the libraries script as a whole, so there may be some other issue remaining on that side. I have not reviewed it at all so am not sure if it hits anything other than these scripts.

To reiterate, this all works now. Yay!


Last edited by foebea on Wed Dec 31, 2008 1:05 am; edited 1 time in total
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Dec 30, 2008 4:37 pm    Post subject: Reply with quote

One of these days D_A's SDK will get incorporated into the SDK here. It's not like it's updated very often - it would be almost no work to keep it up to date. :)

Until then you need to either get it yourself, or include it in the project (wasteful) like DaedalusX64 does.
Back to top
View user's profile Send private message AIM Address
xantares



Joined: 30 Dec 2008
Posts: 16

PostPosted: Sat Feb 14, 2009 10:26 am    Post subject: Reply with quote

Hi, I think my script just succeed to build the toolchain and all the psplibrairies thanks to your advices foebea

It's quite ugly but it seems to work :
http://my-trac.assembla.com/ayn5-84BSr3BJRab7jnrAJ/browser/install_psp_tool.sh
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