Skip to content

issues when installing DSP on mac m1 #272

@DanielNeira

Description

@DanielNeira

I was trying to install this package to do some research but I'm finding hard to make it work.
I follow the instructions (although the latest version documentation is misleading). I changed the following from file 'UserConfig.cmake':

set(MA27LIB_DIR     "/usr/local/lib/")
set(GFORTRANLIB		"$ENV{GFORTRANLIB}")
set(GFORTRANLIB		"/usr/local/bin/gfortran")
set(GFORTRANLIB	"/usr/local/Cellar/gcc/13.1.0/lib/gcc/13/libgfortran.a")
set(SCIPOPT_INC_DIR "/Users/daniel/SCIPOptSuite-8.0.3-Darwin/include/")
set(SCIPOPT_LIB_DIR "/Users/daniel/SCIPOptSuite-8.0.3-Darwin/lib/")

follow the commands:

mkdir build
cd build
cmake ..
make

and I'm running into this error:

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/libDsp.dylib] Error 1
make[1]: *** [src/CMakeFiles/Dsp.dir/all] Error 2
make: *** [all] Error 2

I'm new to the use of flags and the link of multiples shared libraries so I tried what I found on the internet unsuccessful.
I have a Macbook Pro with chip apple m1 running macOS Ventura 13.0.1 and maybe that's the source of error.
I attached the entire messsage.
issue.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions