kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #23750
Re: 3D plugin for STEP/IGES via OCE
Le 10/03/2016 14:17, Wayne Stambaugh a écrit :
> Before I would allow OCE as a KiCad dependency, it must build without
> modification from source on OSX, msys2/mingw32 and msys2/mingw64 at a
> minimum. If it fails this test, then someone will have to provide
> packages for these platforms. Has this been tested?
>
> On 3/10/2016 4:11 AM, Cirilo Bernardo wrote:
>> Hi folks,
>>
>> I have a 3D plugin built to support STEP and IGES visualization via OCE
>> and have linked 3 screenshots below.
I built OCE (coming from https://github.com/tpaviot/oce) on W7 32 bits,
msys2 without change in sources, but I had to slightly patch the CMakefile.
Attached the patch.
I had to force response files for include files and link files.
It could be not necessary on a 64bits Windows version.
--
Jean-Pierre CHARRAS
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 29891da..2b18115 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -125,6 +125,18 @@ if(WIN32)
mark_as_advanced(OCE_AUTOINSTALL_DEPENDENT_LIBS)
endif()
+
+if( MSYS )
+ # JPC: use a response file for include and link, because the environment buffer is too small
+ # when there are a lot of files to link or include
+ set( CMAKE_C_USE_RESPONSE_FILE_FOR_INCLUDES 1 )
+ set( CMAKE_CXX_USE_RESPONSE_FILE_FOR_INCLUDES 1 )
+ set( CMAKE_C_USE_RESPONSE_FILE_FOR_OBJECTS 1 )
+ set( CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS 1 )
+ #set( CMAKE_CXX_RESPONSE_FILE_LINK_FLAG "@" )
+endif()
+
+
if ((MSVC AND NOT NMAKE) OR CMAKE_COMPILER_IS_GNUCXX)
set(OCE_COMPILER_SUPPORTS_PCH TRUE)
if(MSVC)
References