joedj / ftpii

An FTP server for the Nintendo Wii
Other
53 stars 18 forks source link

Build problems #110

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of ftpii are you using?
Latest from SVN

What steps will reproduce the problem?
1. svn checkout http://ftpii.googlecode.com/svn/trunk/ ftpii-read-only
2. cd ftpii-read-only
3. make

What is the expected output? What do you see instead?
WANT: Build completed successfully.
GOT:
powerpc-eabi-gcc -MMD -MP -MF /ram/ftpii-read-only/build/fs.d -g -O2 -Wall 
-DGEKKO -mrvl -mcpu=750 -meabi -mhard-float -I/ram/ftpii-read-only/build 
-I/opt/devkitPro/libogc/include -c /ram/ftpii-read-only/source/fs.c -o fs.o 
/ram/ftpii-read-only/source/fs.c:25:17: warning: fat.h: No such file or 
directory
/ram/ftpii-read-only/source/fs.c:26:21: warning: fst/fst.h: No such file or 
directory
/ram/ftpii-read-only/source/fs.c:27:23: warning: isfs/isfs.h: No such file or 
directory
/ram/ftpii-read-only/source/fs.c:28:21: warning: iso/iso.h: No such file or 
directory
/ram/ftpii-read-only/source/fs.c:30:29: warning: nandimg/nandimg.h: No such 
file or directory
/ram/ftpii-read-only/source/fs.c:31:18: warning: ntfs.h: No such file or 
directory
/ram/ftpii-read-only/source/fs.c:36:21: warning: otp/otp.h: No such file or 
directory
/ram/ftpii-read-only/source/fs.c:39:29: warning: seeprom/seeprom.h: No such 
file or directory
/ram/ftpii-read-only/source/fs.c:45:21: warning: wod/wod.h: No such file or 
directory
/ram/ftpii-read-only/source/fs.c: In function 'mount':
/ram/ftpii-read-only/source/fs.c:146: warning: implicit declaration of function 
'ISO9660_Mount'
/ram/ftpii-read-only/source/fs.c:147: warning: implicit declaration of function 
'WOD_Mount'
/ram/ftpii-read-only/source/fs.c:148: warning: implicit declaration of function 
'FST_Mount'
/ram/ftpii-read-only/source/fs.c:155: warning: implicit declaration of function 
'fatMount'
/ram/ftpii-read-only/source/fs.c:159: warning: implicit declaration of function 
'ntfsFindPartitions'
/ram/ftpii-read-only/source/fs.c:160: warning: implicit declaration of function 
'ntfsMount'
/ram/ftpii-read-only/source/fs.c:160: error: 'NTFS_SU' undeclared (first use in 
this function)
/ram/ftpii-read-only/source/fs.c:160: error: (Each undeclared identifier is 
reported only once
/ram/ftpii-read-only/source/fs.c:160: error: for each function it appears in.)
/ram/ftpii-read-only/source/fs.c:171: warning: implicit declaration of function 
'NANDIMG_Mount'
/ram/ftpii-read-only/source/fs.c:173: warning: implicit declaration of function 
'ISFS_Mount'
/ram/ftpii-read-only/source/fs.c:175: warning: implicit declaration of function 
'OTP_Mount'
/ram/ftpii-read-only/source/fs.c:177: warning: implicit declaration of function 
'SEEPROM_Mount'
/ram/ftpii-read-only/source/fs.c: In function 'unmount':
/ram/ftpii-read-only/source/fs.c:195: warning: implicit declaration of function 
'ISO9660_Unmount'
/ram/ftpii-read-only/source/fs.c:196: warning: implicit declaration of function 
'WOD_Unmount'
/ram/ftpii-read-only/source/fs.c:197: warning: implicit declaration of function 
'FST_Unmount'
/ram/ftpii-read-only/source/fs.c:200: warning: implicit declaration of function 
'fatUnmount'
/ram/ftpii-read-only/source/fs.c:201: warning: implicit declaration of function 
'ntfsUnmount'
/ram/ftpii-read-only/source/fs.c:204: warning: implicit declaration of function 
'NANDIMG_Unmount'
/ram/ftpii-read-only/source/fs.c:206: warning: implicit declaration of function 
'ISFS_Unmount'
/ram/ftpii-read-only/source/fs.c:208: warning: implicit declaration of function 
'OTP_Unmount'
/ram/ftpii-read-only/source/fs.c:210: warning: implicit declaration of function 
'SEEPROM_Unmount'
/ram/ftpii-read-only/source/fs.c: In function 'initialise_fs':
/ram/ftpii-read-only/source/fs.c:310: warning: implicit declaration of function 
'ISFS_SU'
make[1]: *** [fs.o] Error 1
make: *** [build] Error 2

Please provide any additional information below.

Original issue reported on code.google.com by dashxdr@gmail.com on 12 Oct 2010 at 2:21

GoogleCodeExporter commented 9 years ago
You need the various libraries shown at 
http://code.google.com/p/ftpii/source/browse/

Original comment by joe.goo...@psychlaw.com.au on 13 Oct 2010 at 4:19

GoogleCodeExporter commented 9 years ago
Where do I need to put them?

ftpii says to get source I do this:
svn checkout http://ftpii.googlecode.com/svn/trunk/ ftpii-read-only

Ok if I strip off the trunk/ and do this
svn checkout http://ftpii.googlecode.com/svn/ ftpii-read-only

I get lots more files, but how to build?

Original comment by dashxdr@gmail.com on 13 Oct 2010 at 4:52

GoogleCodeExporter commented 9 years ago
For each one of them (fst, isfs, seeprom etc...) you need to:

cd fst/trunk
make
make install

This will install them into the devkitPro library/include search path so that 
ftpii's build can find 'em.

I use this script to build everything:

#!/bin/sh

function build_lib {
  cd $1/trunk && make clean && make && make install && make clean && \
    cd $1_example && make clean && make && make clean && cd ../../..
}

build_lib iso     && \
build_lib fst     && \
build_lib wod     && \
build_lib isfs    && \
build_lib nandimg && \
build_lib otp     && \
build_lib seeprom && \
build_lib iospatch

Original comment by joe.goo...@psychlaw.com.au on 13 Oct 2010 at 5:07