dustin / logic-pwm

PWM Analyzer for Saleae Logic
29 stars 15 forks source link

Fails to build on 64 bit linux #2

Open ngrash opened 7 years ago

ngrash commented 7 years ago

Running ./build_analyzer.py produces the following output:

Running on Linux
g++ -I"../include" -I"include" -O3 -w -c -fpic -std=c++11 -o"release/PWMSimulationDataGenerator.o" "source/PWMSimulationDataGenerator.cpp"
g++ -I"../include" -I"include" -O0 -w -c -fpic -g -std=c++11 -o"debug/PWMSimulationDataGenerator.o" "source/PWMSimulationDataGenerator.cpp"
g++ -I"../include" -I"include" -O3 -w -c -fpic -std=c++11 -o"release/PWMAnalyzerSettings.o" "source/PWMAnalyzerSettings.cpp"
g++ -I"../include" -I"include" -O0 -w -c -fpic -g -std=c++11 -o"debug/PWMAnalyzerSettings.o" "source/PWMAnalyzerSettings.cpp"
g++ -I"../include" -I"include" -O3 -w -c -fpic -std=c++11 -o"release/PWMAnalyzerResults.o" "source/PWMAnalyzerResults.cpp"
g++ -I"../include" -I"include" -O0 -w -c -fpic -g -std=c++11 -o"debug/PWMAnalyzerResults.o" "source/PWMAnalyzerResults.cpp"
g++ -I"../include" -I"include" -O3 -w -c -fpic -std=c++11 -o"release/PWMAnalyzer.o" "source/PWMAnalyzer.cpp"
g++ -I"../include" -I"include" -O0 -w -c -fpic -g -std=c++11 -o"debug/PWMAnalyzer.o" "source/PWMAnalyzer.cpp"
g++ -L"../lib" -L"lib" -lAnalyzer -shared -o"release/libPWMAnalyzer.so" release/PWMSimulationDataGenerator.o release/PWMAnalyzerSettings.o release/PWMAnalyzerResults.o release/PWMAnalyzer.o 
/usr/bin/ld: skipping incompatible lib/libAnalyzer.so when searching for -lAnalyzer
/usr/bin/ld: cannot find -lAnalyzer
collect2: error: ld returned 1 exit status
g++ -L"../lib" -L"lib" -lAnalyzer -shared -o"debug/libPWMAnalyzer.so" debug/PWMSimulationDataGenerator.o debug/PWMAnalyzerSettings.o debug/PWMAnalyzerResults.o debug/PWMAnalyzer.o 
/usr/bin/ld: skipping incompatible lib/libAnalyzer.so when searching for -lAnalyzer
/usr/bin/ld: cannot find -lAnalyzer
collect2: error: ld returned 1 exit status

A relevant PR will follow.

huberemanuel commented 5 years ago

This fix works, please merge to master