[vtk-developers] OS X vtkDetermineCompilerFlags.cmake broken for gcc 4.5 up -mlong-branch only relevant to PPC

Kent Williams nkwmailinglists at gmail.com
Fri Apr 13 15:23:51 EDT 2012


I see there are some Arch Linux builds with GCC 4.7 -- right now they
look like they have some compilation problems that are disjoint from
the ones I'm encountering.

I ran into a bunch of other crazy problems once I get it built, which
leads me to believe that I've bitten off more than I can chew. I have
other things I need to get done today, so maybe I'll mess with it more
on monday.

On Fri, Apr 13, 2012 at 2:02 PM, David Cole <david.cole at kitware.com> wrote:
> Some files probably included some system headers that had "\p" strings in
> them...
>
> Not sure if it's true anymore.
>
>
> On Fri, Apr 13, 2012 at 2:58 PM, Kent Williams <nkwmailinglists at gmail.com>
> wrote:
>>
>> Another flag issue: -fpascal-strings -- another Apple-built-gcc-only flag.
>>
>> This would be needed to support pascal strings for old API calls, i.e.
>> strings like this:
>>
>> "\pthis is a pascal string"
>>
>> I didn't see any Pascal Strings in any of the ftgl files.
>>
>> diff --git a/Utilities/ftgl/CMakeLists.txt b/Utilities/ftgl/CMakeLists.txt
>> index 8f8e37d..edcaa23 100644
>> --- a/Utilities/ftgl/CMakeLists.txt
>> +++ b/Utilities/ftgl/CMakeLists.txt
>> @@ -117,7 +117,7 @@ ENDIF (UNIX)
>>  #
>>  IF (APPLE)
>>   IF(CMAKE_COMPILER_IS_GNUCXX)
>> -    SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated
>> -fpascal-strings")
>> +    SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated")
>>   ENDIF(CMAKE_COMPILER_IS_GNUCXX)
>>  ENDIF (APPLE)
>>
>>
>>
>> On Fri, Apr 13, 2012 at 1:16 PM, Sean McBride <sean at rogue-research.com>
>> wrote:
>> >>Shouldn't it be something like this?
>> >>
>> >>set(BUILDING_ON_PPC_OS_X  <whatever flag(s) tell you you're building
>> >>on OS X with PPC>)
>> >>if(NOT BUILD_SHARED_LIBS AND ${BUILDING_ON_PPC_OS_X})
>> >
>> > Whether you're building _on_ PPC is not important, it's whether your
>> > building _for_ the PPC architecture.  Remember, with Universal Binaries you
>> > may be building for ppc & intel at the same time.
>> >
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtk-developers
>>
>



More information about the vtk-developers mailing list