• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 55 56 57 58 59 ... 116 Next »

cmake build headaches (noob)
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
cmake build headaches (noob)
12-04-2011, 12:23 PM
#1
super effective
Unregistered
 
Sad 
Linux user, but unfamiliar with cmake.

I have cg installed on a non-default directory because I worked with cuda.
How can I edit the CMakeLists.txt to instead of doing:
Quote:check_lib(CG Cg Cg/cg.h)
check_lib(CGGL CgGL Cg/cgGL.h)
do something like this:
Quote:add_include_dirs(/usr/local/nvidia-cg/include)
add_library_dirs(/usr/local/nvidia-cg/lib64)

Thanks
Reply
12-05-2011, 12:25 AM
#2
super effective
Unregistered
 
I was able to fix this problem with env variables CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH

However it still fails in its final link step:
Quote: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?
Reply
12-06-2011, 02:09 AM
#3
super effective
Unregistered
 
I was able to fix this after editing the cmakelist files.

solved
Reply
« Next Oldest | Next Newest »


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


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode