Results 1 to 3 of 3

Thread: Dolphin-emu build problems

  1. #1
    Join Date
    May 2007
    Beans
    264

    [SOLVED] Dolphin-emu build problems

    I'm trying to build it, but I'm having problems because I have cg installed at a non-default dir.

    How can I edit CMakeLists.txt to instead of doing:
    check_lib(CG Cg Cg/cg.h)
    check_lib(CGGL CgGL Cg/cgGL.h)
    do something like this:
    add_include_dirs(/usr/local/nvidia-cg/include)
    add_library_dirs(/usr/local/nvidia-cg/lib64)

    I would also like to know if it's possible to have dolphin-emu to use a secondary GPU for computation instead of the main one.
    Why?
    Because I have 2 GPUs installed on my desktop and the one assigned to X is the least powerful one.

    Thanks



    EDIT: I'm using Debian so using the Ubuntu builds is not much of an option.
    And in any case, solving this would make me understand more about cryptic cmake.




    EDIT2: I solved this problem with env variables CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH
    Last edited by kung fu buntu; December 5th, 2011 at 05:08 PM.

  2. #2
    Join Date
    May 2007
    Beans
    264

    Re: Dolphin-emu build problems

    I'm now having another problem.

    The link step fails:
    Linking CXX executable ../../../Binaries/dolphin-emu
    /usr/bin/ld: cannot find -lCg
    collect2: ld returned 1 exit status
    make[2]: *** [Binaries/dolphin-emu] Error 1
    make[1]: *** [Source/Core/DolphinWX/CMakeFiles/dolphin-emu.dir/all] Error 2
    make: *** [all] Error 2
    If I do it with make VERBOSE=1 I can see that cmake is not passing the appropriate -L path in the link command.
    How can I do this?

  3. #3
    Join Date
    Aug 2009
    Beans
    1,419

    Re: Dolphin-emu build problems

    Is there a reason you want to build it rather than install it from a ppa?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •