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

Compilation error #22

Closed
probonopd opened this issue Aug 16, 2019 · 8 comments
Closed

Compilation error #22

probonopd opened this issue Aug 16, 2019 · 8 comments

Comments

@probonopd
Copy link
Contributor

Tried to build like this:
https://github.com/probonopd/Astree/blob/96ae25cb7afb01758337a345933b7c16078ed1f4/.travis.yml

GlassCatalogIo.cpp:43:26: error: invalid user-defined conversion from ‘std::ifstream {aka std::basic_ifstream<char>}’ to ‘char**’ [-fpermissive]

         ::getline(f,sLine);

                          ^

In file included from /usr/include/c++/4.8/ios:44:0,

                 from /usr/include/c++/4.8/istream:38,

                 from /usr/include/c++/4.8/sstream:38,

                 from GlassCatalogIo.cpp:5:

/usr/include/c++/4.8/bits/basic_ios.h:115:7: note: candidate is: std::basic_ios<_CharT, _Traits>::operator void*() const [with _CharT = char; _Traits = std::char_traits<char>] <near match>

       operator void*() const

       ^

/usr/include/c++/4.8/bits/basic_ios.h:115:7: note:   no known conversion for implicit ‘this’ parameter from ‘void*’ to ‘char**’

GlassCatalogIo.cpp:43:26: error: cannot convert ‘std::string {aka std::basic_string<char>}’ to ‘size_t* {aka long unsigned int*}’ for argument ‘2’ to ‘__ssize_t getline(char**, size_t*, FILE*)’

         ::getline(f,sLine);

                          ^

make: *** [GlassCatalogIo.o] Error 1

make: *** Waiting for unfinished jobs....

The command "make -j$(nproc)" exited with 2.

Full build log:
https://travis-ci.com/probonopd/Astree/builds/123544056

@ghost
Copy link

ghost commented Aug 18, 2019

As first portability test run successfully,...

... I try build AppImage again:

But has something wrong with coping astree.desktop file into /usr/share/applications/astree.desktop

How should I solve this issue?

@probonopd
Copy link
Contributor Author

probonopd commented Aug 18, 2019

I am now getting

The command "qmake CONFIG+=release PREFIX=/usr" exited with 1.. https://travis-ci.com/probonopd/Astree/builds/123605406

Here is how I an trying to compile it:
https://github.com/probonopd/Astree/blob/96ae25cb7afb01758337a345933b7c16078ed1f4/.travis.yml

@edeforas how can I compile this using qmake Qt 5?

@edeforas
Copy link
Owner

edeforas commented Aug 18, 2019 via email

@ghost
Copy link

ghost commented Aug 18, 2019

Astree should check next paths on Linux:

  • /usr/share/astree/glass/ - for normal Linux install
  • /usr/share/astree/samples/ - for normal Linux install
  • ~/.local/share/astree/glass/ - for user created data
  • ~/.local/share/astree/samples/ - for user created data

AppImage should export distributed data (glass and samples) to ~/.local/share/astree/{glass|samples}/ and will use it.

@ghost
Copy link

ghost commented Aug 20, 2019

As I see compilation still broken.

So, @edeforas try additinally include next PPA in .travis.yml (in before_install section) for get GCC 9 for Ubuntu 14.04

@probonopd
Copy link
Contributor Author

I want to avoid that because it possibly introduces new runtime dependencies not present in Ubuntu 14.04 out of the box. Ubutnu 16.04 would also be an acceptable target system at this point, since 14.04 is no longer supported by Canonical.

@edeforas edeforas closed this as completed Sep 7, 2019
@probonopd
Copy link
Contributor Author

@azubieta now has a solution where you don't need Ubuntu 16.04: https://github.com/AppImageCrafters/appimage-builder

@edeforas
Copy link
Owner

edeforas commented May 8, 2020 via email

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

No branches or pull requests

2 participants