Перейти к содержанию
  • Регистрация
Авторизация  
Gingercat

D.P.F Components

Рекомендуемые сообщения

Доброго вечера. Предвидю гневные возгласы - сам знаю, что неуч. Собственно наткнулся на данные компоненты - хотел поделиться, а тут уже давно есть ссылка. Что я не так делаю - практически во всех демках черный экран.
 
Компоненты установленны, пути прописаны - все в порядке.
 Classes\classes.dex - на месте.
В деплое classes.dex прописан и находится.
Штатные класы отключены, в деплое битых путей нет

Разрешения включены 

 

Подскажите, что еще нужно сделать? 
 
Rad Studio XE7.
 
P.S. просто судя по скорости работы демки, которую удалось запустить - ANDScrollView, анимация приятнее, чем родная, обезьянья. 
Заранее благодарен за помощь, эээх :(

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Там же есть четкая инструкция по установке:

D.P.F iOS Native Components ( D.P.F iOSNC )
-----------------------------------------------

How to install and use:


1) Go Tools->Options->Delphi Options->Library and :
1-1) change Selected Pltaform to 32-bit windows and add X:\DPF.iOS.Native.Components\ in library path
1-2) Then change Selected Platform to iOSSimulator and add X:\DPF.iOS.Native.Components\ in library path
1-3) Then change Selected Platform to iOSDevice and add X:\DPF.iOS.Native.Components\ in library path


2) Important: Add this frameworks in the SDK Manager (see Frameworks.png picture after installing)

/System/Library/Frameworks/AddressBookUI
/System/Library/Frameworks/AddressBook
/System/Library/Frameworks/EventKit
/System/Library/Frameworks/MessageUI
/System/Library/Frameworks/AudioToolbox
/System/Library/Frameworks/MapKit
/System/Library/Frameworks/Social
/System/Library/Frameworks/QuickLook
/System/Library/Frameworks/SystemConfiguration
/System/Library/Frameworks/MobileCoreServices
/System/Library/Frameworks/GameKit
/System/Library/Frameworks/CoreBluetooth
/System/Library/Frameworks/Accounts
/System/Library/Frameworks/AdSupport
/System/Library/Frameworks/ExternalAccessory
/System/Library/Frameworks/iAd (No need in XE7 and later)
/System/Library/Frameworks/StoreKit (No need in XE7 and later)

Tools -> Options -> SDK Manager -> Scroll down remote paths listview ->Go Frameworks section -> Select one of framework item (e.g: select /System/Library/Frameworks/UIKit) -> click Add the new path item

and Lib(s)

/usr/lib/libxml2.dylib

--------------------------------------
In XE7 You must be add $(SDKROOT) the beginning of each path on remote machine value
like this: [ $(SDKROOT)/System/Library/Frameworks ]
or
like this: [ $(SDKROOT)/usr/lib/ ]
--------------------------------------

2-1)
path on remote machine : /System/Library/Frameworks
Framework name: AddressBookUI
include subdirectories: unchecked

Add again:

2-2)
path on remote machine : /System/Library/Frameworks
Framework name: AddressBook
include subdirectories: unchecked

Add again:

2-3)
path on remote machine : /System/Library/Frameworks
Framework name: EventKit
include subdirectories: unchecked

Add again:

2-4)
path on remote machine : /System/Library/Frameworks
Framework name: MessageUI
include subdirectories: unchecked

Add again:

2-5)
path on remote machine : /System/Library/Frameworks
Framework name: AudioToolbox
include subdirectories: unchecked

Add again:

2-6)
path on remote machine : /System/Library/Frameworks
Framework name: MapKit
include subdirectories: unchecked

Add again:

2-7)
path on remote machine : /System/Library/Frameworks
Framework name: Social
include subdirectories: unchecked

Add again:

2-8)
path on remote machine : /System/Library/Frameworks
Framework name: QuickLook
include subdirectories: unchecked

Add again:

2-9)
path on remote machine : /System/Library/Frameworks
Framework name: SystemConfiguration
include subdirectories: unchecked

Add again: (No need in XE7 and later)

2-10)
path on remote machine : /System/Library/Frameworks
Framework name: iAd
include subdirectories: unchecked

Add again: (No need in XE7 and later)

2-11)
path on remote machine : /System/Library/Frameworks
Framework name: StoreKit
include subdirectories: unchecked

Add again:

2-12)
path on remote machine : /System/Library/Frameworks
Framework name: MobileCoreServices
include subdirectories: unchecked

Add again:

2-13)
path on remote machine : /System/Library/Frameworks
Framework name: GameKit
include subdirectories: unchecked

Add again:

2-14)
path on remote machine : /System/Library/Frameworks
Framework name: CoreBluetooth
include subdirectories: unchecked

Add again:

2-15)
path on remote machine : /System/Library/Frameworks
Framework name: Accounts
include subdirectories: unchecked

Add again:

2-16)
path on remote machine : /System/Library/Frameworks
Framework name: AdSupport
include subdirectories: unchecked

2-17)
path on remote machine : /System/Library/Frameworks
Framework name: ExternalAccessory
include subdirectories: unchecked

2-18)
path on remote machine : /usr/lib
Framework name: libxml2.dylib
Path type: Library path: checked
include subdirectories: unchecked


after Ok dialog, click Update local File Cache button.

-------------------------------------------------------------------------------------------
XE4: (Not supported after v9.0.0)
3) DPFiOSPackagesXE4.dpk
3-1) Select 32-bit windows and build then install. (No Need Simulator or Device)

XE5: (Not supported after v9.0.0)
4) DPFiOSPackagesXE5.dpk
4-1) Select 32-bit windows and build then install. (No Need Simulator or Device)

