Compilation fugu on mac osx

176 views
Skip to first unread message

Cédric Petitcuenot

unread,
Sep 2, 2013, 11:14:53 AM9/2/13
to fugu...@googlegroups.com
Hello,

I'm currently trying to compile fugu on my mac:

mac version:
cmake 2.8 (latest version)
QT 4.8.5

this is what I get when I execute the script. / osx-build.sh make-

macbook-pro-de-cedric:bpio-fg-6e85c2a1c295 cmdcirdec$ ./osx-make-build.sh 
Building Makefile Project...
-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework  
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   system
--   filesystem
-- Found GLUT: -framework GLUT  
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake (found version "4.8.5") 
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/build-osx-make
Done!


Then I go into the folder build-osx-make
Here is what I make I get to install:
macbook-pro-de-cedric:build-osx-make cmdcirdec$ make install
Scanning dependencies of target fg
[  1%] Building CXX object fg/CMakeFiles/fg.dir/armature.cpp.o
clang: error: no input files
/bin/sh: -O3: command not found
make[2]: *** [fg/CMakeFiles/fg.dir/armature.cpp.o] Error 127
make[1]: *** [fg/CMakeFiles/fg.dir/all] Error 2
make: *** [all] Error 2

I do not understand why it does not work. Do I forget something?

I took the code as it is on the deposits.
Can you guide me. tell me how you do you.
thank you in advance for your response

Benjamin Porter

unread,
Sep 2, 2013, 7:00:40 PM9/2/13
to fugu...@googlegroups.com
Hi Cedric, thanks for looking at Fugu!

It's been a while since I worked on this, and to be honest, I have no idea. Here's some guesses:
- Enable verbose mode in make; or
- Use gcc, not clang; or
- Just download the pre-compiled program from http://bp.io/fugu/old/

Sorry I couldn't be of more help!
B



--
You received this message because you are subscribed to the Google Groups "fugu" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fugu_app+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Cédric Petitcuenot

unread,
Sep 3, 2013, 5:52:30 AM9/3/13
to fugu...@googlegroups.com
thank you apparently just the problem that is to "-O3-D GLEW_STATIC" which adds it. If you execute the command manually removing "-O3-D GLEW_STATIC" compilation pass. Alas, for the moment I do not know why there is this addition.

if you have an idea I'm interested.

macbook-pro-de-cedric:build-osx-make cmdcirdec$ make VERBOSE=1 install
"/Applications/CMake 2.8-11.app/Contents/bin/cmake" -H/Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/src -B/Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/build-osx-make --check-build-system CMakeFiles/Makefile.cmake 0
"/Applications/CMake 2.8-11.app/Contents/bin/cmake" -E cmake_progress_start /Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/build-osx-make/CMakeFiles /Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/build-osx-make/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make -f fg/CMakeFiles/fg.dir/build.make fg/CMakeFiles/fg.dir/depend
cd /Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/build-osx-make && "/Applications/CMake 2.8-11.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/src /Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/src/fg /Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/build-osx-make /Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/build-osx-make/fg /Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/build-osx-make/fg/CMakeFiles/fg.dir/DependInfo.cmake --color=
make -f fg/CMakeFiles/fg.dir/build.make fg/CMakeFiles/fg.dir/build
"/Applications/CMake 2.8-11.app/Contents/bin/cmake" -E cmake_progress_report /Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/build-osx-make/CMakeFiles 2
[  1%] Building CXX object fg/CMakeFiles/fg.dir/bindings.cpp.o
cd /Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/build-osx-make/fg && /usr/bin/g++    -arch x86_64 -Xarch_x86_64 -O3 -D GLEW_STATIC;-O3 -D GLEW_STATIC -I/Developer/Applications/boost/include -I/Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/src/../include -I/Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/src/../include/vcg -I/Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/src/../include/lua -I/Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/build-osx-make -I/Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/src    -o CMakeFiles/fg.dir/bindings.cpp.o -c /Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/src/fg/bindings.cpp
i686-apple-darwin11-llvm-g++-4.2: no input files

/bin/sh: -O3: command not found
make[2]: *** [fg/CMakeFiles/fg.dir/bindings.cpp.o] Error 127

make[1]: *** [fg/CMakeFiles/fg.dir/all] Error 2
make: *** [all] Error 2


