On Thu, Nov 29, 2012 at 8:43 AM, jochen laubrock <[email protected]> wrote: > Works for me after additionally setting PKG_CPPFLAGS to point to the headers > in Makevars > > PKG_LIBS=-L/usr/X11/lib -lX11 > PKG_CPPFLAGS=-I/usr/X11/include > > > On Nov 29, 2012, at 12:18 , Jakson Alves de Aquino <[email protected]> wrote: > >> On Wed, Nov 28, 2012 at 9:38 PM, Jakson Alves de Aquino >> <[email protected]> wrote: >>> I submitted a package to CRAN: >>> http://cran.r-project.org/web/packages/vimcom/index.html >>> >>> It builds on Linux without warnings, but there is the following error >>> on Mac OS X: >>> >>> ld: library not found for -lX11 >>> collect2: ld returned 1 exit status >>> make: *** [vimcom.so] Error 1 >>> ERROR: compilation failed for package 'vimcom' >>> >>> The complete log is here: >>> http://www.r-project.org/nosvn/R.check/r-release-macosx-ix86/vimcom-00install.html >>> >>> I know that I have to edit the src/Makevars file, but I don't know >>> what I should put there and I don't have access to any machine running >>> Mac OS X to make tests. Any help will be appreciated. >> >> I've found this: >> http://stackoverflow.com/questions/5841008/problem-in-linking-x11-in-mac-os-x >> >> So, it seems that a Makevars file with the following content would >> solve the problem: >> >> PKG_LIBS=-L/usr/X11/lib -lX11 >> >> I would be grateful if someone could try to build the package with the >> above change in the src/Makevars since, as I have said, I can't make >> tests.
I added PKG_CFLAGS because the code is in C. I'm grateful to Jochen Laubrock for finding the solution and for Federico Calboli for doing additional tests. The updated code is available at: https://github.com/jalvesaq/VimCom Best regards, -- Jakson Alves de Aquino Federal University of CearĂ¡ Social Sciences Department www.lepem.ufc.br/aquino.php _______________________________________________ R-SIG-Mac mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
