Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
541 views
in Technique[技术] by (71.8m points)

javascript - Titanium module imagefactory won't work

After several hours, and still not working image module, I hope for som help here.

I'm trying to install/use the imagefactory module. 1) I installed it globaly using Titanium studio (tried both from github and appcelerator) but it doesn't show upp when I look for modules in the terminal ('Titanium module'), or in my tiapp.xml when trying to include the module.

The plugin installs itself in the directory

Titanium/
    mobilesdk
    modules
    ti.imagefactory-stable <-- here

I tried to move the folder to the folders

Titanium/moduels/android/ti.imagefactory-stable

and

Titanium/modules/ios/ti.imagefactory-stable

Then it recognized the module, but then I got this error:

Titanium Command-Line Interface, CLI version 3.4.1, Titanium SDK version 3.4.1.GA
Copyright (c) 2012-2014, Appcelerator, Inc.  All Rights Reserved.
Please report bugs to http://jira.appcelerator.org/
[INFO] :   Found Titanium module id=ti.imagefactory-stable version=ios platform=iphone     deploy-type=development path=/Users/username/Library/Application     Support/Titanium/modules/iphone/ti.imagefactory-stable/ios
[ERROR] :  Module ti.imagefactory-stable version 1.2.0 is missing library file: /Users/username/Library/Application Support/Titanium/modules/iphone/ti.imagefactory-stable/ios/libti.imagefactory-stable.a

Any help is very appreciated since I'm kind of stuck right now... I also tried to install locally to the project without success.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

To install titanium modules and alloy widgets, now we have a package manager its gitTio.

gitTio can be installed via npm ( more info on installing ) using following command :

npm install -g gittio

Now we can search various modules/widgets available at gitTio database, like the ti.imagefactory module is available here.

Finally you can install the module using gittio install command form the root directory of your project. Example usage below :

gittio install ti.imagefactory

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...