My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
BuildInstructions  
build instructions
Phase-Implementation, Featured
Updated Aug 17, 2009 by a2k0001@gmail.com

Common part

ImageShack Uploader uses portable qmake utility to build on various platforms. Most platforms, where Qt and FFmpeg are available, can be used to build from source.

There are only two dependencies:

  1. Qt v4.5 or newer (modules core, gui and xml)
  2. ffmpeg v0.5 or newer

ImageShack Uploader uses ImageShack and YFrog APIs, so a developer key is required to build. It should be specified in envirement variable IMAGESHACK_DEVELOPER_KEY. If this variable is empty, you will get an error on qmake step.

The easiest way to build this sources is using Qt SQK which is available for free on Trolltech website.

Building on Unix

  1. Install Qt 4.5 packages. For Ubuntu they are libqt4-gui, libqt4-core, libqt4-xml and qt developer tools.
  2. Install ffmpeg and it's developer package (headers).
  3. IMAGESHACK_DEVELOPER_KEY="YOURdeveloperKEY" qmake
  4. make

You can also build packages for common Linux distributions using make deb or make rpm or make packages to build both.

For other distros there is make install target.

Building on Windows

  1. Install Mingw or Microsoft Visual C++ 2008 Express Edition (free download from Microsoft).
  2. Get Qt SDK
  3. Download or compile ffmpeg. You need following DLLs:
    • avformat.dll
    • avcodec.dll
    • swscale.dll
    • avutil.dll.
    Copy them to source root directory. You can grab compiled DLLs at http://ffmpeg.arrozcru.org/. Look there for ffmpeg Win32 shared libraries. You need ffmpeg headers as well. Download ffmpeg at http://ffmpeg.org/download.html and copy
    • libavformat
    • libavutil
    • libavcodec
    • libswscale
    to the source root directory recursive. In fact you need only header .h files.
  4. Add mingw and Qt's binaries to system search path. It should look like this: %SystemRoot%\system32;%SystemRoot%;C:\Qt\2009.03\mingw\bin;C:\Qt\2009.03\mingw\mingw32\bin;C:\Qt\2009.03\qt\bin;C:\Qt\2009.03\qt\qmake; - change "C:\Qt\2009.03" to your Qt SDK installation directory.
  5. Set enviroment variable IMAGESHACK_DEVELOPER_KEY to your developer key.
  6. Run qmake CONFIG+=release in project directory to generate Makefile.
  7. Run mingw32-make or nmake to compile project.
  8. Use "Dependency Walker" to find out what libraries are requires to run and copy them to build directory

Building on Mac

You need to have Xcode Tools installed. Due to a bug (see issue #14 for details) in MacPorts version of QT at this moment you need to use Qt SDK distributions (DMG).

To perform build, execute the following (assuming bash shell):

IMAGESHACK_DEVELOPER_KEY="YOURdeveloperKEY" qmake imageshack.pro -spec macx-g++
make

To build distributable DMG image, use make dmg command.

Comment by vice...@gmail.com, Jan 25, 2010

1. Does the IMAGESHACK_DEVELOPER_KEY require an internet connection? Is that key verified in any way? 2. I was thinking of making a package for it on Ubuntu/Debian, but the imageshack api mentions "The key is just a string which identifies your application. Do not share it with anybody.". How am I supposed to build your application, provide the debian package source and hide that key?

Comment by dgl...@gmail.com, Mar 4, 2010

i made an rpm package for mandriva 2010.0, now i want to rebuild the same source in mandriva 2010.1 and i have this kind of error : ffmpeg_fas.c: In function fas_set_logging :

ffmpeg_fas.c:119: : av_log_level undeclared (first use in this function) ffmpeg_fas.c:119: : (Each undeclared identifier is reported only once ffmpeg_fas.c:119: : for each function it appears in.)
http://pastebin.mandriva.com/17421

Comment by SideTi...@gmail.com, Sep 12, 2010

By the way, there's no real reason to use tell people to specify the key at compile time, it can be trivally extracted by examining the binary.

For example, the official API key is something like:

0369BIKP4dc39f5f287a680e200ac4c2XXXXXXXX

Last 8 numbers removed, but anybody with the "strings" command can extract it…

Comment by bjke...@gmail.com, Jun 5, 2011

Hi. I'm a n00b here, just having a first look, so I might be wrong about this, but ... I believe the Qt SDK you're referring to has a new home. The site you link to -- qtsoftware.com -- is (now?) some sort of online store selling software. I believe the new home is for the open source Qt project is now qt.nokia.com.

Comment by swee...@gmail.com, Jun 6, 2011

Sweer

Comment by toted...@gmail.com, Jul 21, 2011

if you want to make a local install in linux, not a full root install, build steps should be

3. IMAGESHACK_DEVELOPER_KEY="YOURdeveloperKEY" qmake 4. make INSTALL_ROOT=/usr/local 5. make install


Sign in to add a comment
Powered by Google Project Hosting