Skip to content

journeymidnight/s3util

Repository files navigation

[![Build Status](https://travis-ci.org/journeymidnight/s3util.svg?branch=master)](https://travis-ci.org/journeymidnight/s3utils)

[![license](https://img.shields.io/github/license/journeymidnight/s3util.svg)](https://github.com/journeymidnight/s3util/blob/master/LICENSE)


# Ubuntu

## Build static library

```
git clone --branch=1.7.108 --depth=1 https://github.com/aws/aws-sdk-cpp.git
#remove -Werror in cmake/compiler_settings.cmake
mkdir build
cd build
cmake -DBUILD_ONLY="s3" -DBUILD_SHARED_LIBS="OFF" ..
make
make install
```

## Install QT

```
sudo apt-get install  qt5-base

```

# extra

+ check pkg-config
+ remove -Werror


# Mac

## Install xcode

+ Install xcode from appstore
+ install command tools
```
xcode-selector --install
```
ORl
```
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
```

## Download QT From achive
http://download.qt.io/official_release

```
C:\Downloads>qt-unified-windows-x64-4.4.1-online.exe --mirror https://mirrors.ocf.berkeley.edu/qt/

```


## Build static library

```
git clone --branch=1.7.108 --depth=1 https://github.com/aws/aws-sdk-cpp.git
#remove -Werror in cmake/compiler_settings.cmake
mkdir build
cd build
cmake -DBUILD_ONLY="s3" -DBUILD_SHARED_LIBS="OFF" ..
make
make install
```


## build

```
qmake ..
make
```

## deploy

1. add deps
macdeployqt S3Client.GUI -libpath=/usr/local/lib/
2. build dmg
http://stackoverflow.com/questions/37292756/how-to-create-a-dmg-file-for-a-app-for-mac


# Windows

## Download QT From achive
http://download.qt.io/official_release


## install Visual Studio 2015 community version 

## install Qt plugin for visual studio

## nuget to install aws-sdk-core/aws-sdk-s3

version 1.0.108

## open .pro file