Page 1 of 3

Problem compiling V0.2rc1

PostPosted: 05 Jan 2012, 21:39
by ctdabomb
sorry, for my stupidity, how do I compile this/ get it to work? I have linux if that helps anything.

Problem compiling V0.2rc1

PostPosted: 05 Jan 2012, 21:44
by Edward_Lii
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.

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 21:51
by ctdabomb
I don't see any files called make or cmake (first time I have ever done something like this)

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 21:54
by Edward_Lii
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?

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 22:10
by ctdabomb
32 bit. i also use wine if you make a windoze version

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 22:12
by Edward_Lii
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.

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 22:15
by ctdabomb
Sorry, I don't get what you are saying

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 22:18
by ctdabomb
what do i actually type into the terminal?
/home/ctdabomb/Downloads/meandmyshadow-0.2rc1 then what?

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 22:22
by Edward_Lii
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

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 22:24
by ctdabomb
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:~$

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 22:27
by Edward_Lii
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.

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 22:29
by ctdabomb
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?

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 22:31
by Edward_Lii
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.

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 22:32
by ctdabomb
Here is what I did:
I changed my directory
typed cmake
typed make
and then I got that error

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 22:33
by Edward_Lii
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])

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 22:35
by ctdabomb
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!

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 22:37
by Edward_Lii
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.

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 22:38
by ctdabomb
okay I will install those

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 22:49
by ctdabomb
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?

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 22:51
by Edward_Lii
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

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 22:54
by ctdabomb
the last four are not in ubuntu software center. where else should I look to install them?

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 22:56
by Edward_Lii
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...

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 23:00
by ctdabomb
got them downloading! synaptic package manager had them!

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 23:02
by Edward_Lii
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. :|

Re: MeAndMyShadow V0.2 RC1

PostPosted: 05 Jan 2012, 23:04
by ctdabomb
Yup, you were right.

CMake Error at CMakeLists.txt:39 (message):
LIBARCHIVE not found !