I think the above post is not really helping me anyway ... I am not seeing any CMakeList.txt file with those parameters.. the CMakeList.txt which i have is below..
# This is an ugly hack, we should be able to detect this automatically, but I'm feeling lazy ...
SET(K3D_MACPORTS_DIR "/opt/local" CACHE PATH "Root directory containing installed MacPorts packages")
MARK_AS_ADVANCED(K3D_MACPORTS_DIR)
INSTALL(
PROGRAMS
${K3D_MACPORTS_DIR}/lib/libgailutil.18.dylib
DESTINATION
lib
)
INSTALL(
DIRECTORY
${K3D_MACPORTS_DIR}/lib/gtk-2.0/2.10.0
DESTINATION
lib/gtk-2.0
USE_SOURCE_PERMISSIONS
)
INSTALL(
DIRECTORY
${K3D_MACPORTS_DIR}/lib/gtk-2.0/modules
DESTINATION
lib/gtk-2.0/2.10.0
USE_SOURCE_PERMISSIONS
)
INSTALL(
DIRECTORY
${K3D_MACPORTS_DIR}/lib/pango
DESTINATION
lib
USE_SOURCE_PERMISSIONS
)
INSTALL(
DIRECTORY
${K3D_MACPORTS_DIR}/etc/gtk-2.0
${K3D_MACPORTS_DIR}/etc/fonts
${K3D_MACPORTS_DIR}/etc/pango
DESTINATION
etc
)
Then above make file i edited the way you mention but still not helping the am still getting the following build error
Linking CXX shared library ../../lib/libk3dsdk-python-primitives.so
[ 27%] Built target k3dsdk-python-primitives
Scanning dependencies of target k3dsdk-python
[ 27%] Building CXX object k3dsdk/python/CMakeFiles/k3dsdk-python.dir/difference_python.cpp.o
[ 27%] Building CXX object k3dsdk/python/CMakeFiles/k3dsdk-python.dir/file_signal_python.cpp.o
[ 27%] Building CXX object k3dsdk/python/CMakeFiles/k3dsdk-python.dir/object_model_python.cpp.o
[ 27%] Building CXX object k3dsdk/python/CMakeFiles/k3dsdk-python.dir/script_python.cpp.o
Linking CXX shared library ../../lib/libk3dsdk-python.so
[ 27%] Built target k3dsdk-python
[ 27%] Built target k3d-resource-compiler
Scanning dependencies of target k3d
[ 27%] Building CXX object application/CMakeFiles/k3d.dir/k3d_main.cpp.o
[ 27%] Building CXX object application/CMakeFiles/k3d.dir/main.cpp.o
Linking CXX executable ../bin/k3d
../lib/libk3dsdk.so.1: undefined reference to `uuid_generate'
collect2: ld returned 1 exit status
make[2]: *** [bin/k3d] Error 1
make[1]: *** [application/CMakeFiles/k3d.dir/all] Error 2
make: *** [all] Error 2
what should i do for make this work? please could anybody can help me?