Giter Site home page Giter Site logo

Compiling on ArchLinux about libsourcey HOT 8 CLOSED

sourcey avatar sourcey commented on June 16, 2024
Compiling on ArchLinux

from libsourcey.

Comments (8)

auscaster avatar auscaster commented on June 16, 2024

@jpigree sorry for the delay I have been on holiday. Were you able to compile on ArchLinux? I would be interested in those fixes if they are available. Thanks :)

from libsourcey.

jpigree avatar jpigree commented on June 16, 2024

Hey. No worries. I was not sure if my work had any relevance at all so I stopped there. I can pursue but it don't know how many more errors will I deter.
If I have time to spare I will do it. Did you try to compile a recent version of libsourcey and pacm on a Linux distro ? If yes, please tell me the distro version you used so I can compare the difference between my libs/tools version and yours.
Thanks.

from libsourcey.

auscaster avatar auscaster commented on June 16, 2024

Thanks for your quick response! I would like for libsourcey to build on all major distros and compilers so your patch would be very very welcome. I use Ubuntu 14.04 with gcc 4.8.2 without any issues.

from libsourcey.

auscaster avatar auscaster commented on June 16, 2024

I just pushed a couple of fixes which may enable you to build on ArchLinux.

Also, if you just want to use Pacm, then please try a minimal build like so:

cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DWITH_FFMPEG=OFF -DWITH_OPENCV=OFF -DWITH_WEBRTC=OFF -DWITH_WXWIDGETS=OFF -DWITH_RTAUDIO=OFF

from libsourcey.

jpigree avatar jpigree commented on June 16, 2024

Okay. Thanks. I pulled your fixes and compiled with the flags you said and it worked great.
So very excited, I tried to compile pacm straight away but it didn't.

I made several attempts to compile it alone but when looking at the root CMakeLists.txt, it is clearly meant to be compiled from within LibSourcey. So, I just added it into libsourcey/src into LibSourcey source code and it nearly worked.

I got this error :

 from libsourcey/src/pacm/src/packagemanager.cpp:19:
 libsourcey/src/pacm/include/scy/pacm/config.h:42:2: erreur: #error "Unknown platform"

It is because LINUX is not defined. If I correct this, I got errors like these :

/libsourcey/src/pacm/src/package.cpp:267:21: erreur: ambiguous overload for ‘operator[]’ (operand types are ‘scy::json::Value {aka Json::Value}’ and ‘size_t {aka long unsigned int}’)
  return Asset(assets[index]);

I stopped there for today. If I can clear all these errors I will submit a pull request.

from libsourcey.

auscaster avatar auscaster commented on June 16, 2024

LINUX is defined at base.h:53 ... doesn't ArchLinux define __linux__?

I just upgraded GCC and got the same errors. It's just a simple casting fix, but if you don't have time today I will look at it this evening sometime.

from libsourcey.

auscaster avatar auscaster commented on June 16, 2024

I have fixed those pacm errors and preprocessor definitions so it should compile properly now. Please try again :)

If you get any undefined reference errors when compiling the pacmconsole binary then please compile libsourcey without applications enabled:

cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DWITH_FFMPEG=OFF -DWITH_OPENCV=OFF -DWITH_WEBRTC=OFF -DWITH_WXWIDGETS=OFF -DWITH_RTAUDIO=OFF -DBUILD_APPLICATIONS=OFF

Then once libraries have compiled enable applications again ie:

cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DWITH_FFMPEG=OFF -DWITH_OPENCV=OFF -DWITH_WEBRTC=OFF -DWITH_WXWIDGETS=OFF -DWITH_RTAUDIO=OFF -DBUILD_APPLICATIONS=ON

from libsourcey.

jpigree avatar jpigree commented on June 16, 2024

Great. I followed your instructions. I have a pacm executable now. :)

I just tried the -help command right on the spot but pacm just crashed right away.

./pacm -help
terminate called after throwing an instance of 'std::runtime_error'
  what():  Filesystem error: mkdir failed: permission denied
[1]    21842 abort (core dumped)  ./pacm -help

So I tried it with elevated privileges and still it crashes :

 sudo ./pacm -help                                                                                                     
terminate called after throwing an instance of 'std::runtime_error'
  what():  Failed to open log file: /home/jpi/logs/Pacm_1420639466.log

It is just the "logs" directory it needs to be created before being called.

The "-help" finally works.

Great. I can play with it right now. Thanks for your help.

from libsourcey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.