Commit 3b5fd0ee authored by springob's avatar springob
Browse files

* better linux build support


git-svn-id: https://svn.code.sf.net/p/robodude/code/bobdude@51 bbe26285-3967-4f0a-9db1-5cc42c1bf15a
parent 4e3bdccf
......@@ -97,7 +97,8 @@ bool BobDudeApp::OnCmdLineParsed(wxCmdLineParser& parser) {
}
// then do what you need with them.
conf = configFile;
avrdude = new Avrdude("BobDude", static_cast<const char*>(configFile));
//avrdude = new Avrdude("BobDude", static_cast<const char*>(configFile));
avrdude = new Avrdude("BobDude", static_cast<const char*>(configFile.mb_str(wxConvUTF8)));
return true;
}
......
......@@ -10,13 +10,15 @@ AC_PREREQ
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T
AC_SEARCH_LIBS([elf_getshdrstrndx], [elf])
AC_SEARCH_LIBS([libusb_init], [usb-1.0])
dnl AC_SEARCH_LIBS([avr_read_byte_default], [avrdude])
dnl AC_SEARCH_LIBS([avr_read_byte_default], [avrdude])
LIBS_BEFORE="$LIBS"
LIBS="$LIBS -lavrdude"
LIBS="-lavrdude $LIBS"
AVRDUDE_LIB="-lavrdude"
AC_MSG_CHECKING(for libavrdude)
AC_TRY_LINK([
......@@ -64,7 +66,7 @@ AC_SEARCH_LIBS([avr_read_byte_default], [avrdude])
CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS -DAVRDUDE_CONF=\\\"$AVRDUDE_CONF\\\""
CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY -DAVRDUDE_CONF=\\\"$AVRDUDE_CONF\\\""
CFLAGS="$CFLAGS $WX_CFLAGS_ONLY -DAVRDUDE_CONF=\\\"$AVRDUDE_CONF\\\""
LIBS="$LIBS $WX_LIBS $AVRDUDE_LIB"
LIBS="$AVRDUDE_LIB $LIBS $WX_LIBS"
AC_OUTPUT
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment