Errors in Build of embeddable version

6 views
Skip to first unread message

neptune2000

unread,
May 30, 2008, 12:09:23 AM5/30/08
to pldatabase
I tried to build the library as suggested with:

./bin/embedded-build.sh -c Debug -s iphoneos2.0 -s iphonesimulator2.0


And these are the errors:

mbpro:pldatabase-1.0-RC1 marcopapa$ ./bin/embedded-build.sh -c Debug -
s iphoneos2.0 -s iphonesimulator2.0
2008-05-29 21:00:59.152 xcodebuild[4403:613] Unable to load platform
at path /Developer/Platforms/Aspen.platform
=== BUILDING NATIVE TARGET pldatabase OF PROJECT PlausibleDatabase
WITH CONFIGURATION Debug ===

Checking Dependencies...

CompileC /Users/marcopapa/Documents/Builds/PlausibleDatabase.build/
Debug-iphoneos/pldatabase.build/Objects-normal/armv6/
PLSqliteDatabase.o /Users/marcopapa/Desktop/pldatabase-1.0-RC1/Classes/
PLSqliteDatabase.m normal armv6 objective-c com.apple.compilers.gcc.
4_0
cd /Users/marcopapa/Desktop/pldatabase-1.0-RC1
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.0 -
x objective-c -arch armv6 -pipe -std=c99 -Wno-trigraphs -fpascal-
strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -fmessage-
length=0 -miphoneos-version-min=2.0 -gdwarf-2 -mfix-and-continue -
mthumb -iquote /Users/marcopapa/Documents/Builds/
PlausibleDatabase.build/Debug-iphoneos/pldatabase.build/pldatabase-
generated-files.hmap -I/Users/marcopapa/Documents/Builds/
PlausibleDatabase.build/Debug-iphoneos/pldatabase.build/pldatabase-own-
target-headers.hmap -I/Users/marcopapa/Documents/Builds/
PlausibleDatabase.build/Debug-iphoneos/pldatabase.build/pldatabase-all-
target-headers.hmap -iquote /Users/marcopapa/Documents/Builds/
PlausibleDatabase.build/Debug-iphoneos/pldatabase.build/pldatabase-
project-headers.hmap -F/Users/marcopapa/Documents/Builds/Debug-
iphoneos -I/Users/marcopapa/Documents/Builds/Debug-iphoneos/include -I/
Users/marcopapa/Documents/Builds/PlausibleDatabase.build/Debug-
iphoneos/pldatabase.build/DerivedSources -DPL_DB_PRIVATE=1 -isysroot /
Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk -
c /Users/marcopapa/Desktop/pldatabase-1.0-RC1/Classes/
PLSqliteDatabase.m -o /Users/marcopapa/Documents/Builds/
PlausibleDatabase.build/Debug-iphoneos/pldatabase.build/Objects-normal/
armv6/PLSqliteDatabase.o

[.... omitted other files...]

Libtool /Users/marcopapa/Documents/Builds/Debug-iphonesimulator/
libpldatabase.a normal i386
cd /Users/marcopapa/Desktop/pldatabase-1.0-RC1
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/
libtool -static -arch_only i386 -syslibroot /Developer/Platforms/
iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.0.sdk -L/
Users/marcopapa/Documents/Builds/Debug-iphonesimulator -filelist /
Users/marcopapa/Documents/Builds/PlausibleDatabase.build/Debug-
iphonesimulator/pldatabase.build/Objects-normal/i386/
pldatabase.LinkFileList -framework Foundation -framework AppKit -o /
Users/marcopapa/Documents/Builds/Debug-iphonesimulator/libpldatabase.a
** BUILD SUCCEEDED **
lipo: can't open input file: build/Debug-iphoneos/libpldatabase.a (No
such file or directory)
mbpro:pldatabase-1.0-RC1 marcopapa$
-----------------------------------------------------------
I see one error at the beginning:

- 2008-05-29 21:00:59.152 xcodebuild[4403:613] Unable to load platform
at path /Developer/Platforms/Aspen.platform

and one error at the end:

lipo: can't open input file: build/Debug-iphoneos/libpldatabase.a (No
such file or directory)
mbpro:pldatabase-1.0-RC1 marcopapa$

Any ideas how to fix these?

BTW, I am running OS X 10.5.3 and iPhone SDK Beta 5.

Not sure why the first error, as I have those files there:

mbpro:pldatabase-1.0-RC1 marcopapa$ ls /Developer/Platforms
Aspen.platform iPhoneOS.platform
MacOSX.platform iPhoneSimulator.platform
mbpro:pldatabase-1.0-RC1 marcopapa$


-- Marco

neptune2000

unread,
May 30, 2008, 12:11:31 AM5/30/08
to pldatabase
Also, if I look at the release directory, the header files got build,
but the library did not:

mbpro:pldatabase-1.0-RC1 marcopapa$ ls pldatabase-release-20080529
PLDatabase.h PLSqliteDatabase.h PlausibleDatabase.h
PLResultSet.h PLSqliteResultSet.h
mbpro:pldatabase-1.0-RC1 marcopapa$

neptune2000

unread,
May 30, 2008, 12:22:33 AM5/30/08
to pldatabase
Not sure if this helps, but I change the Xcode settings for
Preferences - Building to "Place Build Products in:"

/Users/marcopapa/Documents/Builds

instead of the "Project directory". I need that as we use Subversion
as the SCM and we can't check in the builds.

Could that be the issue for the second problem?

I looked at my builds directory:

mbpro:Builds marcopapa$ ls -l /Users/marcopapa/Documents/Builds/
PlausibleDatabase.build/Debug-iphoneos/pldatabase.build
total 48
drwxr-xr-x 3 marcopapa staff 102 May 29 21:01 Objects-normal
-rw-r--r-- 1 marcopapa staff 793 May 29 21:01 pldatabase-all-
target-headers.hmap
-rw-r--r-- 1 marcopapa staff 121 May 29 21:01 pldatabase-generated-
files.hmap
-rw-r--r-- 1 marcopapa staff 793 May 29 21:01 pldatabase-own-
target-headers.hmap
-rw-r--r-- 1 marcopapa staff 1006 May 29 21:01 pldatabase-project-
headers.hmap
-rw-r--r-- 1 marcopapa staff 876 May 29 21:01 pldatabase.dep
-rw-r--r-- 1 marcopapa staff 1774 May 29 21:01 pldatabase.hmap
mbpro:Builds marcopapa$

mbpro:Builds marcopapa$ ls -l /Users/marcopapa/Documents/Builds/
PlausibleDatabase.build/Debug-iphonesimulator/pldatabase.build
total 48
drwxr-xr-x 3 marcopapa staff 102 May 29 21:01 Objects-normal
-rw-r--r-- 1 marcopapa staff 793 May 29 21:01 pldatabase-all-
target-headers.hmap
-rw-r--r-- 1 marcopapa staff 121 May 29 21:01 pldatabase-generated-
files.hmap
-rw-r--r-- 1 marcopapa staff 793 May 29 21:01 pldatabase-own-
target-headers.hmap
-rw-r--r-- 1 marcopapa staff 1006 May 29 21:01 pldatabase-project-
headers.hmap
-rw-r--r-- 1 marcopapa staff 901 May 29 21:01 pldatabase.dep
-rw-r--r-- 1 marcopapa staff 1774 May 29 21:01 pldatabase.hmap

I guess the batch file makes the mistake of assuming the default
Preferences Building?

Still not sure about the first error:

neptune2000

unread,
May 30, 2008, 12:34:54 AM5/30/08
to pldatabase
OK so the error:

lipo: can't open input file: build/Debug-iphoneos/libpldatabase.a (No
such file or directory)

is because in my configuration the file libpldatabase.a is in a
different place:

mbpro:Builds marcopapa$ ls -l /Users/marcopapa/Documents/Builds/Debug-
iphoneos
total 160
-rw-r--r-- 1 marcopapa staff 80960 May 29 21:01 libpldatabase.a
mbpro:Builds marcopapa$

I guess we need a switch to set the build directory?


neptune2000

unread,
May 30, 2008, 12:46:13 AM5/30/08
to pldatabase
OK, so I temporarily switched back to the default setting for build
location, and things got better. Everything gets built. I still get
the initial error:

mbpro:pldatabase-1.0-RC1 marcopapa$ ./bin/embedded-build.sh -c Debug -
s iphoneos2.0 -s iphonesimulator2.0

2008-05-29 21:44:45.054 xcodebuild[4877:613] Unable to load platform
at path /Developer/Platforms/Aspen.platform

.....

2008-05-29 21:44:46.274 xcodebuild[4934:613] Unable to load platform
at path /Developer/Platforms/Aspen.platform
=== BUILDING NATIVE TARGET pldatabase OF PROJECT PlausibleDatabase
WITH CONFIGURATION Debug ===

Is that important?

Landon Fuller

unread,
May 30, 2008, 12:57:30 AM5/30/08
to pldat...@googlegroups.com

That's a strange error, but I think it's unrelated to our build -- I
don't see it locally. The 'Aspen' platform is the previous name of the
iPhoneSimulator platform (it was renamed in later SDK releases).

If you file an issue for a 'build' directory switch, we'll be sure to
get to it for the next release:
http://code.google.com/p/pldatabase/issues/list

We're a bit knee-deep in development, otherwise I'd do it right now =)

-landonf

PGP.sig

neptune2000

unread,
May 30, 2008, 1:27:01 AM5/30/08
to pldatabase
>If you file an issue for a 'build' directory switch, we'll be sure to
get to it for the next release:
http://code.google.com/p/pldatabase/issues/list

DONE. As I mentioned I have a workaround (temporarily set the build to
default)
>  PGP.sig
> 1KDownload
Reply all
Reply to author
Forward
0 new messages