Comments (6)
What are you using as a linker (echo $LD)?
from ev3dev-lang-cpp.
I am letting arm-linux-gnueabi-g++
select the linker. I have updated the issue and included my makefile. However, I did not set the environment variable $LD.
from ev3dev-lang-cpp.
I can not test this right now, but in the meanwhile the following might work:
${PROGNAME}: brickCollector.cpp brickCollector.h ev3dev.cpp ev3dev.h
$(CC) $(LDFLAGS) $(CFLAGS) brickCollector.cpp ev3dev.cpp
from ev3dev-lang-cpp.
I would be most graceful if you could tell me the compiler being used for compiling your library.
I have tested the library with Sourcery codebench crosscompiler (available as sourcery-codebench-arm-none-linux-gnueabi
package in Arch linux), and also I think the Using Docker to Cross-Compile worked for me as well.
from ev3dev-lang-cpp.
I fixed it by adding the following two lines to the CMakeLists.txt file:
set (CMAKE_C_COMPILER arm-linux-gnueabi-gcc)
set (CMAKE_CXX_COMPILER arm-linux-gnueabi-g++)
I know it's not the optimal solution, but it works.
from ev3dev-lang-cpp.
Ah, so you were building the library with cmake (with normal compiler), and then linking it with cross-compiler. That makes sense now.
I fixed it by adding the following two lines to the CMakeLists.txt file:
You can achieve the same result with the following:
cd ev3dev-lang-cpp/build
rm -rf *
CC=arm-linux-gnueabi-gcc CXX=arm-linux-gnueabi-g++ cmake ..
make
cmake will pick the environment variables and cache those.
from ev3dev-lang-cpp.
Related Issues (20)
- Cannot compile library on brick HOT 3
- Cross Compiling on Windows command not working HOT 7
- ev3dev-lang-cpp ready for ev3dev-stretch ? HOT 5
- Access file as quickly as possible HOT 19
- Problem to run a simple motor program HOT 2
- CMakeLists.txt forces C++11, breaking C++14 projects wanting to include it HOT 2
- Problem with pthread_xxx code (version GLIBCXX_3.4.21 not found) HOT 4
- What i should do with these files? HOT 1
- Mindstorms freezes while doing apt-get update HOT 2
- Connecting two large EV3 motors HOT 14
- Would you be interested in working UTs which could be run on host system? HOT 1
- What happened to Carlson Minot? HOT 4
- can't install gcc-5/unstable
- Python bindings seem to be faster than CPP for `infrared_sensor.proximity()` or `touch_sensor.is_pressed()` HOT 4
- Multiple definitions of symbols when linking HOT 1
- small question about polarity and speed_sp values on a motor HOT 1
- Support for bluetooth connections?
- Step 7, installing the librarys, doesnt work anymore. HOT 3
- Step 7 gcc compiler doesnt exist HOT 12
- Installation unter Windows 11 schlägt fehlt, Package kann nicht gefunden werden
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ev3dev-lang-cpp.