XE6: (Not supported after v9.0.0)
5) DPFiOSPackagesXE6.dpk
5-1) Select 32-bit windows and build then install. (No Need Simulator or Device)

XE7:
5) DPFiOSPackagesXE7.dpk
5-1) Select 32-bit windows and build then install. (No Need Simulator or Device)



Or Use DPFiOSPackagesGroup.groupproj
-------------------------------------------------------------------------------------------

6) Before deploying Demos on Simulator or Device dont forget : Go to
Project Menu - > Deployment -> Deply
-------------------------------------------------------------------------------------------


7) This is very important to: if you want have very high performance in your project override in all you TForm declrations PaintRects
Sample:

type
TFDatePicker = class( TForm )
private
{ Private declarations }
protected
procedure PaintRects( const UpdateRects: array of TRectF ); override; <---- This line a important !
public
{ Public declarations }
end;

and in your implementation:

procedure TFDatePicker.PaintRects( const UpdateRects: array of TRectF );
begin
{} <-- This is important you not have any [inherited] keyword here !
end;

----------------------------------------------------------------------------------------------------------------
Note:

If you want to use iOS 8.0 SDK, if you see compile error :
..\Documents\Embarcadero\Studio\SDKs\iPhoneOS8.0.sdk/usr/lib/system/libdispatch.dylib. Link against the umbrella framework 'System.framework' instead. for architecture armv7
then you must be copy Macapi.Dispatch.pas file from delphi source folder into this framework folder and change this line :
libdispatch = '/usr/lib/system/libdispatch.dylib';
to
libdispatch = '/usr/lib/libSystem.dylib';

Now, by this work, you not have a delphi Form drawing (very slow), then you must be add a TDPFUIView on the form
and change background color or image,

Enjoy it!

-------------------------------------------------------------------
© 2011-2014 Dadeh Pardazane Faragir (D.P.F). All rights reserved.
http://www.dpfaragir.com

Developed by: Babak Yaghoobi ( b_yaghobi@yahoo.com or bayaghoobi@gmail.com)

 

Вы все действия выполнили?

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Да, все выполнил (это ваиант Ios - для андроид меньше). Удалось победить практически все примеры, кроме TTabControl - из-за чего, собственно и весь сыр бор.  :angry: Большинство работает, видимо проблема таки не в руках.

 

Сейчас переустановлю все - попробую с чистого листа попробовать.

 

D.P.F Android Native Components
-----------------------------------------------

How to install and use:

1) Go Tools->Options->Delphi Options->Library and :
1-1) change Selected Pltaform to 32-bit windows and add X:\DPF.Android.Native.Components\ in library path
1-2) Then change Selected Platform to Android and add X:\DPF.Android.Native.Components\ in library path


-------------------------------------------------------------------------------------------
XE5: (Not support since v2.8.6 )
2) DPFAndroidPackagesXE5.dpk
2-1) Select 32-bit windows and build then install.

-------------------------------------------------------------------------------------------
XE6:
3) DPFAndroidPackagesXE6.dpk
3-1) Select 32-bit windows and build then install.

-------------------------------------------------------------------------------------------
XE7:
3) DPFAndroidPackagesXE7.dpk
3-1) Select 32-bit windows and build then install.

-------------------------------------------------------------------------------------------

4) Merging classes.dex
4-1) Open build.bat file in editor and set ANDROID and EMBO_DEX variables
4-2 Or use my changed Classes\classes.dex ( Only Delphi XE7 )

Note:

If you cant make this file successfully, all demos or you new project on device will be shown as black screen...

When the small Java source files get compiled, the Android dx tool expects them to be compiled by the JDK 1.6.x compiler as opposed to the JDK 1.7.x compiler. If you have JDK 1.7.x installed, you hit a problem with dx reporting:
bad class file magic (cafebabe) or version (0033.0000)
However, to avoid forcing a reinstall of JDK 1.6 you might like to modify build.bat batch files and add in extra command line switches to the javac.exe command-lines. You need to insert this after the javac.exe command to force Java 1.6 byte code output, which is digestible by the Android dx command:

-source 1.6 -target 1.6

5) Before deploying Demos on Simulator or Device dont forget : Go to
Project Menu - > Deployment -> Deply

(very important)
6) Make sure delphi default classes.dex file must be unchecked in Deployment window and new
Classes\classes.dex with classes\ remote path name, must be added in the Deployment window.
(see classes_dex.png image)

(Thanks to "Brian Long" for merging dex files)

7) in your projects->Options->Uses Permissions : make sure turn on :
7-1) Access coarse location
7-2) Access Wifi State
7-3) Access Network State
7-4) Access fine location
7-5) Call phone
7-6) Camera
7-7) Internet
7-8) Read Calendar
7-9) Read External Storage
7-10) Read Phone State
7-11) Write Calendar
7-12) Write External Storage
7-13) WAKE LOCK


Enjoy it!

-------------------------------------------------------------------
© 2011-2014 Dadeh Pardazane Faragir (D.P.F). All rights reserved.
http://www.dpfaragir.com
 

Developed by: Babak Yaghoobi ( b_yaghobi@yahoo.com or bayaghoobi@gmail.com)

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Присоединяйтесь к обсуждению

Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.

Гость
Ответить в этой теме...

×   Вставлено с форматированием.   Вставить как обычный текст

  Разрешено использовать не более 75 эмодзи.

×   Ваша ссылка была автоматически встроена.   Отображать как обычную ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставлять изображения напрямую. Загружайте или вставляйте изображения по ссылке.

Авторизация  

  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

×
×
  • Создать...