..:: PCSX2 Forums ::..
Register | Help | Log In |
Register PCSX2 Site Forums Member List Donate View Today's Posts Search

Current time: 03-21-2010, 07:46 PM Hello There, Guest! (Login — Register)

..:: PCSX2 Forums ::.. / PCSX2 Discussion and Support / Developer Discussion / Linux - Compile Guide and Support

3 users browsing this thread: (0 members, and 3 guests).

Pages (3): « Previous 1 2 3
Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Linux - Compile Guide and Support
Author Message
Zeydlitz Offline
Plugin Author
*****

Posts: 961
Joined: Dec 2008
Location:
Post: #21
RE: Linux - Compile Guide and Support
2633 should be compilable.
03-01-2010 11:43 AM
Find all posts by this user Quote this message in a reply
mewtwo Offline
Newbie

Posts: 2
Joined: Dec 2009
Location:
Post: #22
RE: Linux - Compile Guide and Support
Is CMake working now?
when I cmake CMakeLists.txt, I get
Code:
[..]
-- Configuring done
CMake Error in pcsx2/CMakeLists.txt:
  Cannot find source file "Vif_Commands.cpp".  Tried extensions .c .C .c++
  .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx
in r2682
(This post was last modified: 03-08-2010 06:25 AM by mewtwo. Edit Reason: )
03-08-2010 06:24 AM
Find all posts by this user Quote this message in a reply
arcum42 Offline
PCSX2 coder
******

Posts: 348
Joined: Dec 2008
Location: Las Vegas, NV
Post: #23
RE: Linux - Compile Guide and Support
CMake support was added, but is still a bit iffy. It breaks occasionally, and I've had issues with binaries generated from it before. It's mainly in so it can be worked on, and doesn't get too out of date. The preferred way to compile pcsx2 in Linux at the moment is still with Codeblocks.
03-08-2010 02:04 PM
Find all posts by this user Quote this message in a reply
phrh Offline
Newbie

Posts: 1
Joined: Mar 2010
Location:
Post: #24
RE: Linux - Compile Guide and Support
Guide to building the latest svn CMake version in Ubuntu.

Disclaimer: The resulting binary runs the GUI perfectly fine but it seemed to hang when running games. Regardless, I wanted to post this since others may find this useful in the future when CMake is more stable.

First of all, if you are on Ubuntu 64-bit, follow the tutorial at:
http://jblevins.org/computing/linux/ubuntu-chroot
to set up a chroot environment. It should take up approximately 800 MB of hard drive space after all the packages are installed.

The rest of these instructions assume you have already run "dchroot" and have a terminal running inside the 32-bit chroot.

sudo apt-get install subversion cmake
svn checkout http://pcsx2.googlecode.com/svn/trunk pcsx2-beta
cd pcsx2-beta


If your version of CMake is missing FindGTK2.cmake and FindAlsa.cmake, you can find them here (click the "raw" link to download):
http://cmake.org/gitweb?p=cmake.git;a=tree;f=Modules
mkdir cmake/Modules
mv FindGTK2.cmake cmake/Modules/FindGTK2.cmake
mv FindALSA.cmake cmake/Modules/FindALSA.cmake


If you are using the chroot, you will need:
sudo apt-get install libgl1-mesa-dev
Do not install this outside chroot since it may break your graphics drivers.

sudo apt-get install libbz2-dev nvidia-cg-toolkit libportaudio2
For ZeroPAD:
sudo apt-get install libsdl1.2-dev
For ZeroGS:
sudo apt-get install libglew1.5-dev libxxf86vm-dev

Ubuntu's version of portaudio is missing libportaudiocpp. There is a package called "libportaudiocpp" but it is missing all the include files at /usr/include/portaudiocpp/. To fix this, use Debian's version, which is compatible but has the required files:
http://packages.debian.org/testing/portaudio19-dev
On that page, download the .deb file for i386.
Run sudo dpkg -i portaudio19*.deb
Then, if it complains do sudo apt-get -f install which should install any other dependencies.
When finished, you should have a directory at /usr/include/portaudiocpp/

Finally, the CMakeLists.txt are a bit buggy. You need to apply these two changes:
Code:
Index: cmake/Pcsx2Utils.cmake
===================================================================
--- cmake/Pcsx2Utils.cmake    (revision 2682)
+++ cmake/Pcsx2Utils.cmake    (working copy)
@@ -15,7 +15,7 @@
                      DEPENDS bin2cpp)

    # create a custom command for every resource file
-    foreach(entry IN LISTS ARGV)
+    foreach(entry ${ARGV})
        # create custom command and assign to target Resources
        add_custom_command(TARGET Resources POST_BUILD
                           COMMAND bin2cpp ${entry}
Index: pcsx2/CMakeLists.txt
===================================================================
--- pcsx2/CMakeLists.txt    (revision 2682)
+++ pcsx2/CMakeLists.txt    (working copy)
@@ -167,7 +167,6 @@
    SPR.cpp
    Stats.cpp
    System.cpp
-    Vif_Commands.cpp
    Vif0_Dma.cpp
    Vif1_Dma.cpp
    Vif1_MFIFO.cpp

Now, run
cmake -DCMAKE_MODULE_PATH=cmake/Modules/ .
make -j3


To build plugins, you need autoconf and automake installed:
sudo apt-get install autoconf automake
cd plugins/zeropad
aclocal
autoconf
automake -a
./configure --enable-debug --prefix=$PWD/../../bin/plugins
make -j3
make install
cd ../..


cd plugins/zerogs/opengl
aclocal
autoconf
automake -a
./configure --enable-sse2 --prefix=$PWD/../../../bin/plugins
make
make install
cd ../../..


Running

It is possible to run the binary from your 64-bit system, provided you tell it where to find libraries. The easiest way is doing:
export LD_LIBRARY_PATH=/var/chroot/xxx_i386/usr/lib

If you want it to work without LD_LIBRARY_PATH at your own risk, you can also copy the libraries from /var/chroot/xxx_i386/usr/lib/* into /usr/lib32 but use "cp -i" for confirmation and MAKE SURE you do not overwrite your 64-bit libraries with 32-bit because that will break your system.

For it to work properly, I had to mkdir ~/pcsx2 before running pcsx2 and configuring.
03-08-2010 02:26 PM
Find all posts by this user Quote this message in a reply
« Next Oldest | Next Newest »
Pages (3): « Previous 1 2 3
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:


Current time: 03-21-2010, 07:46 PM

Contact Us | PCSX2 | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication

Powered By MyBB, © 2002-2010 MyBB Group.
Theme created by IncadudeF and modified by bositman