Ubuntu - compile .exe with .dll for Windows

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Ubuntu - compile .exe with .dll for Windows

zompa84
This post has NOT been accepted by the mailing list yet.
Hi,
to everybody. I'm a noob, and I'm not expert of compiling c++ code. I'm working on Ubuntu 13.10 starting from the exemple about Pairwise Incremental Registration.
I successfully compiled it on for Ubuntu using the following CMakeList.txt file:

cmake_minimum_required(VERSION 2.6 FATAL_ERROR)

project(tuto-pairwise)

find_package(PCL 1.4 REQUIRED)

include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

add_executable (pairwise_incremental_registration_raw pairwise_incremental_registration_raw.cpp)
target_link_libraries (pairwise_incremental_registration_raw ${PCL_LIBRARIES})

but on Windows 8 I have some issues finding some libraries. Instead of fixing that issues I was thinking to compile the .exe directly in Ubuntu, where I'm more familiar, can you please help me in that procedure? Is it also possible ti create an .exe with related .dll so as it can work on every Windows PC without the need of installation of relate libraries?

thank you in advice!
Alessandro
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu - compile .exe with .dll for Windows

kwaegel
Administrator
zompa84 wrote
to everybody. I'm a noob, and I'm not expert of compiling c++ code. I'm working on Ubuntu 13.10 starting from the exemple about Pairwise Incremental Registration.
I successfully compiled it on for Ubuntu using the following CMakeList.txt file:

[...snip...]

but on Windows 8 I have some issues finding some libraries. Instead of fixing that issues I was thinking to compile the .exe directly in Ubuntu, where I'm more familiar, can you please help me in that procedure? Is it also possible ti create an .exe with related .dll so as it can work on every Windows PC without the need of installation of relate libraries?
I think it's possible, but I would recommend against it. Installing and locating the correct libraries on Windows will likely be easier than trying to set up a Win64 cross-compiler.

If you really want to try, a quick Google search came up with this article on using the MinGW-w64 cross-compiler.
Reply | Threaded
Open this post in threaded view
|

Re: Ubuntu - compile .exe with .dll for Windows

zompa84
This post has NOT been accepted by the mailing list yet.
Thanks kwaegel for reply!
I'l consider both possibilities. Anyway do you know if using cross-compiling it's possible to create an .exe with related .dll files? It would be great if I can run the program on other machines without the need of installing all the dependencies.

I'll start also to find a solution to the several errors in windows compiler.