Comments (8)
@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.
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.
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.
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.
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.
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.
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.
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)
- New ffmpeg version HOT 3
- Academic research on vulnerable c++ code snippet
- Academic research on vulnerable c++ code snippet HOT 2
- Unable to build WebRtcRecoder on Ubuntu 16.04.6 LTS HOT 2
- STUN Implementation
- Failed to build libsourcey on FreeBSD in library av
- iOS build with webrtc on mac
- Error building libSourcey with WebRTC (Errors in AddRef and Release)
- Assertations of thread ids
- Wrong frame rate of mp4 file encoded from local camera.
- How to build for mobile?
- crashed when webrtcstreamer have a new connection
- Documentation pages are broken HOT 2
- multiplexencoder.cpp updateStreamPts() Invalid pts for both streams HOT 2
- Trying to convert Opencv Mat to webrtc::I420Buffer HOT 1
- Can anyone tell me how to use webrtccapturer sample ?
- LibSourcey does not support modern version of WebRTC, because cricket::VideoCapturer was removed from WebRTC HOT 2
- libwebrtc_full.a undefined symbol HOT 1
- Fail compilation on default setting. (fedora33) HOT 1
- Error generating Visual Studio 16 2019
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libsourcey.