Comments (19)
You can install it manual in your ubuntu!
FYI: http://wiki.ubuntuusers.de/Hybrid-Grafikkarten/primus (German)
from primus.
We'll soon add primus packages to bumblebee/testing (and later bumblebee/stable).
Compiling is not confusing, really. What is the difficult part of:
git clone git://github.com/amonakov/primus.git
cd primus
make
./primusrun foo
from primus.
The fact that those instructions are not on the readme...
from primus.
@Lekensteyn Well you know that make
part is not that simple. The readme has full instructions for that part, though.
from primus.
Yes but i don't understand that as a plain user and not anykind of desktop developer or actual git user it isn't simple - especially the ubuntu bit thats not simple at all, thats my point where as a PPA package is :).
I appreciate the work, but i don't appreciate people thinking what's simple to them is simple to everyone - bear that in mind.
from primus.
I anyway and got this error;
liam@liam-laptop:~/primus$ LIBDIR=i386-linux-gnu CXX=g++\ -m32 make
mkdir -p i386-linux-gnu
g++ -m32 -Wall -g -DBUMBLEBEE_SOCKET='"/var/run/bumblebee.socket"' -DPRIMUS_SYNC='"0"' -DPRIMUS_VERBOSE='"1"' -DPRIMUS_DISPLAY='":8"' -DPRIMUS_LOAD_GLOBAL='"libglapi.so.0"' -DPRIMUS_libGLa='"/usr/lib32/nvidia-current/libGL.so.1"' -DPRIMUS_libGLd='"/usr/lib/$LIB/mesa/libGL.so.1"' -fvisibility=hidden -fPIC -shared -Wl,-Bsymbolic -o i386-linux-gnu/libGL.so.1 libglfork.cpp -lX11 -lpthread -lrt
In file included from /usr/include/dlfcn.h:23:0,
from libglfork.cpp:1:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
make: *** [i386-linux-gnu/libGL.so.1] Error 1
from primus.
Are you needing multilib support ?
Try this ... only one single make
git clone git://github.com/amonakov/primus.git
cd primus
make
./primusrun foo
from primus.
Im not sure if i do or not, if i don't have it won't that stop it being able to run 32bit games?
from primus.
I copied the packages from Precise to Quantal in my PPA - check if everything is OK with them. I'll do the same for newer version when they are ready.
from primus.
You need the g++ multilib support. This confused me for a while as lots of google results on that error simply said install 'gcc-multilib', which I already had installed. However you also need 'g++-multilib' for the C++ side of things. So in short try this:
sudo apt-get install g++-multilib
If you don't already have gcc-multilib, I'm guessing the auto dependancy rules will install that too for you.
from primus.
After installing what was suggestion above i still get this:
liam@liam-laptop:~/primus$ LIBDIR=i386-linux-gnu CXX=g++\ -m32 make
mkdir -p i386-linux-gnu
g++ -m32 -Wall -g -DBUMBLEBEE_SOCKET='"/var/run/bumblebee.socket"' -DPRIMUS_SYNC='"0"' -DPRIMUS_VERBOSE='"1"' -DPRIMUS_DISPLAY='":8"' -DPRIMUS_LOAD_GLOBAL='"libglapi.so.0"' -DPRIMUS_libGLa='"/usr/lib32/nvidia-current/libGL.so.1"' -DPRIMUS_libGLd='"/usr/lib/$LIB/mesa/libGL.so.1"' -fvisibility=hidden -fPIC -shared -Wl,-Bsymbolic -o i386-linux-gnu/libGL.so.1 libglfork.cpp -lX11 -lpthread -lrt
libglfork.cpp:833:2: warning: #warning Enabled workarounds for applications demanding more than promised by the OpenGL ABI [-Wcpp]
/usr/bin/ld: cannot find -lX11
collect2: error: ld returned 1 exit status
make: *** [i386-linux-gnu/libGL.so.1] Error 1
I will try the PPA and report back.
from primus.
Testing using the ppa and get this error when trying to use it:
libglfork.cpp:73: CapturedFns::CapturedFns(const char*): Assertion `lib && lib[0] == '/'' failed.
from primus.
This will happen if you invoke primusrun in the shell where you were trying to build primus from source. Simply use a different shell instead.
from primus.
Ah ha good one :)
Well i tested using Minecraft and just wow, optirun doesn't work right with it where as primusrun does gives me at least 15 more FPS.
Looks like the PPA works great, will continue testing and feedback here.
from primus.
Urban Terror - average of 12 more FPS with primusrun, just wow guys this is really much better than the current optirun!
from primus.
I just scheduled copying a new package version from Precise - try updating the packages to get some improvements.
from primus.
No update yet may take a while to filter through I guess.
from primus.
Should be up now.
from primus.
Well it seems to work far better than optirun, hope it does become the default.
from primus.
Related Issues (20)
- Can't run VLC under bumblebee/primus HOT 4
- install primus on centos 7 HOT 1
- can't use pyopengl
- Error building primus with clang HOT 1
- Tag a release? HOT 4
- Running any program with primusrun results in `X Error of failed request: BadValue` HOT 3
- primus breaks on fedora with mesa-13.0.3-6 HOT 33
- Applications crash on exit HOT 2
- Primus not working with latest nvidia drivers. HOT 2
- primusrun with suid binaries. HOT 3
- your contact in Gentoo HOT 2
- primusrun segfaults where optirun doesn't (nvidia MX150) HOT 1
- Threaded openGL HOT 3
- Segment fault on Xorg 1.20 HOT 29
- primus: fatal: need absolute library path: LibraryPath=/usr/lib/x86_64-linux-gnu/libGL.so.1 HOT 3
- primus: fatal: failed to open main X display HOT 1
- primusrun on CUDA Applications not Recognizing GPU HOT 1
- Nvidia is deprecating non-GLVND OpenGL and EGL libraries on Linux HOT 6
- Wine applications cannot run through primus
- Minecraft 1.18.1 freezes
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 primus.