Jump to content

William Lock

Members
  • Posts

    3
  • Joined

  • Last visited

  • Days Won

    1

William Lock last won the day on June 6 2021

William Lock had the most liked content!

William Lock's Achievements

Member

Member (1/2)

3

Reputation

  1. Hi all, @David Black during the past winter break, I managed to get cmake to work on M1. I will share CMakeLists.txt. As @Philipp A Hartmann also pointed out earlier, CMAKE_CXX_STANDARD is required to set to 11 or above. CMakeLists.txt
  2. Hi David, I did not have much luck with cmake approach. William
  3. Managed to run SystemC on new Apple M1 silicon, following are the steps 1. modify configure file, add the following code highlighted in red # check CPU architecture case ${target_cpu} in #( x86_64|amd64) : TARGET_ARCH="${TARGET_ARCH}64" CPU_ARCH="x86_64" QT_ARCH="x86_64" ;; #( x*86|i*86) : CPU_ARCH="i386" QT_ARCH="iX86" ;; #( powerpc64) : TARGET_ARCH="${TARGET_ARCH}ppc64" CPU_ARCH="ppc64" QT_ARCH="pthreads" ;; #( powerpc) : TARGET_ARCH="${TARGET_ARCH}ppc" CPU_ARCH="ppc" QT_ARCH="powerpc-apple-macosx" ;; #( arm) : TARGET_ARCH="${TARGET_ARCH}arm" CPU_ARCH="arm64" QT_ARCH="pthreads" ;; #( *) : as_fn_error $? "\"sorry...architecture not supported\"" "$LINENO" 5 ;; 2. install g++ using homebrew brew install gcc 3. setting CXX and point to the homebrew g++-11 in step 2, run configure export CXX=g++-11 ./configure 4. make all 5. make check I would like to encourage others to share their experience of porting systemC to this new mac silicon.
×
×
  • Create New...