Re: Better description of problem with XQuartz, Fortran and Xcode
Re: Better description of problem with XQuartz, Fortran and Xcode
- Subject: Re: Better description of problem with XQuartz, Fortran and Xcode
- From: Merle Reinhart <email@hidden>
- Date: Fri, 19 Jul 2013 11:35:03 -0400
Jeremy,
Yes, the /usr/X11 and /usr/X11R6 symlinks are reliably created by the XQuartz installer.
It is the /usr/include/X11 link that many times won't be there (definitely not on a clean install of Mountain Lion, some I've seen a lot of cases where it doesn't survive an upgrade from Lion). That symlink is not in the XQuartz installer (looking at the future, I assumed it was on purpose and didn't worry about it since as you point out, it is generally straight-forward to get that information into most make scripts).
Sorry about not mentioning the missing /usr/include/X11 symlink when I first noticed to see if it was intentional or not.
Merle
On Jul 19, 2013, at 11:25 AM, Jeremy Huddleston Sequoia <email@hidden> wrote:
>
> On Jul 19, 2013, at 7:43, Merle Reinhart <email@hidden> wrote:
>
>> On Mountain Lion, the /usr/include/X11 symbolic link tends to wind up missing.
>
> Really? This is the first I've heard about it.
>
> It's created rather simply in the post install script with:
>
> [[ -e /usr/X11 ]] || ln -s /opt/X11 /usr/X11
> [[ -e /usr/X11R6 ]] || ln -s /opt/X11 /usr/X11R6
>
> See the full script here:
> http://xquartz.macosforge.org/trac/browser/trunk/pkg/scripts/postinst_sl.sh
>
>> Either explicitly pass /opt/X11/include/X11 to your app build process, or recreate the symbolic link if it is missing.
>>
>> For the libs, the XQuartz installer should have put in the symbolic links in /usr (they point at /opt/X11).
>>
>> Merle
>>
>>
>>
>>
>>
>> On Jul 19, 2013, at 10:31 AM, Richard Bartholomew <email@hidden> wrote:
>>
>>> I should perhaps apologize for being terse in describing my problem earlier. I am able to run XQuartz.app in place of X11.app. What I cannot do is build my apps. Under X11, I would use the following linker commands:
>>>
>>> Other Linker Flags = -lX11
>>>
>>> Library Search Paths = /usr/X11R6/lib
>>>
>>> This caused the liner to search for libraries that contained filed such as Xlib.h and Xutil.h. However, under Mountain Lion and XQuartz, the libraries no longer can be found. The specific error messages when linking are:
>>>
>>> /libtool: can't locate file for: -lX11
>>>
>>> /libtool: file: -lX11 is not an object file (not allowed in a library)
>>>
>>> Lexical or Preprocessor issue: X11/Xlib.h' file not found
>>>
>>> What files am I missing and what do I do to fix this? Again, thanks for your help in advance.
>>>
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> X11-users mailing list (email@hidden)
>>>
>>> This email sent to email@hidden
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> X11-users mailing list (email@hidden)
>>
>> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden