Problem compiling V0.2rc1

Problem compiling V0.2rc1

Postby ctdabomb » 05 Jan 2012, 21:39

sorry, for my stupidity, how do I compile this/ get it to work? I have linux if that helps anything.
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
SuperTux Moderator
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Problem compiling V0.2rc1

Postby Edward_Lii » 05 Jan 2012, 21:44

Hello ctdabomb,

ctdabomb {l Wrote}:sorry, for my stupidity, how do I compile this/ get it to work? I have linux if that helps anything.

Open a terminal and run:
{l Code}: {l Select All Code}
cmake .
make

Then you can run ./meandmyshadow.

In order to compile you'll need these packages and their (-dev(el)):
    * libSDL
    * libSDL_image
    * libSDL_ttf
    * libSDL_mixer
    * libSDL_gfx
    * libcurl
    * libarchive

If you encounter any problems please post them.
Note to self: Add README file to v0.2 release.
From,
Edward_Lii
User avatar
Edward_Lii
MnMS Moderator
 
Posts: 777
Joined: 20 Dec 2010, 16:46

Re: MeAndMyShadow V0.2 RC1

Postby ctdabomb » 05 Jan 2012, 21:51

I don't see any files called make or cmake (first time I have ever done something like this)
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
SuperTux Moderator
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: MeAndMyShadow V0.2 RC1

Postby Edward_Lii » 05 Jan 2012, 21:54

Hello ctdabomb,

ctdabomb {l Wrote}:I don't see any files called make or cmake (first time I have ever done something like this)

These aren't files but commands.
But since you stated that this is your first time compiling it could be you don't have them installed.

Make sure you have cmake and make installed.
Open a terminal and navigate to the directory you extracted meandmyshadow in.
First run the command:
{l Code}: {l Select All Code}
cmake .

It will tell you if anything is missing, if there are no errors you can run:
{l Code}: {l Select All Code}
make

And then finally run meandmyshadow with:
{l Code}: {l Select All Code}
./meandmyshadow


I would like to make Linux binaries but not sure howto.
BTW, which distro do you use and do you use 32 or 64-bit?
From,
Edward_Lii
User avatar
Edward_Lii
MnMS Moderator
 
Posts: 777
Joined: 20 Dec 2010, 16:46

Re: MeAndMyShadow V0.2 RC1

Postby ctdabomb » 05 Jan 2012, 22:10

32 bit. i also use wine if you make a windoze version
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
SuperTux Moderator
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: MeAndMyShadow V0.2 RC1

Postby Edward_Lii » 05 Jan 2012, 22:12

Hello ctdabomb,

ctdabomb {l Wrote}:32 bit. i also use wine if you make a windoze version

A Windows built would be even harder. :p

My plan was to make packages during the release candidate.
Which distro do you use, perhaps I can make a package for it using the openSUSE Build Service.
From,
Edward_Lii
User avatar
Edward_Lii
MnMS Moderator
 
Posts: 777
Joined: 20 Dec 2010, 16:46

Re: MeAndMyShadow V0.2 RC1

Postby ctdabomb » 05 Jan 2012, 22:15

Sorry, I don't get what you are saying
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
SuperTux Moderator
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: MeAndMyShadow V0.2 RC1

Postby ctdabomb » 05 Jan 2012, 22:18

what do i actually type into the terminal?
/home/ctdabomb/Downloads/meandmyshadow-0.2rc1 then what?
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
SuperTux Moderator
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: MeAndMyShadow V0.2 RC1

Postby Edward_Lii » 05 Jan 2012, 22:22

Hello ctdabomb,

ctdabomb {l Wrote}:Sorry, I don't get what you are saying

You said you used Linux, but that isn't enough information.
There are different distributions of Linux, wikipedia page: Linux_distribution
I for example use openSUSE, others may use Ubuntu, Debian, Fedora, Mint, PCLinuxOS, just to name a few.
I'm planning on making packages for each of these distro's. (Both .rpm as .deb)

ctdabomb {l Wrote}:what do i actually type into the terminal?
/home/ctdabomb/Downloads/meandmyshadow-0.2rc1 then what?

If you got the terminal window open you can navigate using the cd command.
So by running this command you will enter the meandmyshadow path:
{l Code}: {l Select All Code}
cd /home/ctdabomb/Downloads/meandmyshadow-0.2rc1

Followed by an enter, to let the command be executed.
Now you can continue with the other commands, write:
{l Code}: {l Select All Code}
cmake .
Followed by a enter.
{l Code}: {l Select All Code}
make
Followed by an enter

If it compiles without errors you can run:
{l Code}: {l Select All Code}
./meandmyshadow
From,
Edward_Lii
User avatar
Edward_Lii
MnMS Moderator
 
Posts: 777
Joined: 20 Dec 2010, 16:46

Re: MeAndMyShadow V0.2 RC1

Postby ctdabomb » 05 Jan 2012, 22:24

I type in make and this is what I get
ctdabomb@ctdabomb-laptop:~$ make
make: *** No targets specified and no makefile found. Stop.
ctdabomb@ctdabomb-laptop:~$
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
SuperTux Moderator
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: MeAndMyShadow V0.2 RC1

Postby Edward_Lii » 05 Jan 2012, 22:27

Hello ctdabomb,

ctdabomb {l Wrote}:I type in make and this is what I get
ctdabomb@ctdabomb-laptop:~$ make
make: *** No targets specified and no makefile found. Stop.
ctdabomb@ctdabomb-laptop:~$

