Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# C++ objects and libs
*.slo
*.lo
*.o
*.a
*.la
*.lai
*.so
*.so.*
*.dll
*.dylib

# Qt-es
object_script.*.Release
object_script.*.Debug
*_plugin_import.cpp
/.qmake.cache
/.qmake.stash
*.pro.user
*.pro.user.*
*.qbs.user
*.qbs.user.*
*.moc
moc_*.cpp
moc_*.h
qrc_*.cpp
ui_*.h
*.qmlc
*.jsc
Makefile*
*build-*
*.qm
*.prl

# Qt unit tests
target_wrapper.*

# QtCreator
*.autosave

# QtCreator Qml
*.qmlproject.user
*.qmlproject.user.*

# QtCreator CMake
CMakeLists.txt.user*

# QtCreator 4.8< compilation database
compile_commands.json

# QtCreator local machine specific files for imported projects
*creator.user*

*_qmlcache.qrc
© 2020 GitHub, Inc.
14 changes: 2 additions & 12 deletions HomeForm.ui.qml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import QtGraphicalEffects 1.0

Page {
id: page
width: 1920
height: 1080
width: window.width
height: window.height
contentWidth: 4
title: qsTr("Classmoor")
background: Rectangle {
Expand All @@ -21,16 +21,6 @@ Page {
color: "#1f777c"
radius: 6
border.width: 0

DropShadow {
anchors.fill: rectangle1
horizontalOffset: 0
verticalOffset: 8
radius: 12.0
samples: 25
color: "#80000000"
source: rectangle1
}
}

Rectangle {
Expand Down
8 changes: 6 additions & 2 deletions classmoor.pro
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ CONFIG += c++11
# depend on your compiler). Refer to the documentation for the
# deprecated API to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
QML_IMPORT_PATH += /opt/Qt5.8.0/5.8/gcc_64/qml/QtGraphicalEffects
#QML_IMPORT_PATH += /opt/Qt5.8.0/5.8/gcc_64/qml/QtGraphicalEffects
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0

INCLUDEPATH += /usr/local/include
LIBS += -L/usr/local/lib64 -laws-cpp-sdk-core -laws-cpp-sdk-s3
LIBS += -L/usr/local/lib -laws-cpp-sdk-core -laws-cpp-sdk-s3

SOURCES += \
main.cpp
Expand All @@ -37,3 +37,7 @@ else: unix:!android: target.path = /opt/$${TARGET}/bin

#INCLUDEPATH += $$PWD/../../../usr/local/include/aws
#DEPENDPATH += $$PWD/../../../usr/local/include/aws

DISTFILES += \
.gitignore \
readme.md
31 changes: 16 additions & 15 deletions classmoor.pro.user
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.12.0, 2020-05-18T02:45:27. -->
<!-- Written by QtCreator 4.12.0, 2020-05-18T15:33:18. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
<value type="QByteArray">{b3545020-debd-4c69-8e71-390edbc7f8f2}</value>
<value type="QByteArray">{026e9c65-3292-4356-a33b-9413d660f401}</value>
</data>
<data>
<variable>ProjectExplorer.Project.ActiveTarget</variable>
Expand Down Expand Up @@ -72,17 +72,17 @@
<data>
<variable>ProjectExplorer.Project.Target.0</variable>
<valuemap type="QVariantMap">
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.14.2 GCC 64bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.14.2 GCC 64bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5142.gcc_64_kit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.13.0 clang 64bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.13.0 clang 64bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5130.clang_64_kit</value>
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
<value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
<value type="bool">true</value>
<value type="int" key="EnableQmlDebugging">0</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/andrewpaulino/build-classmoor-Desktop_Qt_5_14_2_GCC_64bit-Debug</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/home/andrewpaulino/build-classmoor-Desktop_Qt_5_14_2_GCC_64bit-Debug</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/Users/andrewpaulino/Desktop/classmoor/build-classmoor-Desktop_Qt_5_13_0_clang_64bit-Debug</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/Users/andrewpaulino/Desktop/classmoor/build-classmoor-Desktop_Qt_5_13_0_clang_64bit-Debug</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
Expand Down Expand Up @@ -132,8 +132,8 @@
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
<value type="bool">true</value>
<value type="int" key="EnableQmlDebugging">2</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/andrewpaulino/build-classmoor-Desktop_Qt_5_14_2_GCC_64bit-Release</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/home/andrewpaulino/build-classmoor-Desktop_Qt_5_14_2_GCC_64bit-Release</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/Users/andrewpaulino/Desktop/classmoor/build-classmoor-Desktop_Qt_5_13_0_clang_64bit-Release</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/Users/andrewpaulino/Desktop/classmoor/build-classmoor-Desktop_Qt_5_13_0_clang_64bit-Release</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
Expand Down Expand Up @@ -183,8 +183,8 @@
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
<value type="bool">true</value>
<value type="int" key="EnableQmlDebugging">0</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/andrewpaulino/build-classmoor-Desktop_Qt_5_14_2_GCC_64bit-Profile</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/home/andrewpaulino/build-classmoor-Desktop_Qt_5_14_2_GCC_64bit-Profile</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/Users/andrewpaulino/Desktop/classmoor/build-classmoor-Desktop_Qt_5_13_0_clang_64bit-Profile</value>
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">/Users/andrewpaulino/Desktop/classmoor/build-classmoor-Desktop_Qt_5_13_0_clang_64bit-Profile</value>
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
Expand Down Expand Up @@ -306,19 +306,20 @@
</valuelist>
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/home/andrewpaulino/classmoor/classmoor.pro</value>
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">/home/andrewpaulino/classmoor/classmoor.pro</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/Users/andrewpaulino/Desktop/classmoor/Classmoor/classmoor.pro</value>
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">/Users/andrewpaulino/Desktop/classmoor/Classmoor/classmoor.pro</value>
<value type="QString" key="RunConfiguration.Arguments"></value>
<value type="bool" key="RunConfiguration.Arguments.multi">false</value>
<value type="QString" key="RunConfiguration.OverrideDebuggerStartup"></value>
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
<value type="bool" key="RunConfiguration.UseDyldImageSuffix">false</value>
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">false</value>
<value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
<value type="QString" key="RunConfiguration.WorkingDirectory"></value>
<value type="QString" key="RunConfiguration.WorkingDirectory.default">/home/andrewpaulino/build-classmoor-Desktop_Qt_5_14_2_GCC_64bit-Debug</value>
<value type="QString" key="RunConfiguration.WorkingDirectory.default">/Users/andrewpaulino/Desktop/classmoor/build-classmoor-Desktop_Qt_5_13_0_clang_64bit-Debug/classmoor.app/Contents/MacOS</value>
</valuemap>
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
</valuemap>
Expand Down
17 changes: 16 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
#include <iostream>
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <aws/core/Aws.h>
//#include <aws/core/Aws.h>

int main(int argc, char *argv[])
{


//AWS SDK test
// Aws::SDKOptions options;
// Aws::InitAPI(options);
// Aws::String test;

// test = "AWS SDK Connected";

// std::cout << test << std::endl;
//END TEST

QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

QGuiApplication app(argc, argv);
Expand All @@ -17,4 +31,5 @@ int main(int argc, char *argv[])
engine.load(url);

return app.exec();
// Aws::ShutdownAPI(options);
}
4 changes: 2 additions & 2 deletions main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import QtQuick.Controls 2.5
ApplicationWindow {
id: window
visible: true
width: 1920
width: 1000
color: "#F5F5F5"
height: 1080
height: 920
title: qsTr("Stack")

header: ToolBar {
Expand Down
31 changes: 31 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Classmoor Build Directions

## Mac OS/Linux
### Requirements:
* QT 4.12^
* C++ Compiler (QMake)
* [AWS-cpp-sdk]([https://github.com/aws/aws-sdk-cpp](https://github.com/aws/aws-sdk-cpp))
### Prerequisites
In the .pro there is a line
`QML_IMPORT_PATH =/opt/Qt5.14.2/gcc_64/qml/QtGraphicalEffects/`
Please use the correct file path or just comment it out.
### Steps To build
1. Clone the AWS SDK repo and follow the directions to build.

2. I recommend you put all classmoor dependencies in one root folder and add the sdk there in two folders; the source folders and the built CMake files.

3. Create a folder called `aws-build` and run this command `cmake -DBUILD_ONLY="s3;dynamodb;sns" ../aws-sdk-cpp/` If following the way we built our file system it should start running the cmake process.
4. After, we will install the dependencies to our local user include file. by running this
1. `make`
2. `sudo make install`
***This will take a while too, we are basically compiling all the sdk's we need***
5. If linked successfully, you can now run the program in QT, by opening the pro file with QT. You should see `AWS SDK connected` in your console as that means it is working. Each .pro file will be different since the OS will have varying different installation paths.
#### Issues
* I noticed when running Qt you might get this error [here](https://stackoverflow.com/questions/35509731/dyld-symbol-not-found-cg-jpeg-resync-to-restart)

#### Run Without AWS
Comment out Line 16 and 17 in the .pro file
```
INCLUDEPATH += /usr/local/include
LIBS += -L/usr/local/lib -laws-cpp-sdk-core -laws-cpp-sdk-s3
```