jahshaka / Studio

Jahshaka Virtual Reality Content Creation Studio
http://www.jahshaka.com
GNU General Public License v3.0
112 stars 21 forks source link

How to install on linux? #470

Open matyklug18 opened 5 years ago

matyklug18 commented 5 years ago

as the title says, how i am supposed to install it on linux?

iKlsR commented 5 years ago

Hi, the build instructions are in the readme. We don't provide builds for linux yet.

matyklug18 commented 5 years ago

Hi, these instructions didnt work, that is why i asked. When i try to build it says: “setWindowFlag” was not declared in this scope suggested alternative: “setWindowFlags”

iKlsR commented 5 years ago

Ok, try building the latest code from the branch dev. Also after checking out the code, make sure to pull down the submodules as well with git submodule update --init --recursive. If you encounter any issues post them here preferably with logs.

matyklug18 commented 5 years ago

fatal: not a git repository (or any of the parent directories): .git

iKlsR commented 5 years ago

@matyklugDebbuged You need to clone the repo so it retains metadata needed to get other code and you need the prerequisite software installed as detailed in the readme. Cmake, git and qt creator along with gcc.

  1. git clone https://github.com/jahshaka/Studio.git
  2. cd Studio and git checkout -b dev remotes/origin/dev
  3. git submodule update --init --recursive
  4. Open Qt Creator → Open Project and find the CMakeLists.txt file inside the Studio directory, next you can pick the default configure option. Cmake will parse the project and you can now build. Additionally, in the left sidebar, you can click the project (computer icon) button and switch the build target to Release so it's more performant.
matyklug18 commented 5 years ago

/jashaka/Studio/src/shadergraph/widgets/shaderassetwidget.h:12: error: ../core/project.h: No such file or directory

include "../core/project.h"

      ^~~~~~~~~~~~~~~~~~~
iKlsR commented 5 years ago

@matyklugDebbuged Grab the latest code. Do a git pull and start at step 3. This issue was fixed last week. Almost there. :) It might end with a couple errors however because of some failed tests for a library we use but the main project should be built and executable.

matyklug18 commented 5 years ago

i executed git pull, but still the same

iKlsR commented 5 years ago

@matyklugDebbuged What does your git log say? The head commit should be https://github.com/jahshaka/Studio/commit/cf7a6b9ae9404ef1cdf201c088a44b27203479ba. Did you reinitialize the submodules using step 3? Maybe try starting over by deleting everything and following the steps again.

matyklug18 commented 5 years ago

https://pastebin.com/NqySLp3d

iKlsR commented 5 years ago

Ok looks good, delete your build folder and try again.

matyklug18 commented 5 years ago

/home/maty/Desktop/jashaka/Studio/src/shadergraph/shadergraphmainwindow.h:38: error: ‘Q_NAMESPACE’ does not name a type; did you mean ‘QNAMESPACE_H’? Q_NAMESPACE ^~~ QNAMESPACE_H

/home/maty/Desktop/jashaka/Studio/src/shadergraph/shadergraphmainwindow.h:117: error: ‘MainWindow’ in namespace ‘Ui’ does not name a type Ui::MainWindow *ui; ^~~~~~

iKlsR commented 5 years ago

What version of Qt do you have? You will need at least 5.9.3 to be safe.

matyklug18 commented 5 years ago

Qt Creator 4.8.1 Based on Qt 5.12.0 (GCC 5.3.1)

njbrown commented 5 years ago

I've been able to build on both mac and linux; I am unable to replicate this issue. I've merged some changes to the dev branch. Pull and do a clean build again.

iKlsR commented 5 years ago

Did you have any luck building @matyklugDebbuged?

matyklug18 commented 5 years ago

tried now, still the same

and git pull says:

maty@maty-iMac:~/Desktop/jashaka$ git pull
fatal: not a git repository (or any of the parent directories): .git
maty@maty-iMac:~/Desktop/jashaka$ cd Studio/
maty@maty-iMac:~/Desktop/jashaka/Studio$ git pull
remote: Enumerating objects: 206, done.
remote: Counting objects: 100% (206/206), done.
remote: Total 424 (delta 206), reused 206 (delta 206), pack-reused 218
Receiving objects: 100% (424/424), 8.76 MiB | 622.00 KiB/s, done.
Resolving deltas: 100% (283/283), completed with 60 local objects.
From https://github.com/jahshaka/Studio
 + 35b8cc8a...8a66294d dev          -> origin/dev  (forced update)
 + 30a0c40e...92647080 studio_split -> origin/studio_split  (forced update)
Auto-merging src/widgets/sceneviewwidget.h
Auto-merging src/misc/stylesheet.h
CONFLICT (content): Merge conflict in src/misc/stylesheet.h
Auto-merging src/misc/stylesheet.cpp
Auto-merging src/mainwindow.cpp
Auto-merging src/io/scenereader.cpp
Auto-merging CMakeLists.txt
CONFLICT (content): Merge conflict in CMakeLists.txt
Automatic merge failed; fix conflicts and then commit the result.