Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build with make in Linux #4

Open
ghost opened this issue Dec 21, 2017 · 3 comments
Open

Cannot build with make in Linux #4

ghost opened this issue Dec 21, 2017 · 3 comments
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Dec 21, 2017

I get the following error

^~~~~~~~~~~~~~~~~~~ In file included from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Master/Master.h:15:0, from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Master/Master.cpp:6: /home/user/gaze2/GazeTheWeb/Browse/Client/src/Singletons/FirebaseMailer.h:125:11: error: explicit specialization in non-namespace scope ‘class FirebaseMailer’ template<> ^ /home/user/gaze2/GazeTheWeb/Browse/Client/src/Singletons/FirebaseMailer.h:126:79: error: template-id ‘FirebaseAddress<FirebaseIntegerKey>’ in declaration of primary template static std::string FirebaseAddress<FirebaseIntegerKey>(FirebaseIntegerKey key) ^ /home/user/gaze2/GazeTheWeb/Browse/Client/src/Singletons/FirebaseMailer.h:211:11: error: explicit specialization in non-namespace scope ‘class FirebaseMailer’ template<> ^ /home/user/gaze2/GazeTheWeb/Browse/Client/src/Singletons/FirebaseMailer.h:212:77: error: template-id ‘FirebaseAddress<FirebaseStringKey>’ in declaration of primary template static std::string FirebaseAddress<FirebaseStringKey>(FirebaseStringKey key) ^ /home/user/gaze2/GazeTheWeb/Browse/Client/src/Singletons/FirebaseMailer.h:221:11: error: explicit specialization in non-namespace scope ‘class FirebaseMailer’ template<> ^ /home/user/gaze2/GazeTheWeb/Browse/Client/src/Singletons/FirebaseMailer.h:222:73: error: template-id ‘FirebaseAddress<FirebaseJSONKey>’ in declaration of primary template static std::string FirebaseAddress<FirebaseJSONKey>(FirebaseJSONKey key) ^ /home/user/gaze2/GazeTheWeb/Browse/Client/src/Singletons/FirebaseMailer.h:310:21: error: too many template-parameter-lists static std::string BuildFirebaseKey(T key, std::string uid) ^~~~~~~~~~~~~~~~ In file included from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Master/Master.h:15:0, from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Master/Master.cpp:6: /home/user/gaze2/GazeTheWeb/Browse/Client/src/Singletons/FirebaseMailer.h:357:8: error: too many template-parameter-lists class IdToken; ^~~~~~~ /home/user/gaze2/GazeTheWeb/Browse/Client/src/Singletons/FirebaseMailer.h:360:8: error: too many template-parameter-lists class FirebaseInterface ^~~~~~~~~~~~~~~~~ In file included from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Master/Master.h:15:0, from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Master/Master.cpp:6: /home/user/gaze2/GazeTheWeb/Browse/Client/src/Singletons/FirebaseMailer.h:426:35: error: ‘FirebaseInterface’ was not declared in this scope typedef const std::function<void(FirebaseInterface&)> Command; ^~~~~~~~~~~~~~~~~ /home/user/gaze2/GazeTheWeb/Browse/Client/src/Singletons/FirebaseMailer.h:426:54: error: template argument 1 is invalid typedef const std::function<void(FirebaseInterface&)> Command; ^ /home/user/gaze2/GazeTheWeb/Browse/Client/src/Singletons/FirebaseMailer.h:445:8: error: too many template-parameter-lists class IdToken ^~~~~~~ /home/user/gaze2/GazeTheWeb/Browse/Client/src/Singletons/FirebaseMailer.h:464:2: error: ‘IdToken’ does not name a type IdToken _idToken; // short living token for identification (indicator for being logged in!) ^~~~~~~ /home/user/gaze2/GazeTheWeb/Browse/Client/src/Singletons/FirebaseMailer.h:437:30: error: use of deleted function ‘std::atomic<bool>::atomic(const std::atomic<bool>&)’ std::atomic<bool> _paused = false; // atomic since could be accessed from multiple async threads ^~~~~ In file included from /usr/include/c++/6/future:43:0, from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Singletons/FirebaseMailer.h:19, from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Master/Master.h:15, from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Master/Master.cpp:6: /usr/include/c++/6/atomic:66:5: note: declared here atomic(const atomic&) = delete; ^~~~~~ /usr/include/c++/6/atomic:70:15: note: after user-defined conversion: constexpr std::atomic<bool>::atomic(bool) constexpr atomic(bool __i) noexcept : _M_base(__i) { } ^~~~~~ In file included from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Master/Master.h:15:0, from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Master/Master.cpp:6: /home/user/gaze2/GazeTheWeb/Browse/Client/src/Singletons/FirebaseMailer.h:440:34: error: use of deleted function ‘std::atomic<int>::atomic(const std::atomic<int>&)’ std::atomic<int> _startIndex = -1; ^ In file included from /usr/include/c++/6/future:43:0, from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Singletons/FirebaseMailer.h:19, from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Master/Master.h:15, from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Master/Master.cpp:6: /usr/include/c++/6/atomic:616:7: note: declared here atomic(const atomic&) = delete; ^~~~~~ /usr/include/c++/6/atomic:620:17: note: after user-defined conversion: constexpr std::atomic<int>::atomic(std::atomic<int>::__integral_type) constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } ^~~~~~ In file included from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Master/Master.h:15:0, from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Master/Master.cpp:6: /home/user/gaze2/GazeTheWeb/Browse/Client/src/Singletons/FirebaseMailer.h:463:34: error: use of deleted function ‘std::atomic<bool>::atomic(const std::atomic<bool>&)’ std::atomic<bool> _shouldStop = false; // written by this, read by thread ^~~~~ In file included from /usr/include/c++/6/future:43:0, from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Singletons/FirebaseMailer.h:19, from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Master/Master.h:15, from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Master/Master.cpp:6: /usr/include/c++/6/atomic:66:5: note: declared here atomic(const atomic&) = delete; ^~~~~~ /usr/include/c++/6/atomic:70:15: note: after user-defined conversion: constexpr std::atomic<bool>::atomic(bool) constexpr atomic(bool __i) noexcept : _M_base(__i) { } ^~~~~~ In file included from /home/user/gaze2/GazeTheWeb/Browse/Client/src/State/State.h:12:0, from /home/user/gaze2/GazeTheWeb/Browse/Client/src/State/Web/Web.h:10, from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Master/Master.h:17, from /home/user/gaze2/GazeTheWeb/Browse/Client/src/Master/Master.cpp:6: /home/user/gaze2/GazeTheWeb/Browse/Client/src/Input/Input.h: In constructor ‘TabInput::TabInput(std::shared_ptr<const Input>, int, int, int, int, int, int)’: /home/user/gaze2/GazeTheWeb/Browse/Client/src/Input/Input.h:120:15: warning: ‘TabInput::fixationDuration’ will be initialized after [-Wreorder] const float& fixationDuration; ^~~~~~~~~~~~~~~~ /home/user/gaze2/GazeTheWeb/Browse/Client/src/Input/Input.h:96:8: warning: ‘float TabInput::webViewPixelGazeX’ [-Wreorder] float webViewPixelGazeX; ^~~~~~~~~~~~~~~~~ /home/user/gaze2/GazeTheWeb/Browse/Client/src/Input/Input.h:54:2: warning: when initialized here [-Wreorder] TabInput( ^~~~~~~~

I am using the specified CEF 3.3071.1636.g2718da5, and Ubuntu 17.04 with the required packages.

Any help will be great.

[Edit](* I am not sure why the code is formatted that badly *)

The issue is "error: use of deleted function ‘std::atomic::atomic(const std::atomic&)’". Stackoverflow suggests changing it, but this source should be building out of the box.

Further edit: My gcc version is 6.3.0 20170406 , if that is helpful.

@raphaelmenges raphaelmenges self-assigned this Dec 21, 2017
@raphaelmenges
Copy link
Collaborator

We have not tested the Linux Build for some while. Right now we do not have time to maintain the Linux compability :(

@ghost
Copy link
Author

ghost commented Dec 21, 2017

Ohh, hopefully this gets resolved.

Later, I will try in my another machine with Windows 10 (64-bit).
I hope I can build 32-bit. Any specific cmake command line arguments that I need to pass?

@raphaelmenges
Copy link
Collaborator

You need Visual Studio 2015 with Update 3 and use cmake to create a solution (32bit, not 64bit). Otherwise should be straightforward, all core dependencies are provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant