I am currently trying to compile a pro gramme for Ubuntu for the first time ever and I have hit a wall.
I am following the guide at:
[url]https://help.ubuntu.com/community/CompilingEasyHowTo[/url]
and have got to step 4 but am having trouble with the make command.
Whenever I try to use the command it just says there is nothing to be done.
The guide I am following is pretty vague and is confusing me as to what file or folder I am supposed to be pointing the make command to so any help would be great.
./configure
make
sudo make install
Yeah, thats not helpful.
Firstly the guide I linked said there should be file in the src folder called configure but there isn't.
And secondly what am I supposed to point the make command to?
The makefile file? the folder its in?
you don't always have to run ./configure
make is just 'make' without any more arguments.
I just tried to run make but it threw up this error:
[code]
make -C src/
make[1]: Entering directory `/usr/local/src/cartograph-linux/src'
g++ -c -pipe -O2 -Wall main.cpp -o main.o
In file included from main.cpp:16:
Level.h:8: fatal error: zlib.h: No such file or directory
compilation terminated.
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/usr/local/src/cartograph-linux/src'
make: *** [default] Error 2
[/code]
[editline]6th November 2010[/editline]
Have I done something wrong?
Oh for the love of god, now it's saying that it cant find the file png.h!
Also I know it might look like I'm not putting effort in to this but I am, it's just that I am pretty new when it come to linux.
[editline]6th November 2010[/editline]
And if you ask I have libpng installed.
What about libpng-dev
Okay, the make worked but now am trying to do sudo checkinstall and it comes up with:
make: *** No rule to make target `install'. Stop.
**** Installation failed. Aborting package creation.
What now?
just run from that directory
I am but it comes up with that error.
It might help if you tell us what you are compiling. It may not need to be installed, just compiled and ran from that directory.
It's a Cartograph maker for minecraft.
[editline]6th November 2010[/editline]
So in that directory there is a executable file that I assume would be the compiled program but when I try to run it nothing happens.
Did you chmod +x it? I doubt make sets the file permission to be able to execute it automatically.
[QUOTE=nikomo;25893774]Did you chmod +x it? I doubt make sets the file permission to be able to execute it automatically.[/QUOTE]
Well, chmod +x doesn't seem to work any more but there is a new option in permissions to set it to execute and it is checked.
[QUOTE=kapin_krunch;25893389]It's a Cartograph maker for minecraft.[/QUOTE]
Yeah that just needs to be compiled and ran like this:
[code][ben@arch cartograph]$ wget http://cartograph.room101.no/cartograph-linux.tar.bz2
--2010-11-06 17:06:38-- http://cartograph.room101.no/cartograph-linux.tar.bz2
Resolving cartograph.room101.no... 178.255.146.196
Connecting to cartograph.room101.no|178.255.146.196|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9848 (9.6K) [application/x-bzip2]
Saving to: “cartograph-linux.tar.bz2”
100%[======================================>] 9,848 --.-K/s in 0.06s
2010-11-06 17:06:38 (159 KB/s) - “cartograph-linux.tar.bz2” saved [9848/9848]
[ben@arch cartograph]$ tar -xvf cartograph-linux.tar.bz2
cartograph-linux/
cartograph-linux/src/
cartograph-linux/src/Makefile
cartograph-linux/src/resource.h
cartograph-linux/src/Level.cpp
cartograph-linux/src/main.cpp
cartograph-linux/src/global.h
cartograph-linux/src/Level.h
cartograph-linux/Makefile
cartograph-linux/README
cartograph-linux/INSTALL
[ben@arch cartograph]$ cd cartograph-linux
[ben@arch cartograph-linux]$ make
make -C src/
make[1]: Entering directory `/home/ben/Desktop/cartograph/cartograph-linux/src'
g++ -c -pipe -O2 -Wall main.cpp -o main.o
g++ -c -pipe -O2 -Wall Level.cpp -o Level.o
Level.cpp: In member function ‘const render* Level::LoadLevelFromFile(const char*, int, bool, int)’:
Level.cpp:598:25: warning: ‘t3’ may be used uninitialized in this function
Level.cpp:616:11: warning: ‘here’ may be used uninitialized in this function
Level.cpp:616:16: warning: ‘top’ may be used uninitialized in this function
Level.cpp:616:20: warning: ‘left’ may be used uninitialized in this function
Level.cpp:616:25: warning: ‘right’ may be used uninitialized in this function
Level.cpp:771:11: warning: ‘here’ may be used uninitialized in this function
Level.cpp:771:16: warning: ‘top’ may be used uninitialized in this function
Level.cpp:771:20: warning: ‘front’ may be used uninitialized in this function
g++ -lpng main.o Level.o -o ../cartograph
make[1]: Leaving directory `/home/ben/Desktop/cartograph/cartograph-linux/src'
[ben@arch cartograph-linux]$ chmod +x cartograph
[ben@arch cartograph-linux]$ ./cartograph -O=map.png -R=oblique 3
Loading files tree....DONE!
Loading level....10%...20%...30%...40%...50%...60%...70%...80%...90%...DONE!
Drawing map....DONE!
Writing image to map.png....DONE![/code]
It doesn't look like the Linux version has been fixed for the halloween update yet though.
Oh wow thanks that works!
dear god... minecraft! - its come to this now has it!? lol
Thanks! This used to happen to me ALL the time.
Sorry, you need to Log In to post a reply to this thread.