Seeing the start of the line ctdabomb@ctdabomb-laptop:~$ your in your home directory.
You'll need to change direcotry to /home/ctdabomb/Downloads/meandmyshadow-0.2rc1.
You can do this by entering:
{l Code}: {l Select All Code}
cd /home/ctdabomb/Downloads/meandmyshadow-0.2rc1

After that you'll have to run cmake . and then you can run make.
From,
Edward_Lii
User avatar
Edward_Lii
MnMS Moderator
 
Posts: 777
Joined: 20 Dec 2010, 16:46

Re: MeAndMyShadow V0.2 RC1

Postby ctdabomb » 05 Jan 2012, 22:29

ctdabomb@ctdabomb-laptop:~/Downloads/meandmyshadow-0.2rc1$ make
make: *** No targets specified and no makefile found. Stop.
is what i get.
maybe I don't have make installed?
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
SuperTux Moderator
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: MeAndMyShadow V0.2 RC1

Postby Edward_Lii » 05 Jan 2012, 22:31

Hello ctdabomb,

ctdabomb {l Wrote}:is what i get.
maybe I don't have make installed?

You do have make installed since make is giving you that message.
But before you can run make you need to run:
{l Code}: {l Select All Code}
cmake .

This will, if there aren't any errors, create the Makefile which make can use.
From,
Edward_Lii
User avatar
Edward_Lii
MnMS Moderator
 
Posts: 777
Joined: 20 Dec 2010, 16:46

Re: MeAndMyShadow V0.2 RC1

Postby ctdabomb » 05 Jan 2012, 22:32

Here is what I did:
I changed my directory
typed cmake
typed make
and then I got that error
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
SuperTux Moderator
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: MeAndMyShadow V0.2 RC1

Postby Edward_Lii » 05 Jan 2012, 22:33

Hello ctdabomb,

ctdabomb {l Wrote}:Here is what I did:
I changed my directory
typed cmake
typed make
and then I got that error

Sorry if it wasn't clear you have to run cmake . (cmake<space>[dot])
From,
Edward_Lii
User avatar
Edward_Lii
MnMS Moderator
 
Posts: 777
Joined: 20 Dec 2010, 16:46

Re: MeAndMyShadow V0.2 RC1

Postby ctdabomb » 05 Jan 2012, 22:35

i got this error after cmake:
ctdabomb@ctdabomb-laptop:~/Downloads/meandmyshadow-0.2rc1$ cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/gcc
m-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:70 (MESSAGE):
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindCURL.cmake:32 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:11 (Find_Package)


-- Configuring incomplete, errors occurred!
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
SuperTux Moderator
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: MeAndMyShadow V0.2 RC1

Postby Edward_Lii » 05 Jan 2012, 22:37

Hello ctdabomb,

ctdabomb {l Wrote}:...
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
...

This means that libcurl-dev or libcurl-devel is not installed.
You should be able to install it using your system package manager.
From,
Edward_Lii
User avatar
Edward_Lii
MnMS Moderator
 
Posts: 777
Joined: 20 Dec 2010, 16:46

Re: MeAndMyShadow V0.2 RC1

Postby ctdabomb » 05 Jan 2012, 22:38

okay I will install those
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
SuperTux Moderator
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: MeAndMyShadow V0.2 RC1

Postby ctdabomb » 05 Jan 2012, 22:49

i think I got the right thing.
but when i typed cmake .
i got:
CMake Error at CMakeLists.txt:23 (message):
SDL not found !
does that mean I have to install a sdl something?
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
SuperTux Moderator
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: MeAndMyShadow V0.2 RC1

Postby Edward_Lii » 05 Jan 2012, 22:51

Hello ctdabomb,

ctdabomb {l Wrote}:SDL not found !
does that mean I have to install a sdl something?

Exactly, you need these packages of sdl:
    * libSDL-dev
    * libSDL_image-dev
    * libSDL_ttf-dev
    * libSDL_mixer-dev
    * libSDL_gfx-dev
From,
Edward_Lii
User avatar
Edward_Lii
MnMS Moderator
 
Posts: 777
Joined: 20 Dec 2010, 16:46

Re: MeAndMyShadow V0.2 RC1

Postby ctdabomb » 05 Jan 2012, 22:54

the last four are not in ubuntu software center. where else should I look to install them?
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
SuperTux Moderator
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: MeAndMyShadow V0.2 RC1

Postby Edward_Lii » 05 Jan 2012, 22:56

Hello ctdabomb,

ctdabomb {l Wrote}:the last four are not in ubuntu software center. where else should I look to install them?

Oh, Ubuntu seems to name them libsdl1.2-dev, libsdl_image1.2-dev, etc...
From,
Edward_Lii
User avatar
Edward_Lii
MnMS Moderator
 
Posts: 777
Joined: 20 Dec 2010, 16:46

Re: MeAndMyShadow V0.2 RC1

Postby ctdabomb » 05 Jan 2012, 23:00

got them downloading! synaptic package manager had them!
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
SuperTux Moderator
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: MeAndMyShadow V0.2 RC1

Postby Edward_Lii » 05 Jan 2012, 23:02

Hello ctdabomb,

ctdabomb {l Wrote}:got them downloading! synaptic package manager had them!

Now try to compile again, I'm afraid you might run into a libarchive problem. :|
From,
Edward_Lii
User avatar
Edward_Lii
MnMS Moderator
 
Posts: 777
Joined: 20 Dec 2010, 16:46

Re: MeAndMyShadow V0.2 RC1

Postby ctdabomb » 05 Jan 2012, 23:04

Yup, you were right.

CMake Error at CMakeLists.txt:39 (message):
LIBARCHIVE not found !
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
SuperTux Moderator
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Who is online

Users browsing this forum: No registered users and 1 guest