c3d / build

A simple makefile-based build system that I split from ELFE / XL
GNU General Public License v3.0
76 stars 8 forks source link

libtool: error: unrecognised option: '-no_warning_for_no_symbols' #8

Open revmischa opened 7 years ago

revmischa commented 7 years ago
unionsq~/dev/projectm* build € make -C src/libprojectM/

****************************************************************
* The BUILDENV environment variable is not set
* You will accelerate builds by setting it as appropriate for
* your system. The best guess is BUILDENV=macosx-clang
* Attempting to build opt with macosx-clang DIR=/src/libprojectM
****************************************************************

[BEGIN]              opt macosx-clang in [top]/src/libprojectM   
[COMPILE  1/14]      projectM.cpp      
In file included from projectM.cpp:23:
Renderer/RenderItemMergeFunction.hpp:122:74: warning: expression result unused [-Wunused-value]
        target.imageUrl = (ratio > 0.5) ? lhs->imageUrl : rhs->imageUrl, ratio;

....

[BEGIN]              debug macosx-clang in [top]/src/libprojectM   
libtool -no_warning_for_no_symbols -static      ../../build/objects/macosx-clang/debug/src/libprojectM/projectM.cpp.o ../../build/objects/macosx-clang/debug/src/libprojectM/PCM.cpp.o ../../build/objects/macosx-clang/debug/src/libprojectM/Preset.cpp.o ../../build/objects/macosx-clang/debug/src/libprojectM/fftsg.cpp.o ../../build/objects/macosx-clang/debug/src/libprojectM/KeyHandler.cpp.o ../../build/objects/macosx-clang/debug/src/libprojectM/timer.cpp.o ../../build/objects/macosx-clang/debug/src/libprojectM/wipemalloc.cpp.o ../../build/objects/macosx-clang/debug/src/libprojectM/PresetLoader.cpp.o ../../build/objects/macosx-clang/debug/src/libprojectM/PresetChooser.cpp.o ../../build/objects/macosx-clang/debug/src/libprojectM/PipelineMerger.cpp.o ../../build/objects/macosx-clang/debug/src/libprojectM/ConfigFile.cpp.o ../../build/objects/macosx-clang/debug/src/libprojectM/TimeKeeper.cpp.o ../../build/objects/macosx-clang/debug/src/libprojectM/PresetFactory.cpp.o ../../build/objects/macosx-clang/debug/src/libprojectM/PresetFactoryManager.cpp.o          -o ../../build/objects/macosx-clang/debug/libprojectM.a
Usage: /usr/local/bin/libtool [OPTION]... [MODE-ARG]...
Try 'libtool --help' for more information.
libtool:   error: unrecognised option: '-no_warning_for_no_symbols'
make[2]: *** [../../build/objects/macosx-clang/debug/libprojectM.a] Error 1
revmischa commented 7 years ago

I think my problem here is that I installed autotools, it wasn't using the system libtool. So I guess maybe you need to detect if it's using the OSX libtool or GNU libtool?

c3d commented 7 years ago

Thanks for the report. I'll take a look.

revmischa commented 7 years ago

I used https://gist.github.com/justinbellamy/2672db1c78f024f2d4fe I'm trying out build for projectM, it works pretty nicely. I'm not super clear on how I'm supposed to specify dependencies (libraries I depend on, especially if they're optional).

https://github.com/projectM-visualizer/projectm/compare/build was my first crack at it last night

For example, I'd like to specify -framework SDL2 if on OSX, or -lSDL2 if on linux. Or be able to detect (with pkgconfig) how to include if present. Is there any pkgconfig support?

c3d commented 6 years ago

On 18 Sep 2017, at 23:26, Mischa Spiegelmock notifications@github.com wrote:

I think my problem here is that I installed autotools, it wasn't using the system libtool. So I guess maybe you need to detect if it's using the OSX libtool or GNU libtool?

I believe this is done better on ‘make-it-quick’, where you can specify the GNU libtool on the command line with LIBTOOL=libtool. Give it a try.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

c3d commented 6 years ago

Hi

Preliminary note: the ‘build’ name was a bit too generic, so the project has moved to “make-it-quick” (MIQ), see https://github.com/c3d/make-it-quick.

On 19 Sep 2017, at 12:49, Mischa Spiegelmock notifications@github.com wrote:

I used https://gist.github.com/justinbellamy/2672db1c78f024f2d4fe I'm trying out build for projectM, it works pretty nicely. I'm not super clear on how I'm supposed to specify dependencies (libraries I depend on, especially if they're optional).

https://github.com/projectM-visualizer/projectm/compare/build was my first crack at it last night

For example, I'd like to specify -framework SDL2 if on OSX, or -lSDL2 if on linux. Or be able to detect (with pkgconfig) how to include if present. Is there any pkgconfig support?

MIQ does support pkg-config, just add something like

PKGCONFIGS= pixman-1 openssl?

This would configure with pixman-1 (necessary) and openssl (optional, notice the trailing ?).

You can also generate a .pc file by setting various variables, although this is not documented yet.# For pkg-config generation, you’d use something like:

PACKAGE_NAME=projectm
PACKAGE_VERSION=0.1
PACKAGE_DESCRIPTION=Insert your description here
PACKAGE_URL=https://...
PACKAGE_REQUIRES=
PACKAGE_BUGS=yourmail@your.org

Thanks, keep me posted on your progress… Christophe

JoeByte commented 4 years ago

i always get this problem, on mac OS libtool: error: unrecognised option: '-no_warning_for_no_symbols'

why don`t you fix it ? it was reported on 2017, and now is 2020

c3d commented 4 years ago

On 4 Aug 2020, at 05:55, Joe notifications@github.com wrote:

i always get this problem, on mac OS libtool: error: unrecognised option: '-no_warning_for_no_symbols'

why don`t you fix it ? it is report on 2017, and now is 2020

Because the project was renamed as “make-it-quick”, and the problem is fixed there (see comments above).

"build” is no longer maintained. See https://github.com/c3d/build

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or unsubscribe.