Makefile issue #7774
karthick241187
started this conversation in
New Users Build/Link/Run issues ONLY!
Makefile issue
#7774
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi Guys,
I have been building plugins for Autodesk Alias application. i want to use imgui as the ui for my plugins., i have problems with linking. i am new to programing and to build the plugin i have to use a make file and run nmake command in command prompt.
i took the example file from imgui the one with just using opengl and windows.
below is my makefile to build alias plugin. i tried to run this with imgui. i am unsuccessful. any help would be highly appreciated.
##############################################################################
Makefile for use by LiveData developers
NOTE: "vcvarsall amd64" must be run before attempting to compile the API
examples. Please see the API documentation for information.
##############################################################################
If the location of the Alias libraries and header files are
different from $ALIAS_LOCATION, set it here.
Location of Alias libraries and header files
ALIAS_LOCATION = E:\program files\Autodesk\AliasLearningEdition2024.1
Run vcvarsall to properly configure the development environment
CC = cl.exe
CPLUSPLUS = cl.exe
LINK = link.exe
RC = rc.exe
INCLUDES = /I. /I"$(ALIAS_LOCATION)\ODS\Common\include"/I"C:\aliasplugindev\imgui_test\imgui-master\backends"
Debug Flags
CDBFLAG = /DEBUG /Z7
LDBFLAG = /DEBUG
Flags
CFLAGS = /nologo /MD$(CDBFLAG) $ (INCLUDES)
CPLUSPLUSFLAGS = $(CFLAGS) /EHsc
Plugin flags
PLUGINFLAGS = /nologo /DLL /opt:noref /incremental:no /DEBUG
"$(ALIAS_LOCATION)\lib\libAliasCore.lib" $(LDBFLAG) user32.lib opengl32.lib
Extra link libraries
EXTRA_LIBS = kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib opengl32.lib
LIBS = -lopengl32
Rules for building
.SUFFIXES: .plugin .obj .cpp .c
$(CPLUSPLUS) -c $ (CPLUSPLUSFLAGS) $<
$(LINK) $ (PLUGINFLAGS) /out:.\lib$.plugin $.obj
.cpp.plugin:
.obj.plugin:
$(LINK) $ (PLUGINFLAGS) /out:.\lib$*.plugin $<
.cpp.obj:
$(CPLUSPLUS) -c $ (CPLUSPLUSFLAGS) $*.cpp
.c.obj:
$(CC) -c $ (CFLAGS) $*.c
.c.i:
$(CC) -E $ (CFLAGS) $.c | sed -e '/^[ ]$$/d' > $*.i
.cpp.i:
$(CPLUSPLUS) -E $ (CPLUSPLUSFLAGS) $.cpp | sed -e '/^[ ]$$/d' > $*.i
Clean up
#clean:
del *.obj lib*.plugin lib*.exp lib*.lib
Rules for building specific examples
incrementalsave.plugin: main.obj imgui.obj imgui_demo.obj imgui_draw.obj imgui_tables.obj imgui_widgets.obj
$(LINK) $ (PLUGINFLAGS) /out:.\lib$@ main.obj imgui.obj imgui_demo.obj imgui_draw.obj imgui_tables.obj imgui_widgets.obj
All reactions