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

Ubuntu? #11

Closed
yazinsai opened this issue Oct 17, 2014 · 6 comments
Closed

Ubuntu? #11

yazinsai opened this issue Oct 17, 2014 · 6 comments

Comments

@yazinsai
Copy link
Contributor

How do you install this on Ubuntu? Couldn't find it in the repositories

@naelstrof
Copy link
Owner

After making sure the dependencies are installed (Listed as compiler flags in the makefile as -lx11 -lxrandr etc).
Run make && sudo make install to install it on any system.

@yazinsai
Copy link
Contributor Author

Thanks! Would be great to update the README to mention the dependencies.
Also, Installation is usually at the top (i almost thought installation instructions weren't included) .. would you like me to send in PR?

@naelstrof
Copy link
Owner

Sure go ahead if you want. I'll do it if you don't want to.

On Fri, Oct 17, 2014 at 11:49 AM, Yazin notifications@github.com wrote:

Thanks! Would be great to update the README to mention the dependencies.
Also, Installation is usually at the top (i almost thought installation
instructions weren't included) .. would you like me to send in PR?


Reply to this email directly or view it on GitHub
#11 (comment).

@yazinsai
Copy link
Contributor Author

Tried installing the dependencies, but now I get:

➜  make && sudo make install            
g++  -O2 -g   -c -o main.o main.cpp
main.cpp: In function ‘int main(int, char**)’:
main.cpp:190:100: warning: embedded ‘\0in format [-Wformat-contains-nul]
         sprintf( temp, "%ix%i+%i+%i\0", options.w_arg, options.h_arg, options.x_arg, options.y_arg );
                                                                                                    ^
g++  -O2 -g   -c -o x.o x.cpp
cc    -c -o cmdline.o cmdline.c
g++  -O2 -g   -c -o im.o im.cpp
g++ main.o x.o cmdline.o im.o -o maim -lImlib2 -lX11 -lXfixes -lXrandr
mkdir -p "/usr/bin"
cp /home/rock/projects/maim/maim "/usr/bin"

@naelstrof
Copy link
Owner

It's installed, you didn't get any errors.

@yazinsai
Copy link
Contributor Author

Oh, ok :)

Sent a PR.

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