execution of the command line without "-O3-D GLEW_STATIC"
macbook-pro-de-cedric:build-osx-make cmdcirdec$ cd /Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/build-osx-make/fg && /usr/bin/g++    -arch x86_64 -Xarch_x86_64 -O3 -D GLEW_STATIC -I/Developer/Applications/boost/include -I/Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/src/../include -I/Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/src/../include/vcg -I/Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/src/../include/lua -I/Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/build-osx-make -I/Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/src    -o CMakeFiles/fg.dir/bindings.cpp.o -c /Users/cmdcirdec/Downloads/bpio-fg-6e85c2a1c295/src/fg/bindings.cpp
macbook-pro-de-cedric:fg cmdcirdec$ 

Benjamin Porter

unread,
Sep 3, 2013, 6:14:52 AM9/3/13
to fugu...@googlegroups.com
Hmm that command line has an error in, the ";-O3 -D GLEW_STATIC" bit.  After I looked around a bit, I found the problem. It's at line 69 of src/cmakelists.txt. For now, if u comment that line out then redo the build process, it should build.


Cheers,
Ben

Cédric Petitcuenot

unread,
Sep 3, 2013, 11:21:22 AM9/3/13
to fugu...@googlegroups.com
I found what's wrong.

The rule of Cmakelists with UNIX.
In fact if (UNIX interpreted by mac os because according to the doc UNIX mac return TRUE.

I trust modify the file as follows for the unix part


Then I reactivated the 69 line was good.
I attached the corrected file.

Cordialement,

Cédric PETITCUENOT


2013/9/3 Benjamin Porter <benjami...@gmail.com>

--
You received this message because you are subscribed to a topic in the Google Groups "fugu" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/fugu_app/7g_txOFd0gc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to fugu_app+u...@googlegroups.com.
CMakeLists.txt

Cédric Petitcuenot

unread,
Sep 3, 2013, 11:24:18 AM9/3/13
to fugu_app
sorry I put the wrong file

Cordialement,

Cédric PETITCUENOT


2013/9/3 Cédric Petitcuenot <petitc...@gmail.com>
CMakeLists.txt

Benjamin Porter

unread,
Sep 3, 2013, 5:52:50 PM9/3/13
to fugu...@googlegroups.com
Ok, I merged your changes. Thanks a lot for that. :)

Cédric Petitcuenot

unread,
Sep 5, 2013, 6:00:13 AM9/5/13
to fugu...@googlegroups.com
I watched a can code for the problem under mac os level sahder phong.
There are two errors: the first:


You tried to assign a value to a parameter uniform, but this must be added before the line: mPhongShader-> bind ();

which gives:
if (mPhongShader) {
mPhongShader-> bind ();
mPhongShader-> setUniformValue ("shininess", (GLfloat) 5);
}

The other thing that bothered me was that in Phong we do not have the color, I did not understand why I saw you spécifé lines



for windows. I understood that to compile a long GLint was that seem strange to me, I searched and found your file



had a piece of code changed to Apple.
Why this definition as it does not exist in the original book (I check this by compiling it locally on my machine.)

So I tested for this redifinition deactivated for Apple, so now it works without error.

Can you tell me why this redefinition is it useful. Otherwise I suggest the correction. Obtained. And have the phong color.

Le mardi 3 septembre 2013 23:52:50 UTC +2, Ben a écrit:
Ok, j'ai fusionné vos modifications. Merci beaucoup pour cela. :)


Le 4 Septembre 2013 01:24, Cédric Petitcuenot < petitc ... @ gmail.com > a écrit:
désolé j'ai mis le mauvais fichier

Cordialement, Cédric Petitcuenot



03/09/2013 Cédric Petitcuenot < petitc ... @ gmail.com >
J'ai trouvé ce qui n'allait pas.

La règle de Cmakelists avec UNIX.
En fait, si (UNIX interprété par Mac OS car selon la doc UNIX mac retour TRUE.

J'espère modifier le fichier comme suit pour la partie unix

if (Unix et pas Apple) et la ligne 68 

Ensuite, j'ai réactivé la ligne 69 était bon.
J'ai joint le fichier corrigé.

Cordialement, Cédric Petitcuenot



03/09/2013 Benjamin Porter < benjami ... @ gmail.com >
Hmm cette ligne de commande contient une erreur dans le ";-O3-D GLEW_STATIC" bit. Après j'ai regardé un peu autour, j'ai trouvé le problème. C'est à la ligne 69 du fichier src / CMakeLists.txt. Pour l'instant, si u commentaire de cette ligne sur puis refaire le processus de construction, il faut construire.


Cheers,
Ben

Le mardi 3 Septembre 2013, Cédric Petitcuenot a écrit:
merci apparemment juste le problème qui est à "-O3-D GLEW_STATIC" qui ajoute. Si vous exécutez la commande supprimer manuellement "-O3-D GLEW_STATIC" passe de compilation. Hélas, pour le moment, je ne sais pas pourquoi il ya cet ajout.

si vous avez une idée je suis preneur.

macbook-pro-de-cedric: build- osx-faire cmdcirdec $ make verbose = 1 installation
"/ Applications / CMake 2.8-11.app/Contents/bin/cmake" -H/Users/cmdcirdec/Downloads / BPIO-fg- -B/Users/cmdcirdec/Downloads 6e85c2a1c295/src / bpio-fg-6e85c2a1c295/build- osx-faire - check-build-system CMakeFiles / Makefile.cmake 0
"/ Applications / CMake 2.8-11.app/Contents/bin / cmake "-E cmake_progress_start / Users / cmdcirdec / Downloads / bpio-fg-6e85c2a1c295/build- osx-make/CMakeFiles / Users / cmdcirdec / Downloads / bpio-fg-6e85c2a1c295/build- osx-make/CMakeFiles/progress. marques
make-f CMakeFiles/Makefile2 tout
make-f fg / CMakeFiles / fg.dir / build. font fg / CMakeFiles / fg.dir / dépendent
cd / Users / cmdcirdec / Downloads / bpio-fg-6e85c2a1c295/build- osx-make && "/ Applications / CMake 2.8-11.app/Contents/bin/cmake"-E cmake_depends "Unix Makefiles" / Users / cmdcirdec / Downloads / bpio-fg-6e85c2a1c295/src / Users / cmdcirdec / Downloads / BPIO-fg-6e85c2a1c295 / src / fg / Users / cmdcirdec / Downloads / bpio-fg-6e85c2a1c295/build- osx-Marque / Users / cmdcirdec / Downloads / bpio-fg-6e85c2a1c295/build- osx-make/fg / Users / cmdcirdec / Downloads / BPIO -fg-6e85c2a1c295/build- osx-make/fg/CMakeFiles/fg.dir / DependInfo.cmake - color =
. make-f fg / CMakeFiles / fg.dir / build font fg / CMakeFiles / fg.dir / build
" / Applications / CMake 2.8-11.app/Contents/bin/cmake "-E cmake_progress_report / Users / cmdcirdec / Downloads / bpio-fg-6e85c2a1c295/build- osx-make/CMakeFiles 2
[1%] Building objet CXX fg / CMakeFiles . / fg.dir / Les liaisons cpp.o
cd / Users / cmdcirdec / Downloads / bpio-fg-6e85c2a1c295/build- && osx-make/fg / usr / bin / g + +-arch x86_64-Xarch_x86_64-O3-D GLEW_STATIC; - O3-D -I/Developer/Applications GLEW_STATIC / augmenter / include / -I/Users/cmdcirdec/Downloads bpio-fg-6e85c2a1c295/src / .. / inclure -I/Users/cmdcirdec/Downloads / BPIO-fg-6e85c2a1c295 / src / .. / include / vcg -I/Users/cmdcirdec/Downloads / bpio-fg-6e85c2a1c295/src / .. / include / lua -I/Users/cmdcirdec/Downloads / bpio-fg-6e85c2a1c295/build- osx- faire -I/Users/cmdcirdec/Downloads / bpio-fg-6e85c2a1c295/src-o CMakeFiles / fg.dir / fixations. cpp.o-C / Users / cmdcirdec / Downloads / bpio-fg-6e85c2a1c295/src/fg / fixations . cpp
i686-apple-darwin11-LLVM-g + + - 4.2: aucun des fichiers d'entrée
/ bin / sh:-O3: command not found
make [2]: *** [fg / CMakeFiles / fg.dir / bindings.cpp.o ] Erreur 127
make [1]: *** [fg / CMakeFiles / fg.dir / all] Erreur 2
make: *** [all] Erreur 2


l'exécution de la ligne de commande sans "-O3-D GLEW_STATIC"
macbook-pro-de-cedric: build- osx-faire cmdcirdec $ cd / Users / cmdcirdec / Downloads / bpio-fg-6e85c2a1c295/build- && osx-make/fg / usr / bin / g + +-arch x86_64-Xarch_x86_64-O3 -D -I/Developer/Applications GLEW_STATIC / augmenter / include / -I/Users/cmdcirdec/Downloads bpio-fg-6e85c2a1c295/src / .. / inclure -I/Users/cmdcirdec/Downloads / bpio-fg-6e85c2a1c295/src / .. / include / vcg -I/Users/cmdcirdec/Downloads / bpio-fg-6e85c2a1c295/src / .. / include / lua -I/Users/cmdcirdec/Downloads / bpio-fg-6e85c2a1c295/build- osx-faire -I/Users/cmdcirdec/Downloads / bpio-fg-6e85c2a1c295/src-o CMakeFiles / fg.dir / fixations. cpp.o-C / Users / cmdcirdec / Downloads / bpio-fg-6e85c2a1c295/src/fg / fixations. cpp
macbook-pro-de-cedric: fg cmdcirdec $ 

Le mardi 3 septembre 2013 01:00:40 UTC +2, Ben a écrit:
Salut Cedric, merci pour regarder Fugu!

Ça fait un moment que je travaillais sur ce point, et pour être honnête, je n'ai aucune idée. Voici quelques hypothèses:
- Activer le mode verbose à apporter au texte;
- Utilisation gcc, pas clang, ou
- Il suffit de télécharger le programme pré-compilé à partir de http://bp.io/fugu/old/

Désolé je ne pouvais pas être plus utile!
B



Le 3 Septembre 2013 01:14, Cédric Petitcuenot < petitc ... @ gmail.com > a écrit:
Bonjour,

Je suis en train d'essayer de compiler fugu sur mon mac:

La version mac:
CMake 2.8 (dernière version)
QT 4.8.5

c'est ce que je reçois quand j'exécute le script. / Osx-build.sh maquillage

macbook-pro-de-cedric: BPIO-fg-. 6e85c2a1c295 cmdcirdec $ / osx faire-build.sh- 
projet Makefile du bâtiment ...
- trouvé OpenGL: / System / Library / Frameworks /Ope nGL.framework  
- version Boost: 1.54.0
- trouvé les bibliothèques suivantes Boost:
- système
- système de fichiers
- GLUT trouvés:-cadre GLUT  
- Recherche Q_WS_X11
- Recherche Q_WS_X11 - introuvable
- Recherche pour Q_WS_WIN
- Recherche Q_WS_WIN - introuvable
- Recherche Q_WS_QWS
- Envie d'Q_WS_QWS - Not Found
- Recherche Q_WS_MAC
- Envie d'Q_WS_MAC - Not Found
- Trouvé Qt4: / usr / bin / qmake (version trouvé "4.8.5") 
- Configuration de fait
- Génération faites
- fichiers de construction ont été écrits à: / Users / cmdcirdec / Downloads /BPI o-fg-6e85c2a1c295/build-osx- faire
Terminé!


Ensuite, je vais dans le dossier build-osx-faire
Voici ce que je fais je reçois à installer:
macbook-pro-de-cedric: build-OS x-faire cmdcirdec $ make install
Numérisation dépendances de cible fg
[1%] Building objet CXX fg / CMakeFiles / fg.dir / armature.cpp.o
clang: Erreur: aucun fichier d'entrée
/ bin / sh:-O3: command not found
make [2]: *** [fg / CMakeFiles / fg.dir /armature . cpp.o] Erreur 127
make [1]: *** [fg / CMakeFiles / fg.dir / all] Erreur 2
make: *** [all] Erreur 2

Je ne comprends pas pourquoi cela ne fonctionne pas. Ai-je oublié quelque chose?

J'ai pris le code tel qu'il est sur les dépôts.
Pouvez-vous me guider. dites-moi comment vous vous faites.
merci d'avance pour votre réponse

-
Vous recevez ce message car vous êtes abonné au groupe groupe "fugu" Google.
Pour vous désabonner de ce groupe et cesser de recevoir des e-mails à partir de cela, envoyez un courriel à fugu_app + u ... @googlegroups.com .
Pour plus d'options, visitez https://groups.google.com/Grou ps / opt_out .

-
Vous recevez ce message car vous êtes abonné au groupe groupe "fugu" Google.
Pour vous désabonner de ce groupe et cesser de recevoir des e-mails à partir de cela, envoyez un courriel à fugu_app + unsubscribe @ googlegroups.com .

Pour plus d'options, visitez https://groups.google.com/ groupes / opt_out .

-
Vous recevez ce message car vous êtes abonné à un sujet dans le Groups groupe "fugu" Google.
Pour vous désabonner de ce sujet, visitez le site https://groups.google.com/d/ topic/fugu_app/7g_txOFd0gc / désinscrire .
Pour vous désabonner de ce groupe et tous ses sujets, envoyez un courriel à fugu_app + u ... @ googlegroups.com .
Pour plus d'options, visitez https://groups.google.com/ groupes / opt_out .


-
. Vous recevez ce message car vous êtes abonné au groupe groupe "fugu" Google
Pour vous désabonner de ce groupe et cesser de recevoir des e-mails à partir de cela, envoyez un courriel à fugu_app + u ... @ googlegroups.com .
Pour plus d'options, visitez https://groups.google.com/ groupes / opt_out .

Message has been deleted

Cédric Petitcuenot

unread,
Sep 5, 2013, 7:06:09 AM9/5/13
to fugu...@googlegroups.com
I also corrected the error for SSAO not walk under mac.

see below:

//in Apple if glew.h is include not necéssary include QtOpenGl. If QtOpenGl include error on some function that will not be set correctly as glActiveTexture
//By doing this may have suddenly activate ENABLE_SSAO.
#ifndef _APPLE
#include <QtOpenGL>
#endif

Benjamin Porter

unread,
Sep 5, 2013, 6:50:30 PM9/5/13
to fugu...@googlegroups.com
Hi Cédric, 

I built the mac version of fugu in haste, disabling sections of the code that didn't compile at the time. And as a result the mac version has a few things missing. Looking at those bits of code I'm not sure why they work on Windows and not on OSX, but I'm happy for you to go and change anything that doesn't work and then send a pull request. Thanks.

Ben


2013/9/5 Cédric Petitcuenot <petitc...@gmail.com>

Oliver Brupbacher

unread,
May 4, 2014, 7:04:29 AM5/4/14
to fugu...@googlegroups.com

Hi Cédric, i tried to install the release from the fugu website (OSX v 0.2.1) and it failed on start ... failed finding some libraries (i installed these with 'brew install') even after that it failed starting.
I decided then to download the git repository and compile from scratch, same there 

I get loads of errors when i do the make install ... 

extract of the erros_____________________________________

/usr/include/assert.h:92:9: note: macro 'assert' defined here

#define assert(e) \

        ^

fatal error: too many errors emitted, stopping now [-ferror-limit=]

1 warning and 20 errors generated.

make[2]: *** [fg/CMakeFiles/fg.dir/armature.cpp.o] Error 1

make[1]: *** [fg/CMakeFiles/fg.dir/all] Error 2
make: *** [all] Error 2

________________________________________________________

any idea what needs to be done to get this up and running?

cheers,
Oliver

Moritz Moeller

unread,
May 4, 2014, 7:19:10 AM5/4/14
to fugu...@googlegroups.com
Cédric,

is there a repo with those patches? I'd like to see Fugu coming back to
life as well on Mac and could donate some time.

.mm

Ben

unread,
May 6, 2014, 12:43:02 AM5/6/14
to fugu...@googlegroups.com
Hey guys, https://bitbucket.org/bpio/fg has the latest code including Cédric's patches.

Personally, I wouldn't bother with fugu anymore. It was a fun experiment, but has many problems. I imagine a modern version could be built quite quickly in something like Unity, using C# for growth scripts and Unity's engine to display the model. Alternatively a javascript + three.js version would be awesome.

If only I had the time.. :P

Cheers,
Ben

Moritz Moeller

unread,
May 6, 2014, 5:27:54 AM5/6/14
to fugu...@googlegroups.com
On 06/05/14 06:43, Ben wrote:
> Personally, I wouldn't bother with fugu anymore. It was a fun
> experiment, but has many problems. I imagine a modern version could be
> built quite quickly in something like Unity, using C# for growth scripts
> and Unity's engine to display the model. Alternatively a javascript +
> three.js version would be awesome.

I would rather suggest to add fugu's fucntionalty to something like
polycode (http://polycode.org/) or make it a lib for processing (similar
to hemesh).

.mm

RJ

unread,
Apr 16, 2015, 8:46:00 AM4/16/15
to fugu...@googlegroups.com
I'm curious if anyone has taken this project in another direction like Unity or Polycode?

Ben, I really like the possibilities available in mesh generation here and would love to take on the project in a new form. If anyone else wants to team up to tackle porting this to something else, send me a message. 

Ben

unread,
Apr 18, 2015, 5:20:45 AM4/18/15
to fugu...@googlegroups.com
I don't think so, but with Unity 5 just being released now is a good time to build a generative form library for it.

ps. I made a weird thing today with Unity 5, not generative but has a little blobby form in it that's reminiscent of fugu or my older work: eigenbom.itch.io/wyrm
Reply all
Reply to author
Forward
0 new messages