Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backslashes in include paths #5

Closed
j-k opened this issue Sep 9, 2015 · 6 comments
Closed

Backslashes in include paths #5

j-k opened this issue Sep 9, 2015 · 6 comments

Comments

@j-k
Copy link

j-k commented Sep 9, 2015

I used the tool to generate a Makefile that is going to be used on Linux. However, the slashes in the include section are not compatible with Linux:

C_INCLUDES += -IDrivers\STM32F4xx_HAL_Driver\Inc
C_INCLUDES += -IDrivers\STM32F4xx_HAL_Driver\Inc\Legacy
C_INCLUDES += -IDrivers\CMSIS\Include
C_INCLUDES += -IDrivers\CMSIS\Device\ST\STM32F4xx\Include

Is the use of the Makefiles in Linux intended?

@RomanSaveljev
Copy link

I have just discovered this excellent tool by myself. I use it on Linux and path separators are OK:

C_INCLUDES += -IDrivers/STM32L1xx_HAL_Driver/Inc
C_INCLUDES += -IDrivers/STM32L1xx_HAL_Driver/Inc/Legacy
C_INCLUDES += -IDrivers/CMSIS/Include
C_INCLUDES += -IDrivers/CMSIS/Device/ST/STM32L1xx/Include

I am on a277770a8a98bd72a9c05c25ad4f466755a501ae

@xaionaro
Copy link
Contributor

xaionaro commented Oct 2, 2015

My paths are also good on Debian/Jessie and Gentoo.

@baoshi
Copy link
Owner

baoshi commented Oct 3, 2015

Hello friends,

Just let you know that I have updated the project. Now it uses SW4STM32 project as base, this could eliminate some TrueStudio copyright notices in the files generated.

The old files are now marked as V1.0 release.

Maybe you can help test.

Thanks and Best Regards,

Baoshi

@xaionaro
Copy link
Contributor

xaionaro commented Oct 3, 2015

Hello. Appeared the problem with backslashes after the last commit :)

$ python ~/CubeMX2Makefile/CubeMX2Makefile.py .
Traceback (most recent call last):
  File "/home/xaionaro/CubeMX2Makefile/CubeMX2Makefile.py", line 160, in <module>
    shutil.copyfile(src, dst)
  File "/usr/lib/python2.7/shutil.py", line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/home/xaionaro/stm32/test2/SW4STM32/test2 Configuration/..\\STM32L051R6Hx_FLASH.ld'

$ ls SW4STM32/test2\ Configuration/*ld
SW4STM32/test2 Configuration/STM32L051R6Hx_FLASH.ld

@baoshi
Copy link
Owner

baoshi commented Oct 4, 2015

It should be fixed in the latest update.

@xaionaro
Copy link
Contributor

xaionaro commented Oct 4, 2015

Works now, thanks!

@j-k j-k closed this as completed Oct 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants