Comments (4)
from ifopt.
Hi alex,
Thanks for raising this issue. Can you please try to use
add_compile_options(-std=c++11 -fPIC)
here:
ifopt/ifopt_snopt/CMakeLists.txt
Line 4 in fbf7acd
and removing the STATIC keywords you added below in the file.
Please let me know if this works.
Best
Alex
from ifopt.
I attempted that fix, but the problem persists. Here is the output:
'''
Linking CXX shared library /home/alex/gitprojects/untrusted_maps_planner/catkin_ws/devel/lib/libifopt_snopt.so
/usr/bin/ld: /home/alex/software/snopt_lib/lib/libsnopt7_cpp.a(snoptProblem.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/home/alex/software/snopt_lib/lib/libsnopt7_cpp.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [/home/alex/gitprojects/untrusted_maps_planner/catkin_ws/devel/lib/libifopt_snopt.so] Error 1
make[1]: *** [ifopt/ifopt_snopt/CMakeFiles/ifopt_snopt.dir/all] Error 2
make: *** [all] Error 2
*** Failure: Exit code 2 ***
'''
The relevant CMakeLists look like this:
cmake_minimum_required(VERSION 2.8.3)
project(ifopt_snopt)
add_compile_options(-std=c++11 -fPIC)
find_package(catkin REQUIRED)
find_package(ifopt_core REQUIRED)
....
...
if(${SNOPT76})
add_library(${PROJECT_NAME} src/snopt76_adapter.cc)
else()
add_library(${PROJECT_NAME} src/snopt_adapter.cc)
endif()
from ifopt.
Hi @A-I-Ivanov
I just added quite some improvements (see #17) and would be curious if this fixes your issue. If you find time, could you kindly let me know? Thanks :)
from ifopt.
Related Issues (20)
- How to setup a problem where some constraints depend on a single variable_set and others depend on a series of variable sets
- Unit tests are broken HOT 1
- ROS 2 Foxy Release? HOT 10
- Question about warm starting HOT 3
- warm start is not supported?
- Request release of latest on ROS Noetic? HOT 3
- The EvaluateCostFunctionGradient numerical difference produces incorrect gradient when using squared cost. HOT 3
- Project status
- ifopt-config.cmake error on Windows HOT 1
- defining equaility constraints
- errors with Snopt 7.7 HOT 2
- Get Iterations History HOT 1
- Internal representation of optimization variables HOT 8
- GetBounds() violation when both boundaries are negative HOT 3
- [Q] Weak solver performance HOT 8
- Using AD Libraries HOT 1
- Is IFOPT thread-safe?
- bad-free error when building with memory sanitizer flag
- Disabling solution summary. HOT 1
- I have add a GetHession function to this library. Does anyone know how I should submit to the library owner HOT 2
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 ifopt.