New compiled Modules

(V Luciano) #1

Even when i compile new Modules and i try to run it on the Rack, it crashes with the Log Warn: Symbol not found, but modificated old Modules runs well.

I try to find Solutions since months in vain.

Could please Someone help me?

Thanks in Advance.

(Nik Jewell) #2

Are you compiling against the same version of Rack that you are running it on?

(V Luciano) #3

i use the latest Branch of Rack 0.6 to compile and the latest Rack-app (osX) 0.6.2c to run

(David O'Rourke) #4

Is there more detail in the error about which symbol is not found?

(V Luciano) #5

of course…

[0.009 warn src/plugin.cpp:90] Failed to load library /Users/caligulaplus/Documents/Rack/plugins/Electronical/plugin.dylib: dlopen(/Users/caligulaplus/Documents/Rack/plugins/Electronical/plugin.dylib, 2): Symbol not found: __ZTV8Resistor
Referenced from: /Users/caligulaplus/Documents/Rack/plugins/Electronical/plugin.dylib
Expected in: flat namespace
in /Users/caligulaplus/Documents/Rack/plugins/Electronical/plugin.dylib

(Antonio Tuzzi) #6

are you compiling using a makefile ?
are you adding the src from directory where the “Resistor” file is ? :sunglasses:

(V Luciano) #7


  1. cd Rack
  2. cd plugins
  3. cd Electronical
  4. make

(V Luciano) #8

can Someone check the Files?

(Antonio Tuzzi) #9

give me the github address

(V Luciano) #10

i’m a noob and can’t manage github.:tired_face:

(Nik Jewell) #11

Are these your own files?

(V Luciano) #12


(Nik Jewell) #13

Can you put them anywhere that we can download them?

(Nik Jewell) #14

I hasten to add that I just occasionally compile Mac versions of modules for people and report problems with the same to their issue trackers. I can’t fix any problems with your code !

(V Luciano) #15

(V Luciano) #16

The Module don’t make Sense and it is just to solve the issues.

(Nik Jewell) #17

I’m afraid I can only confirm the problem:

[0.411 warn src/plugin.cpp:90] Failed to load library /Users/nik/Documents/Rack/plugins/Electronical/plugin.dylib: dlopen(/Users/nik/Documents/Rack/plugins/Electronical/plugin.dylib, 2): Symbol not found: __ZTV8Resistor
Referenced from: /Users/nik/Documents/Rack/plugins/Electronical/plugin.dylib
Expected in: flat namespace
in /Users/nik/Documents/Rack/plugins/Electronical/plugin.dylib

It built with:

Niks-MacBook-Pro:Electronical nik$ make
c++ -std=c++11 -stdlib=libc++ -DSLUG=Electronical -fPIC -I…/…/include -I…/…/dep/include -DVERSION=0.6.2c -MMD -MP -g -O3 -march=nocona -ffast-math -fno-finite-math-only -Wall -Wextra -Wno-unused-parameter -DARCH_MAC -mmacosx-version-min=10.7 -c -o build/src/Electronical.cpp.o src/Electronical.cpp
c++ -std=c++11 -stdlib=libc++ -DSLUG=Electronical -fPIC -I…/…/include -I…/…/dep/include -DVERSION=0.6.2c -MMD -MP -g -O3 -march=nocona -ffast-math -fno-finite-math-only -Wall -Wextra -Wno-unused-parameter -DARCH_MAC -mmacosx-version-min=10.7 -c -o build/src/Resistor.cpp.o src/Resistor.cpp
c++ -o plugin.dylib build/src/Electronical.cpp.o build/src/Resistor.cpp.o -shared -undefined dynamic_lookup -stdlib=libc++ -mmacosx-version-min=10.7
Niks-MacBook-Pro:Electronical nik$ make install
rm -rf dist
mkdir -p dist/Electronical
cp plugin.dylib dist/Electronical/
strip -S dist/Electronical/plugin.dylib
cp -R LICENSE.txt res dist/Electronical/
cd dist && zip -5 -r Electronical
adding: Electronical/ (stored 0%)
adding: Electronical/res/ (stored 0%)
adding: Electronical/res/.DS_Store (deflated 86%)
adding: Electronical/res/Resistors/ (stored 0%)
adding: Electronical/res/Resistors/1R2.svg (deflated 67%)
adding: Electronical/res/Jack.svg (deflated 65%)
adding: Electronical/plugin.dylib (deflated 76%)
adding: Electronical/LICENSE.txt (deflated 60%)
cp dist/ /Users/nik/Documents/Rack/plugins/

Hope somebody else can help?

BTW that share site tried to get me to download a dodgy flash player.

(V Luciano) #18

Thank You Nik, for the effort

(Nik Jewell) #19

Wish I could help more. Absolutely no hits on Google for ZTV8 Resistor.

(V Luciano) #20

BTW, it would be great if someone can save a lot of time with a tutorial for github