URGENT HELP NEEDED! cant compile any exported gen~ projects to AU

James's icon

no matter which project i try and export when i go to build i get the same linking error

Ld /Users/MacPro/Library/Developer/Xcode/DerivedData/Tremolo-fjxegdioawgbxbbqwicuygfdbhzz/Build/Products/Debug/Tremolo.component/Contents/MacOS/Tremolo normal x86_64
cd "/Users/MacPro/Desktop/my tremolo/Tremolo"
export MACOSX_DEPLOYMENT_TARGET=10.7
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -L/Users/MacPro/Library/Developer/Xcode/DerivedData/Tremolo-fjxegdioawgbxbbqwicuygfdbhzz/Build/Products/Debug -F/Users/MacPro/Library/Developer/Xcode/DerivedData/Tremolo-fjxegdioawgbxbbqwicuygfdbhzz/Build/Products/Debug -filelist /Users/MacPro/Library/Developer/Xcode/DerivedData/Tremolo-fjxegdioawgbxbbqwicuygfdbhzz/Build/Intermediates/Tremolo.build/Debug/Tremolo.build/Objects-normal/x86_64/Tremolo.LinkFileList -mmacosx-version-min=10.7 -stdlib=libc++ -framework AudioToolbox -framework AudioUnit -framework CoreServices -Xlinker -dependency_info -Xlinker /Users/MacPro/Library/Developer/Xcode/DerivedData/Tremolo-fjxegdioawgbxbbqwicuygfdbhzz/Build/Intermediates/Tremolo.build/Debug/Tremolo.build/Objects-normal/x86_64/Tremolo_dependency_info.dat -o /Users/MacPro/Library/Developer/Xcode/DerivedData/Tremolo-fjxegdioawgbxbbqwicuygfdbhzz/Build/Products/Debug/Tremolo.component/Contents/MacOS/Tremolo

duplicate symbol __Z13fastertanfulld in:
/Users/MacPro/Library/Developer/Xcode/DerivedData/Tremolo-fjxegdioawgbxbbqwicuygfdbhzz/Build/Intermediates/Tremolo.build/Debug/Tremolo.build/Objects-normal/x86_64/Tremolo-D923611984B3EC6D.o
/Users/MacPro/Library/Developer/Xcode/DerivedData/Tremolo-fjxegdioawgbxbbqwicuygfdbhzz/Build/Intermediates/Tremolo.build/Debug/Tremolo.build/Objects-normal/x86_64/gen_exported.o
duplicate symbol __Z13fastersinfulld in:
/Users/MacPro/Library/Developer/Xcode/DerivedData/Tremolo-fjxegdioawgbxbbqwicuygfdbhzz/Build/Intermediates/Tremolo.build/Debug/Tremolo.build/Objects-normal/x86_64/Tremolo-D923611984B3EC6D.o
/Users/MacPro/Library/Developer/Xcode/DerivedData/Tremolo-fjxegdioawgbxbbqwicuygfdbhzz/Build/Intermediates/Tremolo.build/Debug/Tremolo.build/Objects-normal/x86_64/gen_exported.o
duplicate symbol __Z13fastercosfulld in:
/Users/MacPro/Library/Developer/Xcode/DerivedData/Tremolo-fjxegdioawgbxbbqwicuygfdbhzz/Build/Intermediates/Tremolo.build/Debug/Tremolo.build/Objects-normal/x86_64/Tremolo-D923611984B3EC6D.o
/Users/MacPro/Library/Developer/Xcode/DerivedData/Tremolo-fjxegdioawgbxbbqwicuygfdbhzz/Build/Intermediates/Tremolo.build/Debug/Tremolo.build/Objects-normal/x86_64/gen_exported.o
duplicate symbol __Z9fasterexpd in:
/Users/MacPro/Library/Developer/Xcode/DerivedData/Tremolo-fjxegdioawgbxbbqwicuygfdbhzz/Build/Intermediates/Tremolo.build/Debug/Tremolo.build/Objects-normal/x86_64/Tremolo-D923611984B3EC6D.o
/Users/MacPro/Library/Developer/Xcode/DerivedData/Tremolo-fjxegdioawgbxbbqwicuygfdbhzz/Build/Intermediates/Tremolo.build/Debug/Tremolo.build/Objects-normal/x86_64/gen_exported.o
duplicate symbol __Z9fasterpowdd in:
/Users/MacPro/Library/Developer/Xcode/DerivedData/Tremolo-fjxegdioawgbxbbqwicuygfdbhzz/Build/Intermediates/Tremolo.build/Debug/Tremolo.build/Objects-normal/x86_64/Tremolo-D923611984B3EC6D.o
/Users/MacPro/Library/Developer/Xcode/DerivedData/Tremolo-fjxegdioawgbxbbqwicuygfdbhzz/Build/Intermediates/Tremolo.build/Debug/Tremolo.build/Objects-normal/x86_64/gen_exported.o
ld: 5 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
i can compile the example xcode projects fine, and as an example i will include the example project with my replicated max patch and resulting erroneous Xcode project along with the original unmodified example project and maxpatch.

Link:-

so i have seen a few people who have the same issue as i do and basically i thought it would be a good idea to team up with you to try and get this solved. if i find anything useful i will post on here and you are welcome to email me at

jt346@kent.ac.uk

i have a lecturer from the computer sciences faculty examining the problem the only issue is he is not familiar with Max so im not sure how that will go. Apart from that it is very important to me i get this solved soon as i am basing my last year of my degree on this and i do not have any way of solving it and therefore building anything at present which is worrying me greatly. i will be continuously looking for the solution and aggressively researching to solve this so i hope if we can work together we can reach the goal a little sooner.

please let me know if you are up for the challenge and the culmination of research.

many thanks
james

Jan M's icon

I am interested in the solution as well - don't have the answer. I ran into this in the past. Currently I am not actively looking into AU export, but i will in the (hopefully near) future.
Would be great if @ANDREW BENSON could pitch in. I believe he wrote the WIKI-tutorial.

Graham Wakefield's icon

I see the problem, and it will be fixed in the next update. In the meantime, you can use the attached genlib_ops.h in place of the one that gen~ is exporting, it should solve your linker errors.

(The reason is that some functions recently added to the header were not marked inline, and that means that if you have more than one source file #including genlib_ops.h, those symbols would get duplicated, causing a linker error. Marking the functions as inline resolves this.)

Jan M's icon

Thanks Graham, I can't see any attachment though.... :(

James's icon

hi @grahamwakefield could you please send over the file you mentioned i am very eager to get my projects to work :)

many thanks for looking into this issue for us. i eagerly await your response and the update :)

james

Graham Wakefield's icon

Weird -- thought that was already uploaded. Trying again.

Graham Wakefield's icon

Oh, this type of file is not permitted for security reasons. OK, here it is as a zip.

genlib_ops.h.zip
zip
James's icon

many thanks for your help! i have finally built a gain pluin! small steps!

but i am very grateful for your help in getting me over this issue. as i mentioned i am doing this for my final university project so it is very important to me.

if there is a bug reference number i could take for this issue it would help me show in my logbook that the issue was not my code :)
this will help get me a better grade and give me something to tell the tutor about why i have not progressed a lot recently :S

many thanks once again
james

Graham Wakefield's icon

Unfortunately our ticket system is not (yet) public. But you can show this forum thread to your tutor if that helps!

James's icon

thankyou again as this has made it possible to compile. as usual im out of the fryingpan and into the fryer! do you think you could help with this issue?

i want to make a simple pan crossfader for L+R but it is not going so good. because i am trying to get both channels to be effected by one variable/slider i cant seem to get it to compile correctly. it works fine in Max but when i compile it crashes logic and in live it loads but has no output. it seems as if the expr objects are not recieving the param values even though they do when runnning the patch in max. i have tried it many different ways some that alowed one side to work correctly but did not work for both channels and this version is the cleanest in max but has no sound at all. i have tried so much im wondering if i have run into another bug?

here is my code if you could take a look i would be hugely grateful:-

Max Patch
Copy patch and select New From Clipboard in Max.
Graham Wakefield's icon

Please post patchers in copy compressed form (edit->copy compressed).

BTW I'm guessing that your 2nd expr probably wants to be sin, not cos, which would give you an equal power pan if you get rid of the [!- 1].

I have no idea about the plugin crash; the generated code looks perfectly fine.

James's icon

if i remove the !- and add sin to that expr it still has serious issues. it crashes logic every time and in live it loads but behaves very strangely. if you would, could you test the .component yourself and see what you think is happening?

STPN.component.zip
zip
James's icon

also iv just noticed using sin and no !- is causing some phase issues when the slider is in the centre range (this is pre-export in max).

AxiomCrux's icon

After using this tutorial and swapping out the GENLib file, the Xcode project does compile for me, but when I try to open the resulting audio unit back inside max vst~ object it says "Chopper.component: no format AudioUnit exists" in the max console window. I am on 10.10.3 Yosemite and the very latest Max 7.03 and Xcode 6.3.1