View Single Post
  #5   (View Single Post)  
Old 16th April 2014
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Quote:
Originally Posted by hpabsdbeginner1 View Post
I'm tryng to compile tigervnc,work ok but at 80% interrupt,can't find X headers,(X.h,etc),how to pass the include dir to cmake?
Thanks
Here's a quick and dirty patch. This will allow TigerVNC to build. I didn't bother testing if the compiled binary works, because I don't care about VNC.

Like ocicat said, you may or may not run into issues. But you might as well try it. Things sometimes work fine anyway. The example that always comes to my mind is net/synergy which, even though it's not advertised, works basically everywhere on OpenBSD. (I know this because I'm the OpenBSD port maintainer of Synergy.)

Code:
$OpenBSD$
--- CMakeLists.txt.orig Tue Apr 15 21:28:23 2014
+++ CMakeLists.txt      Tue Apr 15 21:28:57 2014
@@ -65,7 +65,7 @@ add_definitions(-D__BUILD__="${BUILD}")

 # We want to keep our asserts even in release builds so remove NDEBUG
 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -UNDEBUG")
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -UNDEBUG")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${OPENBSD_X11BASE}/include -UNDEBUG")

 if(NOT DEFINED BUILD_WINVNC)
   set(BUILD_WINVNC 1)
Reply With Quote