- 浏览: 360633 次
- 性别:
- 来自: Wen Zhou
-
文章分类
- 全部博客 (214)
- Ruby on Rails (42)
- Windows (27)
- Ubuntu (61)
- 互联网 (6)
- knowledge (4)
- Ext js library (3)
- Javascript and CSS (16)
- CRM (2)
- The Ruby Way(第二版) 笔记 (9)
- Agile Web Development with Rails 2Ed (2)
- MySQL (10)
- 深入浅出 - Mysql 数据库开发、优化与管理维护 (6)
- Ruby 设计模式 (12)
- CSS 记录 (3)
- python (1)
- sqlite3 (1)
- postfix (1)
- linux (1)
- ruby (2)
- nginx (1)
- git (3)
最新评论
-
hotsunshine:
引用notifempty #增加日期作为后缀,不然会是一 ...
使用Linux的logrotate拆分rails的log -
songfantasy:
不错,我也遇到了。谢谢知道怎么安装多个rubygem版本吗?
uninitialized constant ActiveSupport::Dependencies::Mutex (NameError) -
dhgdmw:
怎么那么便宜?
推荐一个免费HTML虚拟空间 -
wellee:
...
ruby库 - nokogiri -
wangzhongjie:
清晰明了,谢谢了
模版方法,策略模式和状态模式之间的区别
问题
解决
-- create_table(:attachments, {:force=>true}) -> 1.4809s -- create_table(:file_attachments, {:force=>true}) -> 5.7602s -- create_table(:image_science_attachments, {:force=>true}) -> 1.3107s -- create_table(:mini_magick_attachments, {:force=>true}) -> 0.7811s -- create_table(:mini_magick_attachments, {:force=>true}) -> 12.5345s -- create_table(:orphan_attachments, {:force=>true}) -> 3.4389s -- create_table(:minimal_attachments, {:force=>true}) -> 1.2690s -- create_table(:db_files, {:force=>true}) -> 0.6987s -- create_table(:s3_attachments, {:force=>true}) -> 1.3025s -- initialize_schema_migrations_table() -> 0.0032s -- assume_migrated_upto_version(0) -> 0.0024s /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c:2:23: error: FreeImage.h: No such file or directory /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c: In function ‘unload’: /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c:8: error: ‘FIBITMAP’ undeclared (first use in this function) /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c:8: error: (Each undeclared identifier is reported only once /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c:8: error: for each function it appears in.) /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c:8: error: ‘bitmap’ undeclared (first use in this function) /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c:8: error: expected expression before ‘)’ token /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c: At top level: /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c:16: error: expected ‘)’ before ‘*’ token /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c:25: error: expected declaration specifiers or ‘...’ before ‘FIBITMAP’ /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c:25: error: expected declaration specifiers or ‘...’ before ‘FIBITMAP’ /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c: In function ‘copy_icc_profile’: /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c:26: error: ‘FREE_IMAGE_FORMAT’ undeclared (first use in this function) /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c:26: error: expected ‘;’ before ‘fif’ /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c:27: error: ‘fif’ undeclared (first use in this function) /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c:27: error: ‘FIF_PNG’ undeclared (first use in this function) /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c:28: error: ‘FIICCPROFILE’ undeclared (first use in this function) /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c:28: error: ‘profile’ undeclared (first use in this function) /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c:28: error: ‘from’ undeclared (first use in this function) /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c:30: error: ‘to’ undeclared (first use in this function) /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c: At top level: /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c:36: error: expected ‘)’ before ‘fif’ /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb: In function ‘with_image’: /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:146: error: ‘FREE_IMAGE_FORMAT’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:146: error: expected ‘;’ before ‘fif’ /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:148: error: ‘fif’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:149: error: ‘FIF_UNKNOWN’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:151: error: ‘FIBITMAP’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:151: error: ‘bitmap’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:153: error: ‘FIF_JPEG’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:153: error: ‘JPEG_ACCURATE’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb: In function ‘with_crop’: /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:168: error: ‘FIBITMAP’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:168: error: ‘copy’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:170: error: ‘bitmap’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:170: error: expected expression before ‘)’ token /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:173: error: too many arguments to function ‘copy_icc_profile’ /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb: In function ‘height’: /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:178: error: ‘FIBITMAP’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:178: error: ‘bitmap’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:178: error: expected expression before ‘)’ token /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb: In function ‘width’: /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:186: error: ‘FIBITMAP’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:186: error: ‘bitmap’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:186: error: expected expression before ‘)’ token /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb: In function ‘resize’: /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:198: error: ‘FIBITMAP’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:198: error: ‘bitmap’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:198: error: expected expression before ‘)’ token /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:199: error: ‘image’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:199: error: ‘FILTER_CATMULLROM’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:201: error: too many arguments to function ‘copy_icc_profile’ /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb: In function ‘save’: /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:209: error: ‘FREE_IMAGE_FORMAT’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:209: error: expected ‘;’ before ‘fif’ /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:210: error: ‘fif’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:210: error: ‘FIF_UNKNOWN’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:212: error: ‘FIBITMAP’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:212: error: ‘bitmap’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:212: error: expected expression before ‘)’ token /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:213: error: ‘FIF_JPEG’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:213: error: ‘JPEG_QUALITYSUPERB’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:214: error: ‘FIF_PNG’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb: In function ‘Init_Inline_ImageScience_aa58’: /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:235: error: ‘FreeImageErrorHandler’ undeclared (first use in this function) /usr/local/lib/ruby/gems/1.8/gems/RubyInline-3.8.1/lib/inline.rb:589:in `build': error executing "gcc -shared -fPIC -O2 -fno-stack-protector -mpreferred-stack-boundary=2 -I /usr/local/lib/ruby/1.8/i686-linux -I /usr/local/include -L/usr/local/lib -o \"/home/agideo/.ruby_inline/Inline_ImageScience_aa58.so\" \"/home/agideo/.ruby_inline/Inline_ImageScience_aa58.c\" -lfreeimage -lstdc++ ": 256 (CompilationError) Renamed /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c to /home/agideo/.ruby_inline/Inline_ImageScience_aa58.c.bad from /usr/local/lib/ruby/gems/1.8/gems/RubyInline-3.8.1/lib/inline.rb:819:in `inline' from /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:84 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' from /home/agideo/.cruise/projects/f22/work/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require' from /home/agideo/.cruise/projects/f22/work/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in' from /home/agideo/.cruise/projects/f22/work/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require' from /home/agideo/.cruise/projects/f22/work/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/image_science_processor.rb:1 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /home/agideo/.cruise/projects/f22/work/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require' from /home/agideo/.cruise/projects/f22/work/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in' from /home/agideo/.cruise/projects/f22/work/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require' from /home/agideo/.cruise/projects/f22/work/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:102:in `require_or_load' from /home/agideo/.cruise/projects/f22/work/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:261:in `load_missing_constant' from /home/agideo/.cruise/projects/f22/work/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:468:in `const_missing' from /home/agideo/.cruise/projects/f22/work/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:92:in `const_get' from /home/agideo/.cruise/projects/f22/work/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:92:in `has_attachment' from /home/agideo/.cruise/projects/f22/work/vendor/plugins/attachment_fu/test/fixtures/attachment.rb:90 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /home/agideo/.cruise/projects/f22/work/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require' from /home/agideo/.cruise/projects/f22/work/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:355:in `new_constants_in' from /home/agideo/.cruise/projects/f22/work/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:510:in `require' from /home/agideo/.cruise/projects/f22/work/vendor/plugins/attachment_fu/test/test_helper.rb:141 from basic_test.rb:1:in `require' from basic_test.rb:1
解决
http://lists.radiantcms.org/pipermail/radiant/2007-July/005691.html http://www.urbanpuddle.com/articles/2008/01/22/install-freeimage-imagescience-on-ubuntu-gutsy
发表评论
-
项目的路径显示 Git Branch 分支
2012-09-12 16:21 1887引用 http://ihower.tw/blog/archiv ... -
Curl 常用命令
2012-06-12 16:26 2528引用 http://www.gbin1.com/technol ... -
crontab 加载 rvm 环境
2012-02-07 13:10 16800 2 * * * export PATH=/home/a ... -
ssh 访问不需要密码
2011-10-19 11:04 1024ssh-keygen -t rsa cat ~/.ssh ... -
解决 gem install rmagick error
2011-10-18 15:21 8973gem install rmagick -v '2.13. ... -
Vim support json foramt
2011-09-22 16:58 1212引用http://www.codeography.com/20 ... -
Ubuntu 设置 OpenDNS
2011-09-22 10:12 583http://zh.wikipedia.org/zh-cn/O ... -
Add user to sudoers
2011-09-22 08:43 1052引用 http://wiki.ubuntu.org.cn/Ub ... -
curl 命令
2011-09-20 22:21 1141引用 http://www.ruanyifeng.com/bl ... -
Postfix Permission denied
2011-09-20 22:18 1569mail.err May 31 05:31:43 ohdw ... -
导入 sql 到 sqlite3 数据库 on ubuntu
2011-09-15 10:12 1179apt-get install sqlite3 sqli ... -
How to install a .run file on Ubuntu
2011-09-02 15:50 963引用http://ubuntuforums.org/showt ... -
Installing sqlite3 with native extensions ERROR: Failed to build gem native ext
2011-08-30 16:51 2519Installing sqlite3 (1.3.4) wi ... -
一般目录下 Python 建立 Web 文件服务
2011-08-30 16:37 1216引用http://blog.csdn.net/kira8dao ... -
启动 cron 日志
2011-08-11 10:29 945引用 http://forum.ubuntu.org.cn/v ... -
ubuntu 10.04 支持按电源开关正常关闭系统
2011-05-13 15:01 1116引用 https://launchpad.net/ubuntu ... -
VIM 常用命令
2011-04-01 16:48 1435引用 http://bbs.jcwcn.com/thread- ... -
Ubuntu 常用命令
2011-03-01 14:31 1238引用 http://wiki.ubuntu.org.cn/Ub ... -
安装 passenger on RVM
2011-03-01 07:30 1312安装依赖库 sudo apt-get install libc ... -
cruisecontrolrb 支持 git branch
2011-02-25 12:07 1130引用 https://github.com/thoughtwo ...
相关推荐
在C++编程环境中,FreeImage库通常包含三个关键组件:`FreeImage.h`头文件、`FreeImage.dll`动态链接库以及`FreeImage.lib`静态链接库。 `FreeImage.h`是FreeImage库的核心头文件,包含了所有用于读取、写入、转换...
2. **FreeImage.h**:这是一个头文件,包含了FreeImage库的所有公开接口声明。在C++编程中,你需要在源代码中包含这个头文件来访问库的功能。通过头文件,开发者可以了解FreeImage提供的函数、枚举、结构体等,以便...
"freeimage.dll"是一个动态链接库(DLL)文件,主要用于图像处理和转换。在Windows操作系统中,DLL文件是程序共享功能代码和数据的一种方式,它允许多个程序同时使用同一段代码,节省内存资源并提高效率。FreeImage....
针对“FreeImage.h debug”这个标题,我们可以理解为这可能是一个关于使用FreeImage库进行图像处理时遇到的调试问题。FreeImage是一个开源的库,提供了跨平台的API,用于读取、转换和保存多种图像格式。 在调试...
它在版本3.15.3中提供了头文件(FreeImage.h)、静态库(FreeImage.lib)和动态链接库(FreeImage.dll),这些文件是开发人员在C++项目中集成FreeImage库所必需的。 FreeImage支持的文件格式广泛,包括但不限于BMP...
#include "FreeImage.h" int main() { FREE_IMAGE_FORMAT format = FIF_JPEG; FIBITMAP* dib = FreeImage_Load(format, "input.jpg"); if (dib) { // 进行图像处理... FreeImage_Save(format, dib, ...
#include "FreeImage.h" int main() { FIBITMAP* dib = FreeImage_Load(FIF_PNG, "image.png", 0); if (dib) { // 进行图像处理... FreeImage_Unload(dib); } else { printf("Failed to load image!\n"); ...
从浏览器上传图像并捕获屏幕截图 右键单击网络上的任何图像...特点:-右键单击网络上的任何图像,然后上传到freeimage.host-具有自动上传到freeimage.host的“剪裁工具”,并显示带有图像URL的通知。 支持语言:English
例如,你可以使用`FreeImage.Load()`方法加载一个图像文件,`FreeImage.Save()`方法保存修改后的图像,以及`FreeImage.ConvertToBGR()`方法将图像转换为BGR色彩空间。下面是一个简单的示例,展示如何用C#加载并显示...
1. **下载与解压**:首先从提供的下载链接(http://freeimage.sourceforge.net/download.html)获取FreeImage3180.zip,解压缩后得到源代码。 2. **编译库**:将源代码导入到相应的开发环境(如Visual Studio, GCC,...
3. 头文件(`.h`):包含了FreeImage的API声明,供开发者在自己的项目中引用。 4. 库文件(`.lib`或`.a`):链接器需要的文件,使你的程序能够调用FreeImage的函数。 5. 文档:可能包括API参考手册、示例代码和使用...
3. 在源代码中`#include "FreeImage.h"`引入头文件。 4. 使用FreeImage的API函数进行图像操作,如`FreeImage_Load`用于加载图像,`FreeImage_Save`用于保存图像,`FreeImage_GetWidth`和`FreeImage_GetHeight`获取...
例如,`FreeImage.h`是主头文件,包含了所有其他头文件的引用。 2. 库文件(.lib):这是静态库文件,用于32位Windows系统,开发者可以在自己的项目中链接此库,以使用FreeImage的功能。静态链接意味着库的功能被...
FreeImage.dll
FreeImage.Net 3.18.0 VS2017 .net framework 3.5 编译。 包含win32,win64两个版本。 FreeImageNET.dll FreeImage.dll
目前最新FreeImage 3.18版本编译生成的工程及库文件 进行图像处理的场合都可能会用到。 FreeImage 是一款免费的、开源的、跨平台(Windows 、Linux 和Mac OS X )的,支持20 多种图像类型的(如BMP 、JPEG 、GIF 、...
3. FreeImage:开源库,支持多种图像格式读写。 六、机器学习 C++在机器学习中的应用: 1. mlpack:快速、模块化的机器学习库,支持多种算法。 2. Shogun:多模态的大规模机器学习库。 3. Dlib:包含机器学习算法,...
FreeImage 是一款免费的、开源的、跨平台(Windows 、Linux 和Mac OS X )的,支持20 多种图像类型的(如BMP 、JPEG 、GIF 、PNG 、TIFF 等)图像处理库。其最大优点就是采用插件驱动型架构,具有快速、灵活、简单...
#include "FreeImage.h" class ImageView : public QLabel { public: void loadImage(const QString &filePath) { FIBITMAP *dib = FreeImage_Load(FreeImage_GetFileType(filePath.toStdString().c_str(), 0), ...