Skip to content
Snippets Groups Projects
Commit 81a225c5 authored by Andre Offringa's avatar Andre Offringa Committed by Jakob Maljaars
Browse files

Link no -Wl,--no-undefined

This uncovered some missing library-linkings to HDF5, which are solved as well.
parent 0e68e2cb
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,8 @@ cmake_policy(SET CMP0074 NEW)
endif()
# Set compile options
add_compile_options(-std=c++11 "${OpenMP_CXX_FLAGS}" -Wall -Wl,--no-undefined)
add_compile_options(-std=c++11 "${OpenMP_CXX_FLAGS}" -Wall)
string(APPEND CMAKE_SHARED_LINKER_FLAGS " -Wl,--no-undefined")
if (NOT CMAKE_BUILD_TYPE MATCHES Debug)
add_compile_options(-DNDEBUG)
......
......@@ -33,8 +33,8 @@ add_library(everybeam SHARED
)
target_include_directories(everybeam PUBLIC ${CASACORE_INCLUDE_DIR})
target_link_libraries(everybeam PUBLIC ${CASACORE_LIBRARIES})
target_link_libraries(everybeam PUBLIC hamaker lobes oskar)
target_link_libraries(everybeam PUBLIC ${CASACORE_LIBRARIES} ${HDF5_LIBRARIES})
install (
TARGETS everybeam
......
......@@ -5,6 +5,7 @@ include_directories(${CMAKE_BINARY_DIR})
add_library(hamaker SHARED
hamakerelementresponse.cc
hamakercoeff.cc)
target_link_libraries(hamaker PUBLIC ${HDF5_LIBRARIES})
string(TOLOWER ${CMAKE_PROJECT_NAME} projectname )
set_target_properties(hamaker PROPERTIES LIBRARY_OUTPUT_NAME "${projectname}-hamaker")
......
......@@ -34,6 +34,6 @@ int main(int argc, char** argv){
}
}
const long unsigned leshape [] = {(long unsigned int) N, N, 2, 2};
const long unsigned leshape [] = {(long unsigned int) N, (long unsigned int) N, 2, 2};
npy::SaveArrayAsNumpy("response.npy", false, 4, leshape, result);
}
......@@ -82,9 +82,6 @@ void run(everybeam::ElementResponseModel elementResponseModel, double frequency,
// Print frequency
std::clog << "Frequency: " << frequency * 1e-6 << " Mhz" << std::endl;
// Set number of stations to 1
size_t nr_stations = 1;
// Read number of timesteps
size_t nr_timesteps = ms.nrow();
std::clog << "Number of timesteps: " << nr_timesteps << std::endl;
......@@ -112,7 +109,7 @@ void run(everybeam::ElementResponseModel elementResponseModel, double frequency,
std::clog << "DEC: " << zenithDec << std::endl;
// Imaging parameters
float image_size = M_PI; // in radians
// float image_size = M_PI; // in radians
size_t subgrid_size = 32; // in pixels
// Compute element beams from theta, phi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment