Pagmo2 2.19 cannot build #546
Replies: 1 comment 1 reply
-
Sorry, My bad. It turns out that I needed to be root to build. Thanks, Phil |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm attempting to build Pagmo 2.19 on Ubuntu 22.04. I have NLOPT installed on my system but apparently after downloading the source, I am not able to build the code. I get an error that NLOPT was not found.
Here is my command line build:
##################
viking@hydra:/opt/pagmosource/pagmo2-2.19.0/build$ cmake ../ -DPAGMO_BUILD_TESTS=ON -DPAGMO_BUILD_TUTORIALS=ON -DPAGMO_WITH_EIGEN3=ON -DPAGMO_WITH_NLOPT=ON -DPAGMO_WITH_IPOPT=ON -DCMAKE_INSTALL_PREFIX=/opt/pagmo
-- System name: Linux
-- The fork_island UDI will be available.
-- The C++ compiler ID is: GNU
-- YACMA autodetected C++ flags: -fdiagnostics-color=auto;-ftemplate-depth=1024;-fdiagnostics-show-template-tree;-Wno-attributes
-- YACMA autodetected C++ debug flags: -Waddress-of-packed-member;-Wall;-Wextra;-Wnon-virtual-dtor;-Wlogical-op;-Wconversion;-Wdeprecated;-Wold-style-cast;-Wdisabled-optimization;-ftemplate-backtrace-limit=0;-fstack-protector-all;-Wodr;-Wsuggest-final-types;-Wsuggest-final-methods;-Wsuggest-override;-Wshift-negative-value;-Wshift-overflow=2;-Wduplicated-cond;-Wnull-dereference;-Wrestrict;-Waligned-new;-Wcast-align=strict;-Wno-maybe-uninitialized;-Wmismatched-tags;-Wredundant-tags
-- Thread library:
-- POSIX threads detected.
-- POSIX threads affinity extensions detected.
-- The 'thread_local' keyword is supported.
-- Library installation directory: lib
-- TBB found using config mode.
-- Requested IPOPT components: header;libipopt
-- Creating the 'pagmo::IPOPT::header' imported target.
-- Path to the ipopt headers: /usr/include/coin
-- Creating the 'pagmo::IPOPT::libipopt' imported target.
-- Path to libipopt: /usr/lib/libipopt.so
-- Required Boost libraries: serialization;unit_test_framework
-- Detected Boost version: 1.74.0
-- Boost include dirs: /usr/include
-- Configuring done
CMake Error at CMakeLists.txt:394 (target_link_libraries):
Target "pagmo" links to:
but the target was not found. Possible reasons include:
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
########################################################################
oddly, Pagmo2 2.18 built correctly with NLOPT a few months ago on this same system.
Any ideas would be very welcome.
Thanks in advance,
Phil
Beta Was this translation helpful? Give feedback.
All reactions