Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSFM application failed to build, halting #61

Open
johanrosenberg opened this issue Nov 16, 2022 · 4 comments
Open

VSFM application failed to build, halting #61

johanrosenberg opened this issue Nov 16, 2022 · 4 comments

Comments

@johanrosenberg
Copy link

hi
I got this while installing...

About to make...
mkdir -p build
mkdir -p bin
cd build; ar -x ../lib/VisualSFM.a; cd ..;
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
g++-4.9 -w -o bin/VisualSFM build/. -L/usr/local/lib -L/opt/X11/lib -pthread -lGL -lGLU -lX11 -ldl lib/lapack.a lib/blas.a lib/libf2c.a lib/libjpeg.a
/bin/sh: g++-4.9: command not found
make: *** [VisualSFM] Error 127

@johanrosenberg
Copy link
Author

Mac OS Catalina 10.15.7 (19H2026)

@danmonaghan
Copy link

danmonaghan commented Nov 16, 2022

I haven’t built this for years unfortunately! It’s the version of GCC being used which is really old. Try looking for GCC 4.9 references and update perhaps. Keep me posted.

@wschuller
Copy link

Hi Dan,
I understand I am late for the party.
I updated the installer as follows with all changes shown in BOLD:

brew install gcc49 to brew install gcc**@11**

Plus 3 instances in the script of:
echo "Changing VSFM GCC to Brews gcc-4.9"
S=$(echo CC = g++ -w | sed -e 's///\//g')
R=$(echo CC = g++-4.9 -w | sed -e 's///\//g')
sed -i '' -e "s/${S}/${R}/" makefile

to

echo "Changing VSFM GCC to Brews gcc-11"
S=$(echo CC = g++ -w | sed -e 's///\//g')
R=$(echo CC = g++-11 -w | sed -e 's///\//g')
sed -i '' -e "s/${S}/${R}/" makefile

I got the following error after running the script:
About to make...
mkdir -p build
mkdir -p bin
cd build; ar -x ../lib/VisualSFM.a; cd ..;
g++-11 -w -o bin/VisualSFM build/. -L/usr/local/lib -L/opt/X11/lib -pthread -lGL -lGLU -lX11 -ldl -L/usr/local/Cellar/gtk+/2.24.33/lib -L/usr/local/Cellar/pango/1.50.12/lib -L/usr/local/Cellar/harfbuzz/6.0.0_1/lib -L/usr/local/Cellar/atk/2.38.0/lib -L/usr/local/Cellar/cairo/1.16.0_5/lib -L/usr/local/Cellar/gdk-pixbuf/2.42.10/lib -L/usr/local/Cellar/glib/2.74.5/lib -L/usr/local/opt/gettext/lib -lgtk-quartz-2.0 -lgdk-quartz-2.0 -framework Cocoa -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lintl lib/lapack.a lib/blas.a lib/libf2c.a lib/libjpeg.a
ld: framework not found Cocoa
collect2: error: ld returned 1 exit status
make: *** [VisualSFM] Error 1
VSFM application failed to build, halting.

Possibly, the changes I made were incorrect, maybe @ should have been -, however, the gcc@11 install appears to be fine as per:
==> Installing gcc@11
==> Pouring [email protected]
🍺 /usr/local/Cellar/gcc@11/11.3.0: 2,160 files, 459.1MB
==> Running brew cleanup gcc@11...

I hope you may shed some light on how I might modify the script to work today, understanding it is 6 years since you wrote it.

Kind regards,
Wolf

@wschuller
Copy link

PS I am running macOS Ventura 13.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants