openframeworks / openframeworks/openFrameworks

local addons errors, make, osx

Open
#4,763 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

I try to use local addons in osx, using the makefile.
I have the following directory structure.

Thomass-MacBook-Pro-4:networkTcpClientExample thomasgeissl$ pwd
/Users/thomasgeissl/programming/of/ofTG/apps/localAddonsTest/networkTcpClientExample
Thomass-MacBook-Pro-4:networkTcpClientExample thomasgeissl$ ls 
Makefile    addons.make bin     local_addons    obj     src
Thomass-MacBook-Pro-4:networkTcpClientExample thomasgeissl$ cat addons.make 
./local_addons/ofxNetwork
Thomass-MacBook-Pro-4:networkTcpClientExample thomasgeissl$ ls local_addons/
ofxNetwork

when I try to compile, I get duplicate symbols errors:

duplicate symbol __ZN12ofxTCPClient10receiveRawEv in:
    obj/osx/Release/local_addons/ofxNetwork/src/ofxTCPClient.o
    /Users/thomasgeissl/programming/of/ofTG/apps/localAddonsTest/networkTcpClientExample/obj/osx/Release/addons/ofxNetwork/src/ofxTCPClient.o

This happens also when i try to compile opencvExample with ofxOpenCv included, I havent tested others. Trying to compile oscReceiveExample with ofxOsc locally, it includes ofxOsc/libs/oscpack/src/ip/win32/*

/Users/thomasgeissl/programming/of/ofTG/apps/localAddonsTest/oscReceiveExample/local_addons/ofxOsc/libs/oscpack/src/ip/win32/NetworkingUtils.cpp:39:10: fatal error: 'winsock2.h' file not found
#include <winsock2.h>   // this must come first to prevent errors with MSVC7

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the example Makefile and addons.make, then trace how local_addons/ofxNetwork and the standard addons/ofxNetwork paths both enter the build. Compare the ofxOsc source selected on macOS, including the reported oscpack win32 path. Done means the examples build without duplicate symbols or the Windows-only winsock2.h error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.