LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-02-2013, 05:09 AM   #1
Ehsanizadi
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Rep: Reputation: Disabled
Problem in making pal on Linux Mint


Hi,

I am new to programming with C++, linux and also to PAL.
For my project I have to use PAL (Physics Abstraction Layer) and I am at the first steps of installing PAL.
Regarding the instructions stated at PAL website, I've done all the steps until the step no 6 (Make PAL core libraries: make libpal).
Once I type "make libpal" in the terminal, I receive this error:

Code:
==== Building libpal ====
make[1]: *** No rule to make target `../../pal_i/hull.cpp', needed by `obj/Debug/hull.o'.  Stop.
make: *** [libpal] Error 2
Note that I downloaded and used a tarball version of pal and tried it via SVN access, neither of them worked for me.

Thank you in advance,
Ehsan
 
Old 08-02-2013, 07:14 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Assume /home/<name>/pal/
(From the $ svn co https://pal.svn.sourceforge.net/svnroot/pal pal ).

The meaning of § 5 , "cd build/gnu/" is :
a) $ cd pal/pal/
b) $ mkdir -p build/gnu/
c) $ cd build/gnu/
d) $ cmake ../../ ( Or $ CC=gcc-4.4 CXX=g++-4.4 cmake ../../ )
e) $ make libpal

? Any questions ? Then please specify your Ubuntu version :
I) $ uname -m
II) $ cat /etc/issue

-

Last edited by knudfl; 08-02-2013 at 07:19 AM.
 
Old 08-02-2013, 07:34 AM   #3
Ehsanizadi
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Confusing..., I didn't understand what should I do to solve this problem! or what is the source of the problem.

Anyhow, I use Linux Mint 15.
 
Old 08-02-2013, 07:51 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
I didn't understand what should I do to solve this problem!
Or what is the source of the problem.
I think the instructions may be simplified ?
It is assumed that you know how to use 'cmake'. Default is :
When you see a file "CMakeLists.txt", make a build/ folder and do $ cmake ../
inside the build/ folder.

* But : Here we have an application that specifies "build/gnu/".
Which is required for the cmake files to work.

* Mint 15 : $ sudo apt-get install g++-4.4 cmake
.... and then use the suggested $ CC=gcc-4.4 CXX=g++-4.4 cmake ../../
( Instead of plain 'cmake ../../' ).

-

Last edited by knudfl; 08-02-2013 at 08:08 AM.
 
Old 08-02-2013, 08:38 AM   #5
Ehsanizadi
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
In PAL website it is mentioned in order to install PAL on linux, "premake" should be used. (Note: according to the instructions of pal website, I used premake)
Is it possible to install PAL on linux using CMake? (actually, I didn't know that)

I have already used Cmake on windows, but have not tested it on linux.
In the case of installing pal using Cmake, I didn't get your point about:
Quote:
$ CC=gcc-4.4 CXX=g++-4.4 cmake ../../
What should I write instead of "../../"?
I guess it should be a path of file or something, could you provide an example for that?
Sorry, for my repetitive questions! I am really new to these.

Last edited by Ehsanizadi; 08-02-2013 at 08:41 AM.
 
Old 08-02-2013, 10:28 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 5 .

Please see post #1 : No rule to make target `../../pal_i/hull.cpp'

".." means one level up. Same as "../".
"../../" means two levels up in the directory tree.
Not to be replaced, but used as is.


But : May be you already have a Makefile ? From "premake".
I may have misunderstood the "premake" thing.
And I did not do this : "premake --file premake_generic.lua --target gnu".

-
 
Old 08-04-2013, 11:47 AM   #7
Ehsanizadi
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 5 .

Please see post #1 : No rule to make target `../../pal_i/hull.cpp'

".." means one level up. Same as "../".
"../../" means two levels up in the directory tree.
Not to be replaced, but used as is.


But : May be you already have a Makefile ? From "premake".
I may have misunderstood the "premake" thing.
And I did not do this : "premake --file premake_generic.lua --target gnu".

-
Well, I am following "premake" and its instructions!
Please see this.
 
Old 08-04-2013, 07:00 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
in "cmake" all path are relative to the build folder
and that build folder CAN NOT be the source folder

hence the making of the folders "build/gnu"
NOW
fro cmake to include the "include.cmake" files the relative path from PWD is needed
hence the requirement of the ../../ FROM inside the build folder

cmake is NOT like the autotools "configure" and "make" it dose things differently

also looking on the page in the first post
it was last updated in Oct. 2008
---- Page modified on 26/10/08 -------

and is using the old "premake 3.7" from 2008
http://premake.sourceforge.net/download
http://sourceforge.net/projects/prem...urce=directory
 
  


Reply

Tags
pal



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] remastering linux mint -making it ready for disabled/handicapped people starklinux Linux Mint 15 07-30-2012 08:15 PM
is xrandr able to set TV-Out to NTSC or PAL-M on Mint with Geforce FX 5200? gugaLG1974 Linux - Newbie 7 06-16-2012 12:54 AM
LXer: Linux Mint: Making Linux easy LXer Syndicated Linux News 0 12-14-2009 05:00 PM
xawtv now only has pal and ntsc but kdetv has pal-i etc. qwerty Linux - Software 0 10-24-2005 12:39